/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteInit.java | 754 int index; 775 index = selectReadable(fdArray); 780 if (index < 0) { 782 } else if (index == 0) { 788 done = peers.get(index).runOnce(); 791 peers.remove(index); 792 fds.remove(index); 862 * @return index of descriptor that is now readable or -1 for empty array.
|
/frameworks/base/libs/hwui/ |
H A D | Caches.cpp | 413 int index = i * 6; local 414 regionIndices[index ] = quad; // top-left 415 regionIndices[index + 1] = quad + 1; // top-right 416 regionIndices[index + 2] = quad + 2; // bottom-left 417 regionIndices[index + 3] = quad + 2; // bottom-left 418 regionIndices[index + 4] = quad + 1; // top-right 419 regionIndices[index + 5] = quad + 3; // bottom-right
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES31.java | 274 // C function void glGetProgramResourceName ( GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name ) 279 int index 282 // C function void glGetProgramResourceiv ( GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params ) 287 int index, 298 // C function void glGetProgramResourceiv ( GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params ) 303 int index, 955 // C function void glGetBooleani_v ( GLenum target, GLuint index, GLboolean *data ) 959 int index, 964 // C function void glGetBooleani_v ( GLenum target, GLuint index, GLboolean *data ) 968 int index, 284 glGetProgramResourceiv( int program, int programInterface, int index, int propCount, int[] props, int propsOffset, int bufSize, int[] length, int lengthOffset, int[] params, int paramsOffset ) argument 300 glGetProgramResourceiv( int program, int programInterface, int index, int propCount, java.nio.IntBuffer props, int bufSize, java.nio.IntBuffer length, java.nio.IntBuffer params ) argument 957 glGetBooleani_v( int target, int index, boolean[] data, int offset ) argument 966 glGetBooleani_v( int target, int index, java.nio.IntBuffer data ) argument 997 glGetMultisamplefv( int pname, int index, float[] val, int offset ) argument 1006 glGetMultisamplefv( int pname, int index, java.nio.FloatBuffer val ) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | StringPool.cpp | 226 // Place blank entries in the span array up to this index. 414 span.span.name.index = (uint32_t)idx; 510 span->name.index = htodl(ent.spans[i].span.name.index); 515 span->name.index = htodl(ResStringPool_span::END); 558 // Write string index array. 560 uint32_t* index = (uint32_t*)(header+1); local 563 *index++ = htodl(ent.offset); 569 // Write style index array. 572 *index [all...] |
H A D | ResourceTable.h | 356 void setNameIndex(int32_t index) { mNameIndex = index; } argument 405 void setEntryIndex(int32_t index) { mEntryIndex = index; } argument 486 void setIndex(int32_t index) { mIndex = index; } argument
|
/frameworks/base/core/java/android/content/ |
H A D | IntentFilter.java | 477 public final String getAction(int index) { argument 478 return mActions.get(index); 582 public final String getDataType(int index) { argument 583 return mDataTypes.get(index); 626 public final String getDataScheme(int index) { argument 627 return mDataSchemes.get(index); 786 public final PatternMatcher getDataSchemeSpecificPart(int index) { argument 787 return mDataSchemeSpecificParts.get(index); 879 public final AuthorityEntry getDataAuthority(int index) { argument 880 return mDataAuthorities.get(index); 964 getDataPath(int index) argument 1181 getCategory(int index) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | RenderSessionImpl.java | 715 final int index, IAnimationListener listener) { 738 return addView(parentView, child, index); 752 Result result = addView(parentView, child, index); 766 * Adds a given view to a given parent at a given index. 770 * @param index the index where to do the add. 776 private Result addView(ViewGroup parent, View view, int index) { argument 778 parent.addView(view, index); 796 public Result moveChild(final ViewGroup newParentView, final View childView, final int index, argument 821 Result result = moveView(previousParent, newParentView, childView, index, 714 insertChild(final ViewGroup parentView, ILayoutPullParser childXml, final int index, IAnimationListener listener) argument 913 moveView(ViewGroup previousParent, final ViewGroup newParent, final View movedView, final int index, final LayoutParams params) argument [all...] |
/frameworks/av/drm/common/ |
H A D | IDrmManagerService.cpp | 174 for (int index = 0; index < size; ++index) { 204 for (int index = 0; index < size; ++index) { 328 for (int index = 0; index < size; ++index) { 582 for (int index [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | LinearLayout.java | 109 * use the child at this index as the baseline. 205 int index = a.getInt(com.android.internal.R.styleable.LinearLayout_orientation, -1); 206 if (index >= 0) { 207 setOrientation(index); 210 index = a.getInt(com.android.internal.R.styleable.LinearLayout_gravity, -1); 211 if (index >= 0) { 212 setGravity(index); 487 + "set to an index that is out of bounds."); 498 // the user picked an index that points to something that doesn't 533 * @return The index o 565 getVirtualChildAt(int index) argument 1405 getChildrenSkipCount(View child, int index) argument [all...] |
H A D | ActivityChooserModel.java | 218 * An invalid item index. 415 * Gets an activity at a given index. 422 public ResolveInfo getActivity(int index) { argument 425 return mActivities.get(index).resolveInfo; 430 * Gets the index of a the given activity. 432 * @param activity The activity index. 434 * @return The index if found, -1 otherwise. 469 public Intent chooseActivity(int index) { argument 477 ActivityResolveInfo chosenActivity = mActivities.get(index); 542 * @param index Th 544 setDefaultActivity(int index) argument [all...] |
H A D | TabHost.java | 398 public void setCurrentTab(int index) { argument 399 if (index < 0 || index >= mTabSpecs.size()) { 403 if (index == mCurrentTab) { 412 mCurrentTab = index; 413 final TabHost.TabSpec spec = mTabSpecs.get(index);
|
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.cpp | 1625 ssize_t index = mHwAvSyncIds.indexOfKey(sessionId); local 1626 if (index >= 0) { 1628 mHwAvSyncIds.valueAt(index), sessionId); 1629 return mHwAvSyncIds.valueAt(index); 1676 ssize_t index = mHwAvSyncIds.indexOfKey(sessionId); local 1677 if (index >= 0) { 1678 audio_hw_sync_t syncId = mHwAvSyncIds.valueAt(index); 2050 ssize_t index = pipe->negotiate(offers, 1, NULL, numCounterOffers); local 2051 ALOG_ASSERT(index == 0); 2054 index 2401 queryEffect(uint32_t index, effect_descriptor_t *descriptor) const argument 2761 ssize_t index = mOrphanEffectChains.indexOfKey(session); local 2774 ssize_t index = mOrphanEffectChains.indexOfKey(session); local 2787 ssize_t index = mOrphanEffectChains.indexOfKey(session); local [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 514 static jfloat measureText_CIII(JNIEnv* env, jobject jpaint, jcharArray text, jint index, jint count, argument 520 if ((index | count) < 0 || (size_t)(index + count) > textLength) { 534 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, index, count, textLength); 619 jint index, jint count, jint bidiFlags, jfloatArray widths) { 623 count = dotextwidths(env, paint, typeface, textArray + index, count, widths, bidiFlags); 678 jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, 684 index - contextIndex, count, contextCount, isRtl, advances, advancesIndex); 782 jcharArray text, jint index, jint count, jfloat x, jfloat y, jlong pathHandle) { 787 getTextPath(env, paint, typeface, textArray + index, coun 618 getTextWidths___CIII_F(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jfloatArray widths) argument 676 getTextRunAdvances___CIIIIZ_FI(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jboolean isRtl, jfloatArray advances, jint advancesIndex) argument 780 getTextPath___C(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jint bidiFlags, jcharArray text, jint index, jint count, jfloat x, jfloat y, jlong pathHandle) argument 832 int index = forwardScan ? i : (count - i - 1); local 853 breakTextC(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray jtext, jint index, jint count, jfloat maxWidth, jint bidiFlags, jfloatArray jmeasuredWidth) argument 926 getCharArrayBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaPlayer.java | 1951 int index = data.getTrackIndex(); 1952 if (index >= mInbandSubtitleTracks.length) { 1955 SubtitleTrack track = mInbandSubtitleTracks[index]; 2278 * Returns the index of the audio, video, or subtitle track currently selected for playback, 2279 * The return value is an index into the array returned by {@link #getTrackInfo()}, and can 2285 * @return index of the audio, video, or subtitle track currently selected for playback; 2298 int index = mOutOfBandSubtitleTracks.indexOf(subtitleTrack); 2299 if (index >= 0) { 2300 return mInbandSubtitleTracks.length + index; 2341 * @param index th 2348 selectTrack(int index) argument 2366 deselectTrack(int index) argument 2370 selectOrDeselectTrack(int index, boolean select) argument 2413 selectOrDeselectInbandTrack(int index, boolean select) argument [all...] |
/frameworks/av/services/audiopolicy/ |
H A D | AudioPolicyManager.h | 132 int index, 135 int *index, 210 // index (from 0 to 100) at which they apply, and the attenuation in dB at that index. 236 AudioGain(int index, bool useInChannelMask); 239 void dump(int fd, int spaces, int index) const; 266 void loadGain(cnode *root, int index); 279 status_t checkGain(const struct audio_gain_config *gainConfig, int index) const; 331 status_t dump(int fd, int spaces, int index) const; 357 status_t dump(int fd, int spaces, int index) cons [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputDispatcher.cpp | 136 int32_t index = getMotionEventActionPointerIndex(action); local 137 return index >= 0 && size_t(index) < pointerCount; 2165 ssize_t index = getConnectionIndexLocked(channel); local 2166 if (index >= 0) { 2168 mConnectionsByFd.valueAt(index), options); 2383 ssize_t index = mReplacedKeys.indexOfKey(replacement); local 2384 if (index >= 0) { 2385 keyCode = mReplacedKeys.valueAt(index); 2386 mReplacedKeys.removeItemsAt(index); 4030 ssize_t index = findKeyMemento(entry); local 4055 ssize_t index = findKeyMemento(entry); local 4074 ssize_t index = findMotionMemento(entry, false /*hovering*/); local 4088 ssize_t index = findMotionMemento(entry, false /*hovering*/); local 4106 ssize_t index = findMotionMemento(entry, false /*hovering*/); local 4141 ssize_t index = findMotionMemento(entry, true /*hovering*/); local 4155 ssize_t index = findMotionMemento(entry, true /*hovering*/); local 4287 ssize_t index = mFallbackKeys.indexOfKey(originalKeyCode); local 4293 ssize_t index = mFallbackKeys.indexOfKey(originalKeyCode); local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | mp4enc_api.cpp | 2174 int index; local 2186 index = encData->encParams->profile_table_index; 2187 max_buffer_size = (encData->encParams->nLayers == 1 ? profile_level_max_VBV_size[index] : 2188 scalable_profile_level_max_VBV_size[index]); 2976 Int k = 0, width16, height16, index; local 2986 index = video->encParams->profile_table_index; 3014 video->encParams->LayerMaxBitRate[0] = profile_level_max_bitrate[index]; 3024 video->encParams->LayerMaxFrameRate[0] = (float)profile_level_max_mbsPerSec[index] / nTotalMB; 3039 if (nLayers == 1 && base_VBV_size > profile_level_max_VBV_size[index]) 3052 video->encParams->LayerMaxBitRate[1] = scalable_profile_level_max_bitrate[index]; [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | PagedView.java | 408 * Returns the index of the currently displayed page. 410 * @return The index of the currently displayed page. 424 View getPageAt(int index) { argument 425 return getChildAt(index); 428 protected int indexToPage(int index) { argument 429 return index; 818 protected int getChildOffset(int index) { argument 819 if (index < 0 || index > getChildCount() - 1) return 0; 824 if (childOffsets != null && childOffsets[index] ! 841 getRelativeChildOffset(int index) argument 1695 onAddView(View v, int index) argument 1792 getChildWidth(int index) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | NuCachedSource2.cpp | 740 ssize_t index; local 741 if ((index = headers->indexOfKey(String8("x-cache-config"))) >= 0) { 742 *cacheConfig = headers->valueAt(index); 744 headers->removeItemsAt(index); 749 if ((index = headers->indexOfKey( 752 headers->removeItemsAt(index);
|
/frameworks/av/media/libstagefright/codecs/aacenc/ |
H A D | SoftAACEncoder2.cpp | 119 OMX_INDEXTYPE index, OMX_PTR params) { 120 switch (index) { 224 return SimpleSoftOMXComponent::internalGetParameter(index, params); 229 OMX_INDEXTYPE index, const OMX_PTR params) { 230 switch (index) { 327 return SimpleSoftOMXComponent::internalSetParameter(index, params); 118 internalGetParameter( OMX_INDEXTYPE index, OMX_PTR params) argument 228 internalSetParameter( OMX_INDEXTYPE index, const OMX_PTR params) argument
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | VibratorService.java | 612 int index = 0; 617 if (index < len) { 618 duration += pattern[index++]; 627 if (index < len) { 630 duration = pattern[index++]; 638 index = repeat;
|
/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 48 index = self.buffer.find('\n', self.pos) 49 if index != -1: 50 result = self.buffer[self.pos:index] 51 self.pos = index + 1 203 def _add_timeseries_axes(self, index, title, ylabel, ylim, yticks, sharex=None): 206 top = 0.95 - height * index
|
/frameworks/support/v4/java/android/support/v4/app/ |
H A D | FragmentActivity.java | 150 int index = requestCode>>16; 151 if (index != 0) { 152 index--; 153 if (mFragments.mActive == null || index < 0 || index >= mFragments.mActive.size()) { 154 Log.w(TAG, "Activity result fragment index out of range: 0x" 158 Fragment frag = mFragments.mActive.get(index); 160 Log.w(TAG, "Activity result no fragment exists for index: 0x"
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActivityChooserModel.java | 215 * An invalid item index. 406 * Gets an activity at a given index. 413 public ResolveInfo getActivity(int index) { argument 416 return mActivities.get(index).resolveInfo; 421 * Gets the index of a the given activity. 423 * @param activity The activity index. 425 * @return The index if found, -1 otherwise. 460 public Intent chooseActivity(int index) { argument 468 ActivityResolveInfo chosenActivity = mActivities.get(index); 533 * @param index Th 535 setDefaultActivity(int index) argument [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | ACodec.h | 64 IOMX::buffer_id bufferIDAt(size_t index) const; 65 sp<ABuffer> bufferAt(size_t index) const; 243 ssize_t *index = NULL);
|