/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerSurfaceStubActivity.java | 44 AssetFileDescriptor afd = mResources.openRawResourceFd(R.raw.testvideo); local 46 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 47 afd.close();
|
MediaPlayerTestBase.java | 146 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local 148 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 149 afd.getLength()); 159 afd.close(); 165 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local 167 mMediaPlayer.addTimedTextSource(afd.getFileDescriptor(), afd.getStartOffset(), 168 afd.getLength(), MediaPlayer.MEDIA_MIMETYPE_TEXT_SUBRIP); 170 afd.close() [all...] |
MediaPlayerTest.java | 125 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); 126 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 127 afd.close(); 147 AssetFileDescriptor afd = mResources.openRawResourceFd(R.raw.test1m1s); 150 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 154 afd.close() [all...] |
MediaRandomTest.java | 165 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local 167 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 168 afd.getLength()); 170 afd.close();
|
SoundPoolTest.java | 96 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(getSoundCs()); local 98 sampleId2 = mSoundPool.load(afd, PRIORITY); 102 FileDescriptor fd = afd.getFileDescriptor(); 103 long offset = afd.getStartOffset(); 104 long length = afd.getLength();
|
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/ |
VariableSpeedNative.java | 42 AssetFileDescriptor afd = context.getContentResolver().openAssetFileDescriptor(uri, "r"); local 44 FileDescriptor fileDescriptor = afd.getFileDescriptor(); 48 VariableSpeedNative.playFileDescriptor(fd, afd.getStartOffset(), afd.getLength()); 59 MoreCloseables.closeQuietly(afd);
|
/system/extras/sound/ |
playwav.c | 44 int afd; local 46 afd = open("/dev/msm_pcm_out", O_RDWR); 47 if (afd < 0) { 52 if(ioctl(afd, AUDIO_GET_CONFIG, &config)) { 59 if (ioctl(afd, AUDIO_SET_CONFIG, &config)) { 73 if (write(afd, buf, sz) != sz) 78 ioctl(afd, AUDIO_START, 0); 82 if (ioctl(afd, AUDIO_GET_STATS, &stats) == 0) 87 if (write(afd, buf, sz) != sz) 92 close(afd); 197 int fd, afd; local 299 int fd, afd; local [all...] |
/external/tcpdump/missing/ |
getaddrinfo.c | 119 static const struct afd { struct 183 static int get_name (const char *, const struct afd *, struct addrinfo **, 188 const struct afd *, const char *); 191 static const struct afd *find_afd (int); 213 #define GET_AI(ai, afd, addr) \ 216 (ai) = get_ai(pai, (afd), (addr)); \ 300 const struct afd *afd; local 444 for (afd = afdl; afd->a_af; afd++) 524 const struct afd *afd; local 689 const struct afd *afd; local 751 const struct afd *afd; local 1106 const struct afd *afd; local [all...] |
getnameinfo.c | 70 static struct afd { struct 109 struct afd *afd; local 131 afd = &afdl[i]; 137 if (salen != afd->a_socklen) 141 addr = (char *)sa + afd->a_off; 216 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr)) 223 if (afd->a_af == AF_INET6 && 244 hp = getipnodebyaddr(addr, afd->a_addrlen, afd->a_af, &h_error) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryFactory.java | 94 AssetFileDescriptor afd = null; local 99 afd = context.getResources().openRawResourceFd(resId); 100 if (afd == null) { 111 return new BinaryDictionary(sourceDir, afd.getStartOffset(), afd.getLength(), 117 if (null != afd) { 119 afd.close();
|
BinaryDictionaryGetter.java | 92 final AssetFileDescriptor afd = context.getResources().openRawResourceFd(fallbackResId); local 93 if (afd == null) { 100 context.getApplicationInfo().sourceDir, afd.getStartOffset(), afd.getLength()); 103 afd.close();
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
TimerRingService.java | 134 AssetFileDescriptor afd = getAssets().openFd("sounds/Timer_Expire.ogg"); local 136 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 175 AssetFileDescriptor afd = resources.openRawResourceFd(res); local 176 if (afd != null) { 177 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 178 afd.getLength()); 179 afd.close() [all...] |
AlarmKlaxon.java | 251 AssetFileDescriptor afd = resources.openRawResourceFd(res); local 252 if (afd != null) { 253 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 254 afd.getLength()); 255 afd.close();
|
/frameworks/base/media/java/android/media/ |
SoundPool.java | 191 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); local 193 if (afd != null) { 194 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); 196 afd.close(); 207 * @param afd an asset file descriptor 212 public int load(AssetFileDescriptor afd, int priority) { 213 if (afd != null) { 214 long len = afd.getLength() [all...] |
Ringtone.java | 296 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd( local 298 if (afd != null) { 300 if (afd.getDeclaredLength() < 0) { 301 mLocalPlayer.setDataSource(afd.getFileDescriptor()); 303 mLocalPlayer.setDataSource(afd.getFileDescriptor(), 304 afd.getStartOffset(), 305 afd.getDeclaredLength()); 310 afd.close();
|
JetPlayer.java | 221 * @param afd the asset file descriptor. 224 public boolean loadJetFile(AssetFileDescriptor afd) { 225 long len = afd.getLength(); 230 afd.getFileDescriptor(), afd.getStartOffset(), len);
|
/system/core/toolbox/ |
alarm.c | 20 int afd; local 64 afd = open("/dev/alarm", O_RDWR); 65 if(afd < 0) { 114 res = ioctl(afd, ANDROID_ALARM_GET_TIME(alarmtype), &ts); 126 res = ioctl(afd, ANDROID_ALARM_SET(alarmtype), &ts); 153 res = ioctl(afd, ANDROID_ALARM_WAIT); 187 close(afd);
|
/bionic/libc/netbsd/net/ |
getnameinfo.c | 74 static const struct afd { struct 184 const struct afd *afd; local 204 afd = &afdl[i]; 212 if (salen < afd->a_socklen) { 218 addr = (const char *)(const void *)sa + afd->a_off; 297 switch(afd->a_af) { 310 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr)) 324 MAXDNAME, addr, afd->a_addrlen, afd->a_af, iface) [all...] |
getaddrinfo.c | 136 static const struct afd { struct 227 const struct afd *, const char *); 230 static const struct afd *find_afd(int); 270 #define GET_AI(ai, afd, addr) \ 273 (ai) = get_ai(pai, (afd), (addr)); \ 862 const struct afd *afd; local 892 afd = find_afd(pai->ai_family); 893 if (afd == NULL) 897 GET_AI(cur->ai_next, afd, afd->a_addrany) 927 const struct afd *afd; local 1227 const struct afd *afd; local 1300 const struct afd *afd; local [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
PinyinDecoderService.java | 132 AssetFileDescriptor afd = getResources().openRawResourceFd( local 136 .i("foo", "Dict: start=" + afd.getStartOffset() 137 + ", length=" + afd.getLength() + ", fd=" 138 + afd.getParcelFileDescriptor()); 141 inited = nativeImOpenDecoderFd(afd.getFileDescriptor(), afd 142 .getStartOffset(), afd.getLength(), usr_dict); 145 afd.close();
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
ContactDetailFragment.java | 553 AssetFileDescriptor afd = null; local 564 afd = contentResolver.openAssetFileDescriptor(displayImageUri, "r"); 566 if (afd != null) { 569 afd.getFileDescriptor(), imageSize, imageSize); 584 if (afd != null) { 586 afd.close(); 604 afd = getActivity().getContentResolver().openAssetFileDescriptor(imageUri, "r"); 607 if (afd != null) { 611 afd.getFileDescriptor(), imageSize, imageSize); 626 if (afd != null) [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertAudio.java | 365 AssetFileDescriptor afd = resources.openRawResourceFd(res); local 366 if (afd != null) { 367 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 368 afd.getLength()); 369 afd.close();
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_AlbumsTest.java | 177 AssetFileDescriptor afd = mContentResolver.openAssetFileDescriptor( local 179 assertNotNull(afd); 180 afd.close(); 190 afd = mContentResolver.openAssetFileDescriptor(albumart, "r"); 201 afd = mContentResolver.openAssetFileDescriptor(albumart, "r");
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
SimplePlayer.java | 118 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(mFileResId); local 119 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 120 afd.close();
|
/packages/apps/Browser/src/com/android/browser/homepages/ |
HomeProvider.java | 80 AssetFileDescriptor afd = new AssetFileDescriptor(write, 0, -1);
local 81 new RequestHandler(getContext(), uri, afd.createOutputStream()).start();
|