HomeSort by relevance Sort by last modified time
    Searched refs:afd (Results 1 - 25 of 42) sorted by null

1 2

  /cts/tests/tests/security/src/android/security/cts/
MediaMetadataRetrieverTest.java 49 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local
50 mRetriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
51 afd.close();
MediaServerCrashTest.java 98 AssetFileDescriptor afd = getContext().getResources().openRawResourceFd(res); local
99 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
100 afd.close();
123 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(res); local
124 FileInputStream dmStream = afd.createInputStream();
  /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();
TestMediaDataSource.java 44 // Read an asset fd into a new byte array data source. Closes afd.
45 public static TestMediaDataSource fromAssetFd(AssetFileDescriptor afd) throws IOException {
47 InputStream in = afd.createInputStream();
48 final int size = (int) afd.getDeclaredLength();
58 afd.close();
TestProxyFileDescriptorCallback.java 44 // Read an asset fd into a new byte array data source. Closes afd.
45 public static TestProxyFileDescriptorCallback fromAssetFd(AssetFileDescriptor afd)
48 InputStream in = afd.createInputStream();
49 final int size = (int) afd.getDeclaredLength();
59 afd.close();
MediaMetadataRetrieverTest.java 90 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local
91 mRetriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
92 afd.close();
101 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local
102 ds = TestMediaDataSource.fromAssetFd(afd);
113 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local
114 ds = TestMediaDataSource.fromAssetFd(afd);
256 AssetFileDescriptor afd = resources.openRawResourceFd(resId) local
434 AssetFileDescriptor afd = resources.openRawResourceFd(resId); local
462 AssetFileDescriptor afd = resources.openRawResourceFd(resId); local
504 AssetFileDescriptor afd = resources.openRawResourceFd(resId); local
706 AssetFileDescriptor afd = null; local
    [all...]
MediaPlayerTestBase.java 109 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local
111 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
112 afd.getLength());
122 afd.close();
133 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); local
135 mMediaPlayer.addTimedTextSource(afd.getFileDescriptor(), afd.getStartOffset(),
136 afd.getLength(), MediaPlayer.MEDIA_MIMETYPE_TEXT_SUBRIP);
138 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 106 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(getSoundCs()); local
108 sampleId2 = mSoundPool.load(afd, PRIORITY);
112 FileDescriptor fd = afd.getFileDescriptor();
113 long offset = afd.getStartOffset();
114 long length = afd.getLength();
  /external/strace/tests/
recvfrom.c 79 int afd = accept(lfd, 0, 0); local
80 if (afd < 0)
85 test_sockname_syscall(afd);
  /external/strace/tests-m32/
recvfrom.c 79 int afd = accept(lfd, 0, 0); local
80 if (afd < 0)
85 test_sockname_syscall(afd);
  /external/strace/tests-mx32/
recvfrom.c 79 int afd = accept(lfd, 0, 0); local
80 if (afd < 0)
85 test_sockname_syscall(afd);
  /external/toybox/toys/posix/
cpio.c 83 int pipe, afd = toys.optflags & FLAG_o; local
93 afd = pipe;
104 afd = xcreate(TT.F, perm, 0644);
115 if (!(size =readall(afd, toybuf, 110))) break;
117 tofree = name = strpad(afd, x8u(toybuf+94), 110);
146 data = strpad(afd, size, 0);
164 if (size < sizeof(toybuf)) data = strpad(afd, size, 0);
165 else xreadall(afd, toybuf, sizeof(toybuf));
249 xwrite(afd, toybuf, llen);
250 xwrite(afd, name, nlen)
    [all...]
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/simple/
SimpleTvInputService.java 146 AssetFileDescriptor afd = getResources().openRawResourceFd(resource); local
147 if (afd == null) {
151 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
152 afd.getDeclaredLength());
159 afd.close();
  /bionic/libc/dns/net/
getnameinfo.c 78 static const struct afd { struct
174 const struct afd *afd; local
194 afd = &afdl[i];
202 if (salen < afd->a_socklen) {
208 addr = (const char *)(const void *)sa + afd->a_off;
289 switch(afd->a_af) {
302 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr))
315 hp = android_gethostbyaddrfornetcontext_proxy(addr, afd->a_addrlen, afd->a_af, &netcontext)
    [all...]
getaddrinfo.c 139 static const struct afd { struct
230 const struct afd *, const char *);
233 static const struct afd *find_afd(int);
274 #define GET_AI(ai, afd, addr) \
277 (ai) = get_ai(pai, (afd), (addr)); \
866 const struct afd *afd; local
896 afd = find_afd(pai->ai_family);
897 if (afd == NULL)
901 GET_AI(cur->ai_next, afd, afd->a_addrany)
931 const struct afd *afd; local
1231 const struct afd *afd; local
1315 const struct afd *afd; local
    [all...]
  /developers/demos/JustForUs/justforus/src/main/java/com/example/android/justforus/
AssetProvider.java 154 AssetFileDescriptor afd = openAssetFile(uri, "r"); local
155 if (afd != null) {
156 row[col] = Long.valueOf(afd.getLength());
158 afd.close();
  /device/linaro/bootloader/edk2/MdePkg/Library/DxePalLibEsal/
DxePalLibEsal.inf 19 FILE_GUID = 8BA65DE3-39E1-4afd-A8FE-7DD0BAFEFCC0
  /external/libtextclassifier/utils/java/
jni-base.cc 59 jint GetFdFromAssetFileDescriptor(JNIEnv* env, jobject afd) {
72 jobject bundle_jfd = env->CallObjectMethod(afd, afd_class_getFileDescriptor);
  /device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
getaddrinfo.c 128 static const struct afd { struct
219 const struct afd *, const char *);
224 static const struct afd *find_afd(int);
269 #define GET_AI(ai, afd, addr) \
272 (ai) = get_ai(pai, (afd), (addr)); \
630 const struct afd *afd; local
660 afd = find_afd(pai->ai_family);
661 if (afd == NULL)
665 GET_AI(cur->ai_next, afd, afd->a_addrany);
696 const struct afd *afd; local
998 const struct afd *afd; local
1074 const struct afd *afd; local
    [all...]
getnameinfo.c 101 static const struct afd { struct
180 const struct afd *afd; local
205 afd = &afdl[i];
211 if (salen != afd->a_socklen)
216 addr = (const char *)(const void *)sa + afd->a_off;
300 switch(afd->a_af) {
313 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr))
323 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af);
    [all...]
  /development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/
ReceiveShare.java 63 AssetFileDescriptor afd = resolver.openAssetFileDescriptor( local
66 sb.append(Long.toString(afd.getStartOffset()));
69 sb.append(Long.toString(afd.getLength()));
71 afd.close();
  /external/libtextclassifier/annotator/
annotator_jni.h 39 (JNIEnv* env, jobject thiz, jobject afd, jlong offset, jlong size);
84 (JNIEnv* env, jobject thiz, jobject afd, jlong offset, jlong size);
91 (JNIEnv* env, jobject thiz, jobject afd, jlong offset, jlong size);
98 (JNIEnv* env, jobject thiz, jobject afd, jlong offset, jlong size);
  /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...]
  /cts/tests/tests/content/src/android/content/cts/
ContentResolverTest.java 648 AssetFileDescriptor afd = mContentResolver.openAssetFileDescriptor(uri, "r"); local
649 assertNotNull(afd);
650 afd.close();
668 private String consumeAssetFileDescriptor(AssetFileDescriptor afd)
672 stream = afd.createInputStream();
696 AssetFileDescriptor afd = null; local
699 afd = mContentResolver.openAssetFileDescriptor(REMOTE_CRASH_URI, "rw");
701 assertNotNull(afd);
702 String str = consumeAssetFileDescriptor(afd);
703 afd = null
727 AssetFileDescriptor afd = null; local
    [all...]

Completed in 1211 milliseconds

1 2