/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 | 124 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); 125 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 126 afd.close(); 146 AssetFileDescriptor afd = mResources.openRawResourceFd(R.raw.sine1320hz5sec); 149 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 150 afd.getLength()); 153 mMediaPlayer2.setDataSource(afd.getFileDescriptor(), afd.getStartOffset() [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...] |
/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...] |
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);
|
/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/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 | 249 AssetFileDescriptor afd = resources.openRawResourceFd(res); local 250 if (afd != null) { 251 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 252 afd.getLength()); 253 afd.close();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryFactory.java | 98 AssetFileDescriptor afd = null; local 103 afd = context.getResources().openRawResourceFd(resId); 104 if (afd == null) { 115 return new BinaryDictionary(context, sourceDir, afd.getStartOffset(), afd.getLength(), 121 if (null != afd) { 123 afd.close();
|
BinaryDictionaryFileDumper.java | 159 AssetFileDescriptor afd = null; local 163 afd = openAssetFileDescriptor(resolver, wordListUri); 165 if (null == afd) return null; 166 originalSourceStream = afd.createInputStream(); 229 // inputStream.close() will close afd, we should not call afd.close(). 272 final AssetFileAddress afd = cacheWordList(id.mId, id.mLocale, resolver, context); local 273 if (null != afd) { 274 fileAddressList.add(afd);
|
/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 | 80 static const struct afd { struct 258 const struct afd *afd; local 283 afd = &afdl[i]; 289 if (salen != afd->a_socklen) 294 addr = (const char *)(const void *)sa + afd->a_off; 373 switch(afd->a_af) { 386 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr)) 401 MAXDNAME, addr, afd->a_addrlen, afd->a_af) [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)); \ 871 const struct afd *afd; local 901 afd = find_afd(pai->ai_family); 902 if (afd == NULL) 906 GET_AI(cur->ai_next, afd, afd->a_addrany) 936 const struct afd *afd; local 1236 const struct afd *afd; local 1309 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();
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertAudio.java | 358 AssetFileDescriptor afd = resources.openRawResourceFd(res); local 359 if (afd != null) { 360 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 361 afd.getLength()); 362 afd.close();
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_AlbumsTest.java | 174 AssetFileDescriptor afd = mContentResolver.openAssetFileDescriptor( local 176 assertNotNull(afd); 177 afd.close(); 187 afd = mContentResolver.openAssetFileDescriptor(albumart, "r"); 198 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();
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentResolverTest.java | 523 AssetFileDescriptor afd = mContentResolver.openAssetFileDescriptor(uri, "r"); local 524 assertNotNull(afd); 525 afd.close(); 543 private String consumeAssetFileDescriptor(AssetFileDescriptor afd) 547 stream = afd.createInputStream(); 571 AssetFileDescriptor afd = null; local 574 afd = mContentResolver.openAssetFileDescriptor(REMOTE_CRASH_URI, "rw"); 577 assertNotNull(afd); 578 String str = consumeAssetFileDescriptor(afd); 579 afd = null 603 AssetFileDescriptor afd = null; local [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
AttachmentProviderTests.java | 357 AssetFileDescriptor afd; local 359 afd = mMockResolver.openAssetFileDescriptor(file1Uri, "r"); 373 afd = mMockResolver.openAssetFileDescriptor(file1Uri, "r"); 392 afd = mMockResolver.openAssetFileDescriptor(file2Uri, "r"); 393 assertNotNull(afd); 395 afd.close(); 425 AssetFileDescriptor afd = mMockResolver.openAssetFileDescriptor(thumb1Uri, "r"); local 426 assertNull(afd); 435 afd = mMockResolver.openAssetFileDescriptor(thumb1Uri, "r"); 436 assertNull(afd); [all...] |