Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 81) sorted by relevance

1234

/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationCache.java77 public Allocation getOrCreateTyped(Type type, int usage) { in getOrCreateTyped() argument
82 AllocationKey key = new AllocationKey(type, usage); in getOrCreateTyped()
90 "Cache HIT (%d): type = '%s', usage = '%x'", sDebugHits, type, usage)); in getOrCreateTyped()
97 "Cache MISS (%d): type = '%s', usage = '%x'", sDebugMisses, type, usage)); in getOrCreateTyped()
100 return Allocation.createTyped(mRS, type, usage); in getOrCreateTyped()
122 int usage = allocation.getUsage(); in returnToCache() local
123 AllocationKey key = new AllocationKey(allocation.getType(), usage); in returnToCache()
130 if ((usage & Allocation.USAGE_IO_INPUT) != 0) { in returnToCache()
133 if ((usage & Allocation.USAGE_IO_OUTPUT) != 0) { in returnToCache()
211 public AllocationKey(Type type, int usage) { in AllocationKey() argument
[all …]
DAllocationInfo.java89 public static AllocationInfo newInstance(Size size, int format, int usage) { in newInstance() argument
105 return new AllocationInfo(element, size, usage); in newInstance()
164 public static AllocationInfo newInstance(Element element, Size size, int usage) { in newInstance() argument
165 return new AllocationInfo(element, size, usage); in newInstance()
176 public AllocationInfo addExtraUsage(int usage) { in addExtraUsage() argument
177 return new AllocationInfo(mElement, mSize, mUsage | usage); in addExtraUsage()
192 public AllocationInfo changeFormatAndUsage(int format, int usage) { in changeFormatAndUsage() argument
193 return newInstance(getSize(), format, usage); in changeFormatAndUsage()
226 private AllocationInfo(Element element, Size size, int usage) { in AllocationInfo() argument
232 mUsage = usage; in AllocationInfo()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCreateAllocationsTest.java36 Allocation[] createAllocationsHelper(int usage, int numAlloc) { in createAllocationsHelper() argument
39 return Allocation.createAllocations(mRS, t, usage, numAlloc); in createAllocationsHelper()
43 int usage = Allocation.USAGE_SCRIPT; in testCreateAllocations() local
47 allocArray = createAllocationsHelper(usage, numAlloc); in testCreateAllocations()
55 int usage = Allocation.USAGE_IO_INPUT; in testCreateAllocations_USAGE_IO_INPUT() local
60 allocArray = createAllocationsHelper(usage, MAX_NUM_IO_ALLOC + 1); in testCreateAllocations_USAGE_IO_INPUT()
65 allocArray = createAllocationsHelper(usage, numAlloc); in testCreateAllocations_USAGE_IO_INPUT()
74 int usage = Allocation.USAGE_SCRIPT | Allocation.USAGE_IO_INPUT; in testGetProperties() local
75 Allocation[] allocArray = createAllocationsHelper(usage, numAlloc); in testGetProperties()
101 int usage = Allocation.USAGE_SCRIPT | Allocation.USAGE_IO_INPUT; in testMultipleIoReceive_USAGE_IO_INPUT() local
[all …]
/cts/tests/video/
Dcopy_media.sh23 usage="Usage: $0 [-h] [-s serial]"
27 echo $usage
33 echo $usage
/cts/tests/mediapc/
Dcopy_media.sh23 usage="Usage: $0 [-h] [-s serial]"
27 echo $usage
33 echo $usage
/cts/tests/media/
Dcopy_media.sh23 usage="Usage: $0 [-h] [-s serial]"
27 echo $usage
33 echo $usage
/cts/tests/tests/media/src/android/media/cts/
DAudioPlaybackCaptureTest.java97 for (int usage : matchingUsages) { in build()
98 apccBuilder.addMatchingUsage(usage); in build()
102 for (int usage : excludeUsages) { in build()
103 apccBuilder.excludeUsage(usage); in build()
170 @AttributeUsage int usage) { in createMediaPlayer() argument
176 .setUsage(usage) in createMediaPlayer()
325 for (int usage : ALLOWED_USAGES) { in testCaptureMatchingAllowedUsage()
326 mAPCTestConfig.matchingUsages = new int[]{ usage }; in testCaptureMatchingAllowedUsage()
327 testPlaybackCapture(OPT_IN, usage, EXPECT_DATA); in testCaptureMatchingAllowedUsage()
328 testPlaybackCapture(OPT_OUT, usage, EXPECT_SILENCE); in testCaptureMatchingAllowedUsage()
[all …]
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp69 do { if (usage & AHARDWAREBUFFER_USAGE_ ## x) { os << #x << " "; } } while (0)
71 void PrintAhbUsage(std::ostream& os, uint64_t usage) { in PrintAhbUsage() argument
72 if (usage == 0) { in PrintAhbUsage()
76 switch (usage & AHARDWAREBUFFER_USAGE_CPU_READ_MASK) { in PrintAhbUsage()
82 switch (usage & AHARDWAREBUFFER_USAGE_CPU_WRITE_MASK) { in PrintAhbUsage()
135 PrintAhbUsage(*os, desc.usage); in PrintTo()
143 a.usage == b.usage && a.format == b.format; in operator ==()
175 desc.usage = AHARDWAREBUFFER_USAGE_CPU_READ_RARELY; in TEST()
196 desc.usage = AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE; in TEST()
207 desc.usage = AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE; in TEST()
[all …]
/cts/tests/tests/app.usage/TestApp1/src/android/app/usage/cts/test1/
DTestService.java17 package android.app.usage.cts.test1;
20 import android.app.usage.UsageStatsManager;
21 import android.app.usage.cts.ITestReceiver;
DTestBroadcastReceiver.java17 package android.app.usage.cts.test1;
/cts/tests/tests/hardware/jni/
Dandroid_hardware_cts_HardwareBufferTest.cpp27 jint width, jint height, jint format, jint layers, jlong usage) { in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() argument
34 desc.usage = usage; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DFragmentTestActivity.java16 package android.app.usage.cts;
20 import android.app.usage.cts.R;
DCacheQuotaHintTest.java17 package android.app.usage.cts;
22 import android.app.usage.CacheQuotaHint;
23 import android.app.usage.UsageStats;
DActivityTransitionActivity2.java16 package android.app.usage.cts;
DNetworkUsageStatsTest.java17 package android.app.usage.cts;
20 import android.app.usage.NetworkStatsManager;
21 import android.app.usage.NetworkStats;
58 import static android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_ALL;
59 import static android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_NO;
60 import static android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_YES;
61 import static android.app.usage.NetworkStats.Bucket.METERED_ALL;
62 import static android.app.usage.NetworkStats.Bucket.METERED_YES;
63 import static android.app.usage.NetworkStats.Bucket.METERED_NO;
64 import static android.app.usage.NetworkStats.Bucket.STATE_ALL;
[all …]
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_attributes.cpp38 aaudio_usage_t usage, in checkAttributes() argument
66 if (usage != DONT_SET) { in checkAttributes()
67 AAudioStreamBuilder_setUsage(aaudioBuilder, usage); in checkAttributes()
101 (usage == DONT_SET || usage == AAUDIO_UNSPECIFIED) in checkAttributes()
103 : usage; in checkAttributes()
244 for (aaudio_usage_t usage : sUsages) { in checkAttributesUsage() local
248 checkAttributes(perfMode, usage, DONT_SET); in checkAttributesUsage()
/cts/suite/audio_quality/executable/src/
Dmain.cpp54 void usage(char* bin) in usage() function
76 usage(argv[0]); in main()
81 usage(argv[0]); in main()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DReadDefaultUris.java57 private void playUri(final Uri uri, long timeToPlayMs, int usage, int contentType) in playUri() argument
63 new AudioAttributes.Builder().setUsage(usage).setContentType(contentType).build()); in playUri()
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/a/
DAppSearchStorageAugmenterDeviceTest.java24 import android.app.usage.StorageStats;
25 import android.app.usage.StorageStatsManager;
/cts/tests/tests/app.usage/TestApp1/aidl/android/app/usage/cts/
DITestReceiver.aidl16 package android.app.usage.cts;
/cts/hostsidetests/usage/app/src/android/app/usage/app/
DTestActivity.java17 package android.app.usage.app;
/cts/tests/tests/media/libimagereaderjni/
DAImageReaderCts.cpp55 uint64_t usage; member
270 uint64_t usage, in ImageReaderTestCase() argument
276 mUsage(usage), in ImageReaderTestCase()
407 if ((outDesc.usage & mUsage) != mUsage) { in HandleImageAvailable()
409 outDesc.usage, mUsage); in HandleImageAvailable()
516 kTestImageWidth, kTestImageHeight, combination.format, combination.usage, in Java_android_media_cts_NativeImageReaderTest_testSucceedsWithSupportedUsageFormatNative()
520 combination.format, combination.usage); in Java_android_media_cts_NativeImageReaderTest_testSucceedsWithSupportedUsageFormatNative()
/cts/tests/tests/hardware/res/raw/
Dgamevice_gv186_motioneventtests.json3 // This device produces a MOVE with coordinates in generic axes due to the HID usage
/cts/tests/tests/app.usage/TestApp2/src/android/app/usage/cts/test2/
DPipActivity.java17 package android.app.usage.cts.test2;
/cts/tests/tests/graphics/jni/
DImageReaderTestHelpers.cpp29 int32_t format, uint64_t usage, in ImageReaderHelper() argument
31 : mWidth(width), mHeight(height), mFormat(format), mUsage(usage), in ImageReaderHelper()

1234