/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
H A D | accessorychat.c | 77 static void send_string(struct usb_device *device, int index, const char* string) { argument 79 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
|
/frameworks/base/location/java/android/location/ |
H A D | Address.java | 75 * Returns the largest index currently in use to specify an address line. 83 * Returns a line of the address numbered by the given index 86 * @throws IllegalArgumentException if index < 0 88 public String getAddressLine(int index) { argument 89 if (index < 0) { 90 throw new IllegalArgumentException("index = " + index + " < 0"); 92 return mAddressLines == null? null : mAddressLines.get(index); 96 * Sets the line of the address numbered by index (starting at 0) to the 99 * @throws IllegalArgumentException if index < 101 setAddressLine(int index, String line) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AudioManager.java | 224 /** @hide Default volume index values for audio streams */ 672 * Returns the maximum volume index for a particular stream. 674 * @param streamType The stream type whose maximum volume index is returned. 675 * @return The maximum valid volume index for the stream. 693 * Returns the current volume index for a particular stream. 695 * @param streamType The stream type whose volume index is returned. 696 * @return The current volume index for the stream. 772 * Sets the volume index for a particular stream. 774 * @param streamType The stream whose volume index should be set. 775 * @param index Th 781 setStreamVolume(int streamType, int index, int flags) argument 850 setMasterVolume(int index, int flags) argument [all...] |
H A D | AudioService.java | 206 * file index in SOUND_EFFECT_FILES[] (first column) and indicating if effect 220 /** @hide Maximum volume index values for audio streams */ 597 pw.println("\nStream volumes (device: index)"); 749 private int rescaleIndex(int index, int srcStream, int dstStream) { argument 750 return (index * mStreamStates[dstStream].getMaxIndex() + mStreamStates[srcStream].getMaxIndex() / 2) / mStreamStates[srcStream].getMaxIndex(); 815 // get last audible index if stream is muted, current index otherwise 828 int index; 835 index = mStreamStates[streamType].getMaxIndex(); 836 oldIndex = index; 909 setStreamVolume(int streamType, int index, int flags) argument 1064 sendVolumeUpdate(int streamType, int oldIndex, int index, int flags) argument 1117 setStreamVolumeInt(int streamType, int index, int device, boolean force, boolean lastAudible) argument 2775 setIndex(int index, int device, boolean lastAudible) argument 2829 setLastAudibleIndex(int index, int device) argument 2914 getValidIndex(int index) argument 5918 checkSafeMediaVolume(int streamType, int index, int device) argument [all...] |
H A D | AudioSystem.java | 385 public static native int setStreamVolumeIndex(int stream, int index, int device); argument
|
H A D | CameraProfile.java | 113 private static native final int native_get_image_encoding_quality_level(int cameraId, int index); argument
|
H A D | DecoderCapabilities.java | 81 private static native final int native_get_video_decoder_type(int index); argument 83 private static native final int native_get_audio_decoder_type(int index); argument
|
H A D | EncoderCapabilities.java | 159 private static native final int native_get_file_format(int index); argument 161 private static native final VideoEncoderCap native_get_video_encoder_cap(int index); argument 163 private static native final AudioEncoderCap native_get_audio_encoder_cap(int index); argument
|
H A D | MediaCodec.java | 63 * referred to by index in API calls. 298 * After filling a range of the input buffer at the specified index 315 * @param index The index of a client-owned input buffer previously returned 326 int index, 392 * @param index The index of a client-owned input buffer previously returned 402 int index, 409 * Returns the index of an input buffer to be filled with valid data 439 * Returns the index o 325 queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) argument 401 queueSecureInputBuffer( int index, int offset, CryptoInfo info, long presentationTimeUs, int flags) argument 456 releaseOutputBuffer(int index, boolean render) argument [all...] |
H A D | MediaCodecInfo.java | 22 /* package private */ MediaCodecInfo(int index) { argument 23 mIndex = index;
|
H A D | MediaCodecList.java | 32 public static final MediaCodecInfo getCodecInfoAt(int index) { argument 33 if (index < 0 || index > getCodecCount()) { 37 return new MediaCodecInfo(index); 40 /* package private */ static native final String getCodecName(int index); argument 42 /* package private */ static native final boolean isEncoder(int index); argument 44 /* package private */ static native final String[] getSupportedTypes(int index); argument 47 getCodecCapabilities(int index, String type); argument
|
H A D | MediaExtractor.java | 198 * Get the track format at the specified index. 201 public MediaFormat getTrackFormat(int index) { argument 202 return new MediaFormat(getTrackFormatNative(index)); 205 private native Map<String, Object> getTrackFormatNative(int index); argument 214 public native void selectTrack(int index); argument 221 public native void unselectTrack(int index); argument 256 * Returns the track index the current sample originates from (or -1
|
H A D | MediaPlayer.java | 1842 * @param index the index of the track to be selected. The valid range of the index 1849 public void selectTrack(int index) throws IllegalStateException { argument 1850 selectOrDeselectTrack(index, true /* select */); 1857 * deselected. If the timed text track identified by index has not been 1860 * @param index the index of the track to be deselected. The valid range of the index 1867 public void deselectTrack(int index) throw argument 1871 selectOrDeselectTrack(int index, boolean select) argument [all...] |
H A D | MediaRouter.java | 574 * Return the {@link MediaRouter.RouteCategory category} at the given index. 577 * @param index which category to return 578 * @return the category at index 580 public RouteCategory getCategoryAt(int index) { argument 581 return sStatic.mCategories.get(index); 595 * Return the route at the specified index. 597 * @param index index of the route to return 598 * @return the route at index 600 public RouteInfo getRouteAt(int index) { argument 608 getRouteAtStatic(int index) argument 692 dispatchRouteGrouped(RouteInfo info, RouteGroup group, int index) argument 1583 removeRoute(int index) argument 1605 getRouteAt(int index) argument 1946 onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, int index) argument 2010 onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, int index) argument [all...] |
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | MediaArtistNativeHelper.java | 2526 * @return The updated index 2604 * @param i The index in clip Properties array for current clip 2607 PreviewClipProperties clipPropertiesArray, int index) { 2611 editSettings.clipSettingsArray[index] = new ClipSettings(); 2612 editSettings.clipSettingsArray[index].clipPath = transition.getFilename(); 2613 editSettings.clipSettingsArray[index].fileType = FileType.THREE_GPP; 2614 editSettings.clipSettingsArray[index].beginCutTime = 0; 2615 editSettings.clipSettingsArray[index].endCutTime = (int)transition.getDuration(); 2616 editSettings.clipSettingsArray[index].mediaRendering = MediaRendering.BLACK_BORDERS; 2619 clipPropertiesArray.clipProperties[index] 2606 generateTransition(Transition transition, EditSettings editSettings, PreviewClipProperties clipPropertiesArray, int index) argument 2644 adjustVolume(MediaItem m, PreviewClipProperties clipProperties, int index) argument 2666 checkOddSizeImage(MediaItem m, PreviewClipProperties clipProperties, int index) argument 2693 populateMediaItemProperties(MediaItem m, int index, int maxHeight) argument 3868 onThumbnail(int index) argument [all...] |
H A D | MediaItem.java | 580 public void onThumbnail(Bitmap bitmap, int index); argument 595 public void onThumbnail(Bitmap bitmap, int index) { 596 bitmaps[index] = bitmap;
|
H A D | VideoEditorImpl.java | 1749 * @param index The media item index 1751 private void removeTransitionBefore(int index) { argument 1752 final MediaItem mediaItem = mMediaItems.get(index); 1761 if (index > 0) { 1762 mMediaItems.get(index - 1).setEndTransition(null); 1774 private void removeTransitionAfter(int index) { argument 1775 final MediaItem mediaItem = mMediaItems.get(index); 1787 if (index < mMediaItems.size() - 1) { 1788 mMediaItems.get(index [all...] |
/frameworks/base/media/java/android/mtp/ |
H A D | MtpStorage.java | 57 * Generates a storage ID for storage of given index. 62 public static int getStorageId(int index) { argument 65 return ((index + 1) << 16) + 1;
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 142 size_t index, 146 index, offset, size, timeUs, flags, errorDetailMsg); 150 size_t index, 161 index, offset, subSamples, numSubSamples, key, iv, mode, 165 status_t JMediaCodec::dequeueInputBuffer(size_t *index, int64_t timeoutUs) { argument 166 return mCodec->dequeueInputBuffer(index, timeoutUs); 170 JNIEnv *env, jobject bufferInfo, size_t *index, int64_t timeoutUs) { 176 index, &offset, &size, &timeUs, &flags, timeoutUs)) != OK) { 188 status_t JMediaCodec::releaseOutputBuffer(size_t index, bool render) { argument 190 ? mCodec->renderOutputBufferAndRelease(index) 141 queueInputBuffer( size_t index, size_t offset, size_t size, int64_t timeUs, uint32_t flags, AString *errorDetailMsg) argument 149 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 169 dequeueOutputBuffer( JNIEnv *env, jobject bufferInfo, size_t *index, int64_t timeoutUs) argument 440 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument 466 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument 615 size_t index; local 636 size_t index; local 647 android_media_MediaCodec_releaseOutputBuffer( JNIEnv *env, jobject thiz, jint index, jboolean render) argument [all...] |
H A D | android_media_MediaCodecList.cpp | 36 JNIEnv *env, jobject thiz, jint index) { 37 const char *name = MediaCodecList::getInstance()->getCodecName(index); 48 JNIEnv *env, jobject thiz, jint index) { 49 return MediaCodecList::getInstance()->isEncoder(index); 53 JNIEnv *env, jobject thiz, jint index) { 56 MediaCodecList::getInstance()->getSupportedTypes(index, &types); 79 JNIEnv *env, jobject thiz, jint index, jstring type) { 97 index, typeStr, &profileLevels, &colorFormats); 35 android_media_MediaCodecList_getCodecName( JNIEnv *env, jobject thiz, jint index) argument 47 android_media_MediaCodecList_isEncoder( JNIEnv *env, jobject thiz, jint index) argument 52 android_media_MediaCodecList_getSupportedTypes( JNIEnv *env, jobject thiz, jint index) argument 78 android_media_MediaCodecList_getCodecCapabilities( JNIEnv *env, jobject thiz, jint index, jstring type) argument
|
H A D | android_media_MediaExtractor.cpp | 153 status_t JMediaExtractor::getTrackFormat(size_t index, jobject *format) const { argument 156 if ((err = mImpl->getTrackFormat(index, &msg)) != OK) { 165 status_t JMediaExtractor::selectTrack(size_t index) { argument 166 return mImpl->selectTrack(index); 169 status_t JMediaExtractor::unselectTrack(size_t index) { argument 170 return mImpl->unselectTrack(index); 323 JNIEnv *env, jobject thiz, jint index) { 332 status_t err = extractor->getTrackFormat(index, &format); 343 JNIEnv *env, jobject thiz, jint index) { 351 status_t err = extractor->selectTrack(index); 322 android_media_MediaExtractor_getTrackFormatNative( JNIEnv *env, jobject thiz, jint index) argument 342 android_media_MediaExtractor_selectTrack( JNIEnv *env, jobject thiz, jint index) argument 359 android_media_MediaExtractor_unselectTrack( JNIEnv *env, jobject thiz, jint index) argument [all...] |
H A D | android_media_MediaProfiles.cpp | 55 android_media_MediaProfiles_native_get_file_format(JNIEnv *env, jobject thiz, jint index) argument 57 ALOGV("native_get_file_format: %d", index); 60 if (index < 0 || index >= nSize) { 64 return static_cast<jint>(formats[index]); 75 android_media_MediaProfiles_native_get_video_encoder_cap(JNIEnv *env, jobject thiz, jint index) argument 77 ALOGV("native_get_video_encoder_cap: %d", index); 80 if (index < 0 || index >= nSize) { 85 video_encoder encoder = encoders[index]; 126 android_media_MediaProfiles_native_get_audio_encoder_cap(JNIEnv *env, jobject thiz, jint index) argument 241 android_media_MediaProfiles_native_get_video_decoder_type(JNIEnv *env, jobject thiz, jint index) argument 262 android_media_MediaProfiles_native_get_audio_decoder_type(JNIEnv *env, jobject thiz, jint index) argument 283 android_media_MediaProfiles_native_get_image_encoding_quality_level(JNIEnv *env, jobject thiz, jint cameraId, jint index) argument [all...] |
/frameworks/base/media/jni/mediaeditor/ |
H A D | VideoEditorJava.cpp | 454 int index = 0; local 470 for (index = 0; index < pClass->count; index++) 474 pClass->pConstants[index].pName, 475 &pClass->pConstants[index].java); 495 int index = 0; local 498 for (index = 0; 499 ((M4OSA_NULL == pName) && (index < pClass->count)); 500 index 537 int index = 0; local 579 int index = 0; local 617 int index = 0; local 654 int index = 0; local 681 int index = 0; local 727 int index = 0; local 792 int index = 0; local 827 int index = 0; local 873 int index = 0; local [all...] |
H A D | VideoEditorMain.cpp | 451 ALOGV("Current Clip index = %d", pCurrEditInfo->clipIndex); 830 "current clip index = %d",iCurrentClipIndex); 3257 ALOGV("decoder index :%d",k); 3267 ALOGV("component index :%d",i); 3403 M4OSA_UInt32 samplesCountInBytes= 0 , numBytesToRead = 0, index = 0; local 3518 index = 0; 3521 while (index < (numBytesToRead / 2)) { 3523 if (ptr16[index] < 0) { 3524 ptr16[index] = -(ptr16[index]); [all...] |
H A D | VideoEditorOsal.cpp | 228 int index = 0; local 231 for (index = 0; 232 ((M4OSA_NULL == pString) && (index < gkRESULTS_COUNT)); 233 index++) 236 if (result == gkRESULTS[index].result) 239 pString = gkRESULTS[index].pName;
|