Searched defs:pos (Results 76 - 100 of 115) sorted by relevance

12345

/frameworks/base/core/java/android/widget/
H A DMediaController.java380 int pos;
386 pos = setProgress();
389 sendMessageDelayed(msg, 1000 - (pos % 1000));
420 long pos = 1000L * position / duration;
421 mProgress.setProgress( (int) pos);
611 int pos = mPlayer.getCurrentPosition();
612 pos -= 5000; // milliseconds
613 mPlayer.seekTo(pos);
622 int pos = mPlayer.getCurrentPosition();
623 pos
665 seekTo(int pos) argument
[all...]
H A DAdapterViewAnimator.java345 int modulo(int pos, int size) { argument
347 return (size + (pos % size)) % size;
H A DExpandableListView.java256 PositionMetadata pos;
289 pos = mConnector.getUnflattenedPos(childFlPos);
293 if (pos.position.type != lastItemType) {
294 if (pos.position.type == ExpandableListPosition.CHILD) {
307 lastItemType = pos.position.type;
322 indicator = getIndicator(pos);
329 pos.recycle();
341 * @param pos The flat list position of the item whose indicator
345 private Drawable getIndicator(PositionMetadata pos) { argument
348 if (pos
[all...]
H A DGridView.java264 * Fills the list from pos down to the end of the list view.
266 * @param pos The first position to put in the list
268 * @param nextTop The location where the top of the item associated with pos
274 private View fillDown(int pos, int nextTop) { argument
282 while (nextTop < end && pos < mItemCount) {
283 View temp = makeRow(pos, nextTop, true);
292 pos += mNumColumns;
325 for (int pos = startPos; pos < last; pos
362 fillUp(int pos, int nextBottom) argument
[all...]
H A DRemoteViewsAdapter.java285 final Integer pos = position;
289 if (mReferences.containsKey(pos)) {
290 refs = mReferences.get(pos);
293 mReferences.put(pos, refs);
307 final Integer pos = position;
308 if (mReferences.containsKey(pos)) {
310 final LinkedList<RemoteViewsFrameLayout> refs = mReferences.get(pos);
317 mReferences.remove(pos);
603 private int getFarthestPositionFrom(int pos) { argument
610 int dist = Math.abs(i-pos);
[all...]
H A DListView.java651 * Fills the list from pos down to the end of the list view.
653 * @param pos The first position to put in the list
655 * @param nextTop The location where the top of the item associated with pos
661 private View fillDown(int pos, int nextTop) { argument
669 while (nextTop < end && pos < mItemCount) {
671 boolean selected = pos == mSelectedPosition;
672 View child = makeAndAddView(pos, nextTop, true, mListPadding.left, selected);
678 pos++;
686 * Fills the list from pos up to the top of the list view.
688 * @param pos Th
695 fillUp(int pos, int nextBottom) argument
[all...]
/frameworks/base/core/java/com/google/android/mms/pdu/
H A DPduComposer.java187 protected void arraycopy(byte[] buf, int pos, int length) { argument
188 mMessage.write(buf, pos, length);
/frameworks/base/core/jni/
H A Dandroid_os_Parcel.cpp127 static void android_os_Parcel_setDataPosition(JNIEnv* env, jclass clazz, jint nativePtr, jint pos) argument
131 parcel->setDataPosition(pos);
H A Dandroid_util_Binder.cpp971 static bool push_eventlog_string(char** pos, const char* end, const char* str) { argument
974 if (end - *pos < space_needed) {
976 (end - *pos), space_needed);
979 **pos = EVENT_TYPE_STRING;
980 (*pos)++;
981 memcpy(*pos, &len, sizeof(len));
982 *pos += sizeof(len);
983 memcpy(*pos, str, len);
984 *pos += len;
988 static bool push_eventlog_int(char** pos, cons argument
1029 char* pos = &buf[2]; local
[all...]
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
H A DVideoDumpView.java251 public void seekTo (int pos) { argument
252 mMediaPlayer.seekTo(pos);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java526 int pos = 0;
538 while (pos < bytes) {
539 int length = readInt(settings, pos);
540 pos += INTEGER_BYTE_COUNT;
541 String dataKey = length > 0 ? new String(settings, pos, length) : null;
542 pos += length;
543 length = readInt(settings, pos);
544 pos += INTEGER_BYTE_COUNT;
545 String dataValue = length > 0 ? new String(settings, pos, length) : null;
546 pos
812 writeInt(byte[] out, int pos, int value) argument
820 writeBytes(byte[] out, int pos, byte[] value) argument
825 readInt(byte[] in, int pos) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeXmlBlockParser.java150 public String getNamespacePrefix(int pos) throws XmlPullParserException { argument
175 public String getNamespaceUri(int pos) throws XmlPullParserException { argument
/frameworks/av/media/libstagefright/
H A DOggExtractor.cpp316 off64_t pos = timeUs * approxBitrate() / 8000000ll; local
318 ALOGV("seeking to offset %lld", pos);
319 return seekToOffset(pos);
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp238 long long pos; local
245 res = mCluster->Parse(pos, len);
263 mCluster, nextCluster, pos, len);
279 res = mCluster->Parse(pos, len);
346 long len; long long pos; local
347 pSegment->ParseCues(pEntry->pos, pos, len);
640 long long pos; local
641 if (ebmlHeader.Parse(mReader, pos) < 0) {
650 mkvparser::Segment::CreateInstance(mReader, pos, mSegmen
944 long long pos; local
[all...]
/frameworks/base/core/java/android/content/res/
H A DXmlBlock.java117 public String getNamespacePrefix(int pos) throws XmlPullParserException { argument
132 public String getNamespaceUri(int pos) throws XmlPullParserException { argument
/frameworks/base/core/java/android/net/http/
H A DHeaders.java161 int pos = CharArrayBuffers.setLowercaseIndexOf(buffer, ':');
162 if (pos == -1) {
165 String name = buffer.substringTrimmed(0, pos);
169 pos++;
171 String val = buffer.substringTrimmed(pos, buffer.length());
181 .parseElements(buffer, new ParserCursor(pos,
223 setConnectionType(buffer, pos);
234 setConnectionType(buffer, pos);
461 private void setConnectionType(CharArrayBuffer buffer, int pos) { argument
463 buffer, pos, HTT
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DGsmDataConnectionTracker.java2395 private void setPreferredApn(int pos) { argument
2405 if (pos >= 0) {
2408 values.put(APN_ID, pos);
2430 int pos;
2432 pos = cursor.getInt(cursor.getColumnIndexOrThrow(Telephony.Carriers._ID));
2434 if (p.id == pos && p.canHandleType(mRequestedApnType)) {
/frameworks/base/tools/aapt/
H A DResourceTable.h114 status_t addPublic(const SourcePos& pos,
120 status_t addEntry(const SourcePos& pos,
131 status_t startBag(const SourcePos& pos,
141 status_t addBag(const SourcePos& pos,
178 void canAddEntry(const SourcePos& pos,
253 void setCurrentXmlPos(const SourcePos& pos) { mCurrentXmlPos = pos; } argument
259 Item(const SourcePos& pos,
294 Entry(const String16& name, const SourcePos& pos) argument
296 mItemFormat(ResTable_map::TYPE_ANY), mNameIndex(-1), mPos(pos)
364 ConfigList(const String16& name, const SourcePos& pos) argument
383 setPublicSourcePos(const SourcePos& pos) argument
405 Public(const SourcePos& pos, const String16& _comment, uint32_t _ident) argument
428 Type(const String16& name, const SourcePos& pos) argument
[all...]
/frameworks/base/tools/aidl/
H A DAST.cpp831 size_t pos = name.rfind('.'); local
832 if (pos != string::npos) {
833 name = name.c_str() + pos + 1;
H A Dgenerate_java_rpc.cpp49 string::size_type pos = str.rfind('.'); local
50 if (pos == string::npos) {
53 return string(str, pos+1);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp1636 uint32_t pos; local
1637 if (t->getPosition(&pos) == OK) {
1638 mBytesWritten = uint64_t(pos) * t->frameSize();
/frameworks/av/services/audioflinger/
H A DAudioPolicyService.cpp1073 size_t pos = ((*curSize - 1 ) / size + 1) * size; local
1075 if (pos + size > *totSize) {
1076 while (pos + size > *totSize) {
1081 *curSize = pos + size;
1082 return pos;
1091 size_t pos = growParamSize(param, sizeof(short), curSize, totSize); local
1092 *(short *)((char *)param + pos) = (short)atoi(node->value);
1093 ALOGV("readParamValue() reading short %d", *(short *)((char *)param + pos));
1096 size_t pos = growParamSize(param, sizeof(int), curSize, totSize); local
1097 *(int *)((char *)param + pos)
1101 size_t pos = growParamSize(param, sizeof(float), curSize, totSize); local
1106 size_t pos = growParamSize(param, sizeof(bool), curSize, totSize); local
[all...]
/frameworks/base/core/java/android/os/
H A DParcel.java237 private static native void nativeSetDataPosition(int nativePtr, int pos); argument
377 * @param pos New offset in the parcel; must be between 0 and
380 public final void setDataPosition(int pos) { argument
381 nativeSetDataPosition(mNativePtr, pos);
/frameworks/base/core/jni/android/graphics/
H A DCanvas.cpp804 jfloatArray pos, SkPaint* paint) {
807 float* posArray = pos ? env->GetFloatArrayElements(pos, NULL) : NULL;
808 int posCount = pos ? env->GetArrayLength(pos) >> 1: 0;
824 if (pos) {
825 env->ReleaseFloatArrayElements(pos, posArray, 0);
832 jfloatArray pos,
836 float* posArray = pos ? env->GetFloatArrayElements(pos, NUL
802 drawPosText___CII_FPaint(JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, jfloatArray pos, SkPaint* paint) argument
830 drawPosText__String_FPaint(JNIEnv* env, jobject, SkCanvas* canvas, jstring text, jfloatArray pos, SkPaint* paint) argument
[all...]
H A DPaint.cpp593 jint pos = offset - start; local
596 if (pos < count) {
597 pos += 1;
601 while (pos < count && scalarArray[pos] == 0) {
602 ++pos;
606 if (pos > 0) {
607 --pos;
611 while (pos > 0 && scalarArray[pos]
[all...]

Completed in 517 milliseconds

12345