Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp119 void PrintTo(const AHardwareBuffer_Desc& desc, ::std::ostream* os) { in PrintTo() argument
120 *os << "AHardwareBuffer_Desc " << desc.width << "x" << desc.height; in PrintTo()
121 if (desc.layers > 1) { in PrintTo()
122 *os << ", " << desc.layers << " layers"; in PrintTo()
125 PrintAhbUsage(*os, desc.usage); in PrintTo()
127 PrintAhbFormat(*os, desc.format); in PrintTo()
144 AHardwareBuffer_Desc desc; in TEST() local
146 memset(&desc, 0, sizeof(AHardwareBuffer_Desc)); in TEST()
148 int res = AHardwareBuffer_allocate(&desc, NULL); in TEST()
159 AHardwareBuffer_Desc desc = {}; in TEST() local
[all …]
DAHardwareBufferGLTest.cpp132 void UploadData(const AHardwareBuffer_Desc& desc, GLenum format, GLenum type, const void* data) { in UploadData() argument
133 if (desc.layers <= 1) { in UploadData()
134 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, desc.width, desc.height, format, type, data); in UploadData()
136 for (uint32_t layer = 0; layer < desc.layers; ++layer) { in UploadData()
137 glTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, layer, desc.width, desc.height, 1, in UploadData()
144 void UploadRedPixels(const AHardwareBuffer_Desc& desc) { in UploadRedPixels() argument
145 const bool use_srgb = desc.stride & kUseSrgb; in UploadRedPixels()
147 switch (desc.format) { in UploadRedPixels()
153 const int size = desc.width * desc.height * 3; in UploadRedPixels()
160 UploadData(desc, GL_RGB, GL_UNSIGNED_BYTE, pixels.get()); in UploadRedPixels()
[all …]
/cts/tests/tests/hardware/jni/
Dandroid_hardware_cts_HardwareBufferTest.cpp30 AHardwareBuffer_Desc desc = {}; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() local
32 desc.width = width; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
33 desc.height = height; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
34 desc.layers = layers; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
35 desc.usage = usage; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
36 desc.format = format; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
37 int res = AHardwareBuffer_allocate(&desc, &buffer); in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAuthenticatorDescriptionTest.java11 private AuthenticatorDescription desc; field in AuthenticatorDescriptionTest
15 desc = new AuthenticatorDescription(accountType, packageName, 1, 1, 1, 1, true); in setUp()
41 assertEquals(0, desc.describeContents()); in testDescribeContents()
45 AuthenticatorDescription desc = AuthenticatorDescription.newKey(accountType); in testNewKey() local
46 assertEquals(desc.type, accountType); in testNewKey()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp106 static void testEglImageArray(JNIEnv* env, AHardwareBuffer_Desc desc, in testEglImageArray() argument
108 ASSERT_GT(desc.layers, 1); in testEglImageArray()
110 int error = AHardwareBuffer_allocate(&desc, &hwbuffer); in testEglImageArray()
133 const GLint num_views = desc.layers; in testEglImageArray()
171 AHardwareBuffer_Desc desc = {}; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() local
172 desc.width = 32; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray()
173 desc.height = 32; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray()
174 desc.usage = AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE | in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray()
188 desc.layers = nlayers; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray()
189 desc.format = format; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray()
[all …]
/cts/tests/core/runner/src/com/android/cts/core/runner/support/
DTestNgRunner.java160 private static Description filterDescription(Description desc, Filter filter) { in filterDescription() argument
161 if (!filter.shouldRun(desc)) { // XX: Does the filter itself do the recursion? in filterDescription()
165 Description newDesc = desc.childlessCopy(); in filterDescription()
168 if (!descriptionHasChildren(desc)) { in filterDescription()
173 for (Description child : desc.getChildren()) { in filterDescription()
230 private static boolean descriptionHasChildren(Description desc) { in descriptionHasChildren() argument
233 return desc != null && desc.getChildren() != null && !desc.getChildren().isEmpty(); in descriptionHasChildren()
/cts/tests/tests/media/assets/
Dhls.m3u84 #EXTINF:10, no desc
6 #EXTINF:10, no desc
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DDeviceJUnit4ClassRunnerWithParameters.java84 Description desc = Description.createSuiteDescription(getTestClass().getJavaClass()); in getDescription() local
86 desc.addChild(describeChild(method)); in getDescription()
88 return desc; in getDescription()
96 Description desc = describeChild(method); in getChildren() local
97 if (desc.getAnnotation(Ignore.class) == null) { in getChildren()
/cts/tools/dasm/src/dasm/
Dparser.cup419 DFIELD access:a Word:name Word:desc SIGNATURE Str:sig optional_default:v SEP
420 {: dAsm.addField((short)a.int_val, name.str_val, desc.str_val,
423 DFIELD access:a Word:name Word:desc optional_default:v SEP
424 {: dAsm.addField((short)a.int_val, name.str_val, desc.str_val,
440 field_start ::= access:a Word:name Word:desc optional_default:v SEP
442 desc.str_val, v.variant_val); :}
607 // .var <num> is <name> <desc> from StartLab to EndLab
608 // .var <num> is <name> <desc> signature <sign> from StartLab to EndLab
611 Int:reg IS Word:name Word:desc optional_signature:sign FROM Word:slab TO Word:elab
613 desc.str_val, sign.str_val, reg.int_val); :}
[all …]
DDAsm.java201 void addVar(String startLab, String endLab, String name, String desc, in addVar() argument
206 void addVar(int startOffset, int endOffset, String name, String desc, in addVar() argument
345 void beginField(short access, String name, String desc, Object value) in beginField() argument
362 void addField(short access, String name, String desc, String sig, in addField() argument
365 System.out.println("addField(" + name + ", " + desc + ", " + sig in addField()
369 CstNat nat = new CstNat(new CstString(name), new CstString(desc)); in addField()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DFatActivityTest.java239 private ViewNode assertNode(ViewNode node, String desc, int expectedImportantForAutofill) { in assertNode() argument
243 if (desc != null) { in assertNode()
244 assertWithMessage("Wrong importantForAutofill mode on %s", desc).that(actualMode) in assertNode()
DUiBot.java323 final UiObject2 object = waitForObject(By.desc(contentDescription));
/cts/tests/sensor/jni/
DSensorTest.cpp162 AHardwareBuffer_Desc desc = { in TestSharedMemory() local
172 if (AHardwareBuffer_allocate(&desc, &mHardwareBuffer) == 0) { in TestSharedMemory()
/cts/hostsidetests/security/securityPatch/CVE-2017-6262/
Dpoc.c40 ver.desc = (char*)malloc(ver.desc_len); in drm_version()
Dlocal_poc.h72 char* desc; member
/cts/tests/tests/media/src/android/media/cts/
DAudioEffectTest.java78 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in test0_0QueryEffects() local
80 assertTrue("test0_0QueryEffects: number of effects < MIN_NUMBER_EFFECTS: "+desc.length, in test0_0QueryEffects()
81 (desc.length >= MIN_NUMBER_EFFECTS)); in test0_0QueryEffects()
85 for (int i = 0; i < desc.length; i++) { in test0_0QueryEffects()
86 if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_EQUALIZER)) { in test0_0QueryEffects()
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java400 private String convertFileDescriptorToString(FileDescriptor desc) { in convertFileDescriptorToString() argument
401 try (Scanner s = new Scanner(new FileInputStream(desc)).useDelimiter("\\Z")) { in convertFileDescriptorToString()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java268 String desc = (isEncoder ? "encoders" : "decoders") + " for " in verifyNumCodecs() local
271 desc = (isGoog ? "Google " : "non-Google ") + desc; in verifyNumCodecs()
275 assertTrue("test can only verify " + count + " " + desc + "; found " + codecs.length + ": " in verifyNumCodecs()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...