/frameworks/base/core/java/android/net/nsd/ |
H A D | DnsSdTxtRecord.java | 117 /** Remove a key/value pair. If found, returns the index or -1 if not found */ 168 private void insert(byte[] keyBytes, byte[] value, int index) { argument 174 for (int i = 0; i < index && insertion < mData.length; i++) { 193 /** Return a key in the TXT record by zero-based index. Returns null if index exceeds the total number of keys. */ 194 private String getKey(int index) { argument 197 for (int i=0; i < index && avStart < mData.length; i++) { 214 * Look up a key in the TXT record by zero-based index and return its value. 215 * Returns null if index exceeds the total number of keys. 218 private byte[] getValue(int index) { argument 241 getValueAsString(int index) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | TextSwitcher.java | 63 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument 69 super.addView(child, index, params);
|
H A D | AdapterViewAnimator.java | 53 * The index of the current child, which appears anywhere from the beginning 59 * The index of the child to restore after the asynchronous connection from the 92 * The index, relative to the adapter, of the beginning of the window of views 97 * The index, relative to the adapter, of the end of the window of views 238 * @param activeOffset This parameter specifies where the current index ({@link #mWhichChild}) 263 * @param fromIndex The relative index within the window that the view was in, -1 if it wasn't 265 * @param toIndex The relative index within the window that the view is going to, -1 if it is 294 * @param whichChild the index of the child view to display 321 * To be overridden by subclasses. This method applies a view / index specific 331 * Returns the index o [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodecList.cpp | 55 JNIEnv *env, jobject thiz, jint index) { 62 const sp<MediaCodecInfo> &info = mcl->getCodecInfo(index); 98 JNIEnv *env, jobject thiz, jint index) { 105 const sp<MediaCodecInfo> &info = mcl->getCodecInfo(index); 115 JNIEnv *env, jobject thiz, jint index) { 122 const sp<MediaCodecInfo> &info = mcl->getCodecInfo(index); 147 JNIEnv *env, jobject thiz, jint index, jstring type) { 159 const sp<MediaCodecInfo> &info = mcl->getCodecInfo(index); 54 android_media_MediaCodecList_getCodecName( JNIEnv *env, jobject thiz, jint index) argument 97 android_media_MediaCodecList_isEncoder( JNIEnv *env, jobject thiz, jint index) argument 114 android_media_MediaCodecList_getSupportedTypes( JNIEnv *env, jobject thiz, jint index) argument 146 android_media_MediaCodecList_getCodecCapabilities( JNIEnv *env, jobject thiz, jint index, jstring type) argument
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | InetAddrTest.java | 87 int index = random.nextInt(HOSTS.length); 89 InetAddress.getByName(HOSTS[index]);
|
/frameworks/rs/ |
H A D | rsFileA3D.h | 67 const A3DIndexEntry* getIndexEntry(size_t index) const; 68 ObjectBase *initializeFromEntry(size_t index);
|
/frameworks/wilhelm/src/ |
H A D | locks.c | 180 SLuint32 index = objectID; local 181 if ((XA_OBJECTID_ENGINE <= index) && (index <= XA_OBJECTID_CAMERADEVICE)) { 183 } else if ((SL_OBJECTID_ENGINE <= index) && (index <= SL_OBJECTID_METADATAEXTRACTOR)) { 184 index -= SL_OBJECTID_ENGINE - XA_OBJECTID_CAMERADEVICE - 1; 187 index = 0; 199 AttributeHandler handler = handlerTable[index][bit];
|
H A D | data.c | 654 int index; local 671 index = clazz->mMPH_to_index[MPH_BUFFERQUEUE]; 673 assert(index == clazz->mMPH_to_index[MPH_ANDROIDSIMPLEBUFFERQUEUE]); 675 if (0 <= index) { 676 if (requiredMask & (1 << index)) { 694 index = clazz->mMPH_to_index[MPH_SEEK]; 695 if (0 <= index) { 696 if (requiredMask & (1 << index)) { 702 index = clazz->mMPH_to_index[MPH_MUTESOLO]; 703 if (0 <= index) { [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | qpisf_2s.c | 43 Word16 * index, /* output: indices of survivors */ 443 Word16 Sub_VQ( /* output: return quantization index */ 452 Word32 i, j, index; local 458 index = 0; 472 index = i; 479 p_dico = &dico[index * dim]; 485 return index; 494 Word16 * index, /* output: indices of survivors */ 506 index[0] = 0; 507 index[ 489 VQ_stage1( Word16 * x, Word16 * dico, Word16 dim, Word16 dico_size, Word16 * index, Word16 surv ) argument [all...] |
/frameworks/base/core/java/android/hardware/input/ |
H A D | InputManager.java | 206 int index = mInputDevices.indexOfKey(id); 207 if (index < 0) { 211 InputDevice inputDevice = mInputDevices.valueAt(index); 219 mInputDevices.setValueAt(index, inputDevice); 296 int index = findInputDeviceListenerLocked(listener); 297 if (index < 0) { 316 int index = findInputDeviceListenerLocked(listener); 317 if (index >= 0) { 318 InputDeviceListenerDelegate d = mInputDeviceListeners.get(index); 320 mInputDeviceListeners.remove(index); [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
H A D | omxVCM4P2_MCReconBlock.c | 203 OMX_U8 x,y,count,index; local 206 for (y = 0, count = 0, index = 0; y < 8; y++,index += (srcStep -8), count += (dstStep - 8)) 208 for (x = 0; x < 8; x++, count++,index++) 210 pDst[count] = pSrc[index];
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | TonemapCurve.java | 171 * Get the point for a color channel at a specified index. 173 * <p>The index must be at least 0 but no greater than {@link #getPointCount(int)} for 180 * @param index at least 0 but no greater than {@code getPointCount(colorChannel)} 181 * @return the {@code (Pin, Pout)} pair mapping the tone for that index 183 * @throws IllegalArgumentException if {@code colorChannel} or {@code index} was out of range 188 public PointF getPoint(int colorChannel, int index) { argument 190 if (index < 0 || index >= getPointCount(colorChannel)) { 191 throw new IllegalArgumentException("index out of range"); 196 final float pIn = curve[index * POINT_SIZ [all...] |
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbManager.java | 43 * <a href="{@docRoot}guide/topics/usb/index.html">USB</a> developer guide.</p> 405 int index = functions.indexOf(function); 406 if (index < 0) return false; 407 if (index > 0 && functions.charAt(index - 1) != ',') return false; 408 int charAfter = index + function.length();
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | BroadcasterTest.java | 89 int index = msg.what - MESSAGE_B; 90 if (index < 0 || index >= N) { 93 if (msg.getTarget() == mHandlers[index]) { 94 mSuccess[index] = true;
|
/frameworks/base/media/java/android/media/ |
H A D | MediaExtractor.java | 248 * Get the track format at the specified index. 251 public MediaFormat getTrackFormat(int index) { argument 252 return new MediaFormat(getTrackFormatNative(index)); 255 private native Map<String, Object> getTrackFormatNative(int index); argument 264 public native void selectTrack(int index); argument 271 public native void unselectTrack(int index); argument 310 * Returns the track index the current sample originates from (or -1
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DctController.java | 118 private void updatePhoneBaseForIndex(int index, PhoneBase phoneBase) { argument 119 logd("updatePhoneBaseForIndex for phone index=" + index); 122 EVENT_DATA_ATTACHED + index, null); 124 EVENT_DATA_DETACHED + index, null); 126 ConnectivityManager cm = (ConnectivityManager)mPhones[index].getContext() 130 logd("unregister TelephonyNetworkFactory for phone index=" + index); 131 cm.unregisterNetworkFactory(mNetworkFactoryMessenger[index]); 132 mNetworkFactoryMessenger[index] [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | ResTable_test.cpp | 74 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags); local 75 ASSERT_GE(index, 0); 79 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags); 80 ASSERT_GE(index, 0); 94 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags); local 95 ASSERT_GE(index, 0); 99 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags); 100 ASSERT_GE(index, 0); 114 ssize_t index = theme.getAttribute(lib::R::attr::attr1, &val, &specFlags); local 115 ASSERT_GE(index, [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXNodeInstance.cpp | 375 OMX_INDEXTYPE index, void *params, size_t /* size */) { 378 OMX_ERRORTYPE err = OMX_GetParameter(mHandle, index, params); 379 OMX_INDEXEXTTYPE extIndex = (OMX_INDEXEXTTYPE)index; 382 CLOG_IF_ERROR(getParameter, err, "%s(%#x)", asString(extIndex), index); 388 OMX_INDEXTYPE index, const void *params, size_t size) { 390 OMX_INDEXEXTTYPE extIndex = (OMX_INDEXEXTTYPE)index; 391 CLOG_CONFIG(setParameter, "%s(%#x), %zu@%p)", asString(extIndex), index, size, params); 394 mHandle, index, const_cast<void *>(params)); 395 CLOG_IF_ERROR(setParameter, err, "%s(%#x)", asString(extIndex), index); 400 OMX_INDEXTYPE index, voi 374 getParameter( OMX_INDEXTYPE index, void *params, size_t ) argument 387 setParameter( OMX_INDEXTYPE index, const void *params, size_t size) argument 399 getConfig( OMX_INDEXTYPE index, void *params, size_t ) argument 412 setConfig( OMX_INDEXTYPE index, const void *params, size_t size) argument 439 OMX_INDEXTYPE index; local 462 OMX_INDEXTYPE index; local 503 OMX_INDEXTYPE index; local 556 OMX_INDEXTYPE index; local 586 OMX_INDEXTYPE index; local 671 OMX_INDEXTYPE index = OMX_IndexParamPortDefinition; local 719 OMX_INDEXTYPE index; local 817 OMX_INDEXTYPE index = OMX_IndexParamPortDefinition; local 1062 getExtensionIndex( const char *parameterName, OMX_INDEXTYPE *index) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | PatchPanel.cpp | 165 for (size_t index = 0; *handle != 0 && index < mPatches.size(); index++) { 166 if (*handle == mPatches[index]->mHandle) { 168 halHandle = mPatches[index]->mHalHandle; 169 Patch *removedPatch = mPatches[index]; 170 mPatches.removeAt(index); 182 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule); local 183 if (index < 0) { 188 AudioHwDevice *audioHwDevice = audioflinger->mAudioHwDevs.valueAt(index); 337 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule); local 551 size_t index; local 574 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule); local 621 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule); local 680 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(module); local [all...] |
/frameworks/native/opengl/tools/glgen/specs/gles11/ |
H A D | GLES30.spec | 38 void glGetIntegeri_v ( GLenum target, GLuint index, GLint *data ) 41 void glBindBufferRange ( GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size ) 42 void glBindBufferBase ( GLenum target, GLuint index, GLuint buffer ) 44 void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name ) 45 void glVertexAttribIPointer ( GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 46 void glVertexAttribIPointer ( GLuint index, GLint size, GLenum type, GLsizei stride, GLsizei offset ) 47 void glGetVertexAttribIiv ( GLuint index, GLenum pname, GLint *params ) 48 void glGetVertexAttribIuiv ( GLuint index, GLenum pname, GLuint *params ) 49 void glVertexAttribI4i ( GLuint index, GLint x, GLint y, GLint z, GLint w ) 50 void glVertexAttribI4ui ( GLuint index, GLuin [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaCodec.cpp | 366 size_t index, 377 msg->setSize("index", index); 389 size_t index, 404 msg->setSize("index", index); 421 status_t MediaCodec::dequeueInputBuffer(size_t *index, int64_t timeoutUs) { argument 431 CHECK(response->findSize("index", index)); 437 size_t *index, 365 queueInputBuffer( size_t index, size_t offset, size_t size, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument 388 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 436 dequeueOutputBuffer( size_t *index, size_t *offset, size_t *size, int64_t *presentationTimeUs, uint32_t *flags, int64_t timeoutUs) argument 461 renderOutputBufferAndRelease(size_t index) argument 470 renderOutputBufferAndRelease(size_t index, int64_t timestampNs) argument 480 releaseOutputBuffer(size_t index) argument 555 getOutputBuffer(size_t index, sp<ABuffer> *buffer) argument 560 getOutputFormat(size_t index, sp<AMessage> *format) argument 565 getInputBuffer(size_t index, sp<ABuffer> *buffer) argument 574 getBufferAndFormat( size_t portIndex, size_t index, sp<ABuffer> *buffer, sp<AMessage> *format) argument 653 ssize_t index = dequeuePortBuffer(kPortIndexInput); local 682 ssize_t index = dequeuePortBuffer(kPortIndexOutput); local 1046 ssize_t index = dequeuePortBuffer(kPortIndexInput); local 1855 size_t index; local 1973 size_t index; local 2042 size_t index = *availBuffers->begin(); local 2101 int32_t index; local 2111 int32_t index; local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | UiccCard.java | 231 private int checkIndex(int index, AppType expectedAppType, AppType altExpectedAppType) { argument 232 if (mUiccApplications == null || index >= mUiccApplications.length) { 233 loge("App index " + index + " is invalid since there are no applications"); 237 if (index < 0) { 242 if (mUiccApplications[index].getType() != expectedAppType && 243 mUiccApplications[index].getType() != altExpectedAppType) { 244 loge("App index " + index + " is invalid since it's not " + 250 return index; 432 getApplicationIndex(int index) argument [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.cpp | 62 status_t selectTrack(size_t index, bool select); 64 sp<AMessage> getTrackInfo(size_t index) const; 129 if (property_get("media.httplive.audio-index", value, NULL)) { 163 status_t M3UParser::MediaGroup::selectTrack(size_t index, bool select) { argument 170 if (index >= mMediaItems.size()) { 171 ALOGE("track %zu does not exist", index); 174 if (mSelectedIndex == (ssize_t)index) { 175 ALOGE("track %zu already selected", index); 178 ALOGV("selected track %zu", index); 179 mSelectedIndex = index; 293 itemAt(size_t index, AString *uri, sp<AMessage> *meta) argument 323 selectTrack(size_t index, bool select) argument 395 getTypeURI(size_t index, const char *key, AString *uri) const argument [all...] |
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ArrayMapTests.java | 232 int index = 0; 234 Object realEntry = array.valueAt(index); 237 + " at index " + index); 240 index++; 248 int index=0; 253 Object realValue = array.keyAt(index); 256 + ", got " + value + " at index " + index); 260 realValue = array.valueAt(index); [all...] |
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | MPEG2TSExtractor.cpp | 122 sp<MediaSource> MPEG2TSExtractor::getTrack(size_t index) { argument 123 if (index >= mSourceImpls.size()) { 131 sp<MetaData> meta = mSourceImpls.editItemAt(index)->getFormat(); 140 return new MPEG2TSSource(this, mSourceImpls.editItemAt(index), seekable); 144 size_t index, uint32_t /* flags */) { 145 return index < mSourceImpls.size() 146 ? mSourceImpls.editItemAt(index)->getFormat() : NULL; 143 getTrackMetaData( size_t index, uint32_t ) argument
|