/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | CustomBar.java | 93 protected void loadIcon(int index, String iconName, Density density) { argument 94 loadIcon(index, iconName, density, false); 97 protected void loadIcon(int index, String iconName, Density density, boolean isRtl) { argument 98 View child = getChildAt(index); 130 protected TextView setText(int index, String string, boolean reference) { argument 131 View child = getChildAt(index);
|
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
H A D | multiclass_pa.cpp | 176 int index = PickAnExample(num_examples); local 177 float loss_t = TrainOneExample(data[index].first, data[index].second); 189 int index = PickAnExample(num_examples); local 190 float loss_t = SparseTrainOneExample(data[index].first, data[index].second);
|
/frameworks/wilhelm/src/ |
H A D | sles.c | 36 int index; local 37 if (0 > (index = clazz->mMPH_to_index[MPH])) { 41 assert(clazz->mInterfaceCount > (unsigned) index); 42 switch (thiz->mInterfaceStates[index]) { 194 int MPH, index; local 198 (0 > (index = clazz->mMPH_to_index[MPH])) || 199 (INTERFACE_UNAVAILABLE == interfaces[index].mInterface)) { 213 requiredMask |= (1 << index); 216 exposedMask |= (1 << index); 538 SLuint32 index; local [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaFocusControl.java | 582 for (int index = mFocusStack.size()-1; index >= 0; index--) { 583 if (isLockedFocusOwner(mFocusStack.elementAt(index))) { 584 lastLockedFocusOwnerIndex = index; 1268 for (int index = mPRStack.size()-1; index >= 0; index--) { 1269 prse = mPRStack.elementAt(index); 1271 lastPlayingIndex = index; [all...] |
/frameworks/base/core/java/com/google/android/util/ |
H A D | AbstractMessageParser.java | 121 /** Return the part at the given index. */ 122 public final Part getPart(int index) { return parts.get(index); } argument 181 --i; // visit this index again 353 int index = start; 354 while ((index < text.length()) && isDomainChar(text.charAt(index))) { 355 index += 1; 361 if (index == text.length()) { 363 } else if (text.charAt(index) 541 isWordBreak(int index) argument 546 isSmileyBreak(int index) argument 560 isURLBreak(int index) argument 575 getCharClass(int index) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | ProgramCache.cpp | 271 " highp float index = atan(sweep.y, sweep.x) * 0.15915494309; // inv(2 * PI)\n" 272 " vec4 gradientColor = texture2D(gradientSampler, vec2(index - floor(index), 0.5));\n", 274 " highp float index = atan(sweep.y, sweep.x) * 0.15915494309; // inv(2 * PI)\n" 275 " vec4 gradientColor = mix(startColor, endColor, clamp(index - floor(index), 0.0, 1.0));\n" 436 ssize_t index = mCache.indexOfKey(key); local 438 if (index < 0) { 443 program = mCache.valueAt(index); 831 ssize_t index local [all...] |
/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
H A D | SoundPoolTest.java | 121 for (int index = 0; index < numSounds; index++) { 122 mSounds[index] = loadSound(mTestFiles[index], NORMAL_PRIORITY); 123 mLastSample = mSounds[index]; 133 for (int index = 0; index < count; index++) { 134 int id = mSoundPool.play(mSounds[index], DEFAULT_VOLUM [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | EGLLogWrapper.java | 500 int index = offset + i; 501 buf.append(" [" + index + "] = "); 502 if (index < 0 || index >= arrLen) { 505 buf.append(arr[index]); 518 int index = offset + i; 519 buf.append(" [" + index + "] = "); 520 if (index < 0 || index >= arrLen) { 523 buf.append(arr[index]); [all...] |
/frameworks/opt/net/wifi/service/jni/ |
H A D | jni_helper.cpp | 126 jlong getLongArrayField(JNIEnv *env, jobject obj, const char *name, int index) argument 143 THROW(env, "Error in accessing index element"); 147 jlong value = elem[index]; 156 jlong getStaticLongArrayField(JNIEnv *env, jobject obj, const char *name, int index) argument 159 jlong result = getStaticLongArrayField(env, cls, name, index); 164 jlong getStaticLongArrayField(JNIEnv *env, jclass cls, const char *name, int index) argument 175 THROW(env, "Error in accessing index element"); 179 jlong value = elem[index]; 186 jobject getObjectArrayField(JNIEnv *env, jobject obj, const char *name, const char *type, int index) argument 196 jobject elem = (env)->GetObjectArrayElement(array, index); 314 setLongArrayElement(JNIEnv *env, jobject obj, const char *name, int index, jlong value) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | dec_amr.cpp | 572 Word16 T0, T0_frac, index, index_mr475 = 0; 735 // pitch index 736 index = *parm++; 781 Dec_lag3 (index, t0_min, t0_max, pit_flag, st->old_T0, 810 Dec_lag6 (index, PIT_MIN_MR122, 813 if ( bfi == 0 && (pit_flag == 0 || sub (index, 61) < 0)) 834 index = *parm++; // index of position 837 decode_2i40_9bits (subfrNr, i, index, code); 843 index 1373 Word16 index; local [all...] |
/frameworks/base/core/java/android/text/ |
H A D | Selection.java | 84 * Move the cursor to offset <code>index</code>. 86 public static final void setSelection(Spannable text, int index) { argument 87 setSelection(text, index, index); 98 * Move the selection edge to offset <code>index</code>. 100 public static final void extendSelection(Spannable text, int index) { argument 101 if (text.getSpanStart(SELECTION_END) != index) 102 text.setSpan(SELECTION_END, index, index, Spanned.SPAN_POINT_POINT);
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | CursorAnchorInfo.java | 39 * The index of the first character of the selected text (inclusive). {@code -1} when there is 44 * The index of the first character of the selected text (exclusive). {@code -1} when there is 50 * The index of the first character of the composing text (inclusive). {@code -1} when there is 93 * Container of rectangular position of characters, keyed with character index in a unit of 273 * @param composingTextStart index where the composing text starts. 320 * Adds the bounding box of the character specified with the index. 322 * @param index index of the character in Java chars units. Must be specified in 331 * @throws IllegalArgumentException If the index is a negative value, or not greater than 334 public Builder addCharacterBounds(final int index, fina argument 505 getCharacterBounds(final int index) argument 517 getCharacterBoundsFlags(final int index) argument [all...] |
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 193 int index; member in struct:Queue 195 Queue() : index(0) { } 197 index++; 198 index &= 0xF; 199 q[index].x = x; 200 q[index].y = y; 203 const int i = (index - lag) & 0xF;
|
/frameworks/native/libs/ui/ |
H A D | FramebufferNativeWindow.cpp | 216 const int index = mCurrentBufferIndex; local 217 return index; 242 int index = self->mBufferHead++; local 250 ALOG_ASSERT(self->buffers[index] != self->front); 254 self->mCurrentBufferIndex = index; 256 *buffer = self->buffers[index].get(); 285 const int index = self->mCurrentBufferIndex; local
|
/frameworks/base/core/java/android/app/ |
H A D | FragmentManager.java | 262 * Return the BackStackEntry at index <var>index</var> in the back stack; 263 * entries start index 0 being the bottom of the stack. 265 public abstract BackStackEntry getBackStackEntryAt(int index); argument 546 public BackStackEntry getBackStackEntryAt(int index) { argument 547 return mBackStack.get(index); 576 int index = bundle.getInt(key, -1); 577 if (index == -1) { 580 if (index >= mActive.size()) { 582 + key + ": index " 1383 setBackStackIndex(int index, BackStackRecord bse) argument 1408 freeBackStackIndex(int index) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 267 size_t index, 271 index, offset, size, timeUs, flags, errorDetailMsg); 275 size_t index, 286 index, offset, subSamples, numSubSamples, key, iv, mode, 290 status_t JMediaCodec::dequeueInputBuffer(size_t *index, int64_t timeoutUs) { argument 291 return mCodec->dequeueInputBuffer(index, timeoutUs); 295 JNIEnv *env, jobject bufferInfo, size_t *index, int64_t timeoutUs) { 300 index, &offset, &size, &timeUs, &flags, timeoutUs); 316 size_t index, bool render, bool updatePTS, int64_t timestampNs) { 318 return mCodec->renderOutputBufferAndRelease(index, timestampN 266 queueInputBuffer( size_t index, size_t offset, size_t size, int64_t timeUs, uint32_t flags, AString *errorDetailMsg) argument 274 queueSecureInputBuffer( size_t index, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument 294 dequeueOutputBuffer( JNIEnv *env, jobject bufferInfo, size_t *index, int64_t timeoutUs) argument 315 releaseOutputBuffer( size_t index, bool render, bool updatePTS, int64_t timestampNs) argument 340 getOutputFormat(JNIEnv *env, size_t index, jobject *format) const argument 429 getBuffer( JNIEnv *env, bool input, size_t index, jobject *buf) const argument 446 getImage( JNIEnv *env, bool input, size_t index, jobject *buf) const argument 955 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument 981 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument 1134 size_t index; local 1155 size_t index; local 1166 android_media_MediaCodec_releaseOutputBuffer( JNIEnv *env, jobject thiz, jint index, jboolean render, jboolean updatePTS, jlong timestampNs) argument 1221 android_media_MediaCodec_getOutputFormatForIndexNative( JNIEnv *env, jobject thiz, jint index) argument 1270 android_media_MediaCodec_getBuffer( JNIEnv *env, jobject thiz, jboolean input, jint index) argument 1296 android_media_MediaCodec_getImage( JNIEnv *env, jobject thiz, jboolean input, jint index) argument [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteConnection.java | 132 int index); 134 int index); 136 int index, long value); 138 int index, double value); 140 int index, String value); 142 int index, byte[] value); 1299 final int index = (mIndex + 1) % MAX_RECENT_OPERATIONS; 1300 Operation operation = mOperations[index]; 1303 mOperations[index] = operation; 1330 operation.mCookie = newOperationCookieLocked(index); 131 nativeGetColumnName(long connectionPtr, long statementPtr, int index) argument 133 nativeBindNull(long connectionPtr, long statementPtr, int index) argument 135 nativeBindLong(long connectionPtr, long statementPtr, int index, long value) argument 137 nativeBindDouble(long connectionPtr, long statementPtr, int index, double value) argument 139 nativeBindString(long connectionPtr, long statementPtr, int index, String value) argument 141 nativeBindBlob(long connectionPtr, long statementPtr, int index, byte[] value) argument 1386 newOperationCookieLocked(int index) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Paint_Delegate.java | 599 /*package*/ static float native_measureText(Paint thisPaint, char[] text, int index, argument 607 RectF bounds = delegate.measureText(text, index, count, null, 0, bidiFlags); 624 int index, int count, float maxWidth, int bidiFlags, float[] measuredWidth) { 635 for (int i = index; i != index + count; i += inc, measureIndex++) { 637 if (i < index) { 639 end = index; 641 start = index; 654 // we should not return this char index, but since it's 0-based 955 char[] text, int index, in 623 native_breakText(long nativePaint, long nativeTypeface, char[] text, int index, int count, float maxWidth, int bidiFlags, float[] measuredWidth) argument 954 native_getTextWidths(long native_object, long native_typeface, char[] text, int index, int count, int bidiFlags, float[] widths) argument 992 native_getTextRunAdvances(long native_object, long native_typeface, char[] text, int index, int count, int contextIndex, int contextCount, boolean isRtl, float[] advances, int advancesIndex) argument 1046 native_getTextPath(long native_object, long native_typeface, int bidiFlags, char[] text, int index, int count, float x, float y, long path) argument 1069 nativeGetCharArrayBounds(long nativePaint, long native_typeface, char[] text, int index, int count, int bidiFlags, Rect bounds) argument 1199 measureText(char[] text, int index, int count, float[] advances, int advancesIndex, int bidiFlags) argument 1205 measureText(char[] text, int index, int count, float[] advances, int advancesIndex, boolean isRtl) argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPConnection.cpp | 82 size_t index, 89 msg->setSize("index", index); 201 CHECK(msg->findSize("index", &info->mIndex)); 626 ssize_t index = info->mSources.indexOfKey(srcId); local 627 if (index < 0) { 628 index = info->mSources.size(); 635 source = info->mSources.valueAt(index); 641 void ARTPConnection::injectPacket(int index, const sp<ABuffer> &buffer) { argument 643 msg->setInt32("index", inde 79 addStream( int rtpSocket, int rtcpSocket, const sp<ASessionDescription> &sessionDesc, size_t index, const sp<AMessage> ¬ify, bool injected) argument 649 int32_t index; local [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | WindowOrientationListener.java | 788 private int nextTiltHistoryIndexLocked(int index) { argument 789 index = (index == 0 ? TILT_HISTORY_SIZE : index) - 1; 790 return mTiltHistoryTimestampNanos[index] != Long.MIN_VALUE ? index : -1; 794 int index = nextTiltHistoryIndexLocked(mTiltHistoryIndex); 795 return index >= 0 ? mTiltHistory[index] : Float.NaN;
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestWebServer.java | 498 int index; 516 index = 4; 524 index = 5; 532 index = 5; 542 int i = index; 552 testID = new String(buf, 0, index, i-index); 568 int index = 0; 579 int i = index;
|
/frameworks/native/libs/input/ |
H A D | KeyLayoutMap.cpp | 109 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode); local 110 if (index >= 0) { 111 return &mKeysByUsageCode.valueAt(index); 115 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); local 116 if (index >= 0) { 117 return &mKeysByScanCode.valueAt(index); 134 ssize_t index = mAxes.indexOfKey(scanCode); local 135 if (index < 0) { 142 *outAxisInfo = mAxes.valueAt(index);
|
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 501 int index = 2 * (*pixels++); local 502 *p++ = palette[index + 0]; 503 *p++ = palette[index + 1]; 508 int index = 2 * (v >> 4); local 509 *p++ = palette[index + 0]; 510 *p++ = palette[index + 1]; 512 index = 2 * (v & 0xF); 513 *p++ = palette[index + 0]; 514 *p++ = palette[index + 1]; 525 int index local 533 int index = 3 * (v >> 4); local 552 int index = 4 * (*pixels++); local 561 int index = 4 * (v >> 4); local [all...] |
/frameworks/av/include/media/ |
H A D | IOMX.h | 65 node_id node, OMX_INDEXTYPE index, 69 node_id node, OMX_INDEXTYPE index, 73 node_id node, OMX_INDEXTYPE index, 77 node_id node, OMX_INDEXTYPE index, 144 OMX_INDEXTYPE *index) = 0;
|
/frameworks/av/media/libmedia/ |
H A D | IOMX.cpp | 138 node_id node, OMX_INDEXTYPE index, 143 data.writeInt32(index); 159 node_id node, OMX_INDEXTYPE index, 164 data.writeInt32(index); 173 node_id node, OMX_INDEXTYPE index, 178 data.writeInt32(index); 194 node_id node, OMX_INDEXTYPE index, 199 data.writeInt32(index); 479 OMX_INDEXTYPE *index) { 489 *index 137 getParameter( node_id node, OMX_INDEXTYPE index, void *params, size_t size) argument 158 setParameter( node_id node, OMX_INDEXTYPE index, const void *params, size_t size) argument 172 getConfig( node_id node, OMX_INDEXTYPE index, void *params, size_t size) argument 193 setConfig( node_id node, OMX_INDEXTYPE index, const void *params, size_t size) argument 476 getExtensionIndex( node_id node, const char *parameter_name, OMX_INDEXTYPE *index) argument 617 OMX_INDEXTYPE index = static_cast<OMX_INDEXTYPE>(data.readInt32()); local 938 OMX_INDEXTYPE index; local [all...] |