/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 129 void PrintTo(const AHardwareBuffer_Desc& desc, ::std::ostream* os) { in PrintTo() argument 130 *os << "AHardwareBuffer_Desc " << desc.width << "x" << desc.height; in PrintTo() 131 if (desc.layers > 1) { in PrintTo() 132 *os << ", " << desc.layers << " layers"; in PrintTo() 135 PrintAhbUsage(*os, desc.usage); in PrintTo() 137 PrintAhbFormat(*os, desc.format); in PrintTo() 154 AHardwareBuffer_Desc desc; in TEST() local 156 memset(&desc, 0, sizeof(AHardwareBuffer_Desc)); in TEST() 158 int res = AHardwareBuffer_allocate(&desc, NULL); in TEST() 169 AHardwareBuffer_Desc desc = {}; in TEST() local [all …]
|
D | AHardwareBufferGLTest.cpp | 228 void UploadData(const AHardwareBuffer_Desc& desc, GLenum format, GLenum type, const void* data) { in UploadData() argument 229 if (desc.layers <= 1) { in UploadData() 230 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, desc.width, desc.height, format, type, data); in UploadData() 233 for (uint32_t layer = 0; layer < desc.layers; ++layer) { in UploadData() 234 glTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, layer, desc.width, desc.height, 1, in UploadData() 242 void UploadRedPixels(const AHardwareBuffer_Desc& desc) { in UploadRedPixels() argument 244 const bool use_srgb = desc.stride & kUseSrgb; in UploadRedPixels() 246 switch (desc.format) { in UploadRedPixels() 253 const int size = desc.width * desc.height * 3; in UploadRedPixels() 260 UploadData(desc, GL_RGB, GL_UNSIGNED_BYTE, pixels.get()); in UploadRedPixels() [all …]
|
/cts/tests/controls/src/android/controls/cts/ |
D | CtsControlsService.java | 116 String desc = isStarted ? "Started" : "Stopped"; in buildMower() local 117 ControlButton button = new ControlButton(isStarted, desc); in buildMower() 123 .setStatusText(desc) in buildMower() 134 String desc = isLocked ? "Locked" : "Unlocked"; in buildLock() local 135 ControlButton button = new ControlButton(isLocked, desc); in buildLock() 141 .setStatusText(desc) in buildLock() 148 String desc = isLocked ? "Locked" : "Unlocked"; in buildGate() local 149 ControlButton button = new ControlButton(isLocked, desc); in buildGate() 155 .setStatusText(desc) in buildGate() 244 String desc = b.getNewState() ? "On" : "Off"; in performControlAction() local [all …]
|
/cts/tests/tests/hardware/jni/ |
D | android_hardware_cts_HardwareBufferTest.cpp | 29 AHardwareBuffer_Desc desc = {}; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() local 31 desc.width = width; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() 32 desc.height = height; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() 33 desc.layers = layers; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() 34 desc.usage = usage; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() 35 desc.format = format; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() 36 int res = AHardwareBuffer_allocate(&desc, &buffer); in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
|
/cts/tests/vr/jni/ |
D | VrExtensionsJni.cpp | 119 static void testEglImageArray(JNIEnv* env, AHardwareBuffer_Desc desc, in testEglImageArray() argument 121 ASSERT_GT(desc.layers, 1); in testEglImageArray() 124 if (AHardwareBuffer_allocate(&desc, &hwbuffer) != NO_ERROR) return; in testEglImageArray() 146 const GLint num_views = desc.layers; in testEglImageArray() 184 AHardwareBuffer_Desc desc = {}; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() local 185 desc.width = 32; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() 186 desc.height = 32; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() 187 desc.usage = AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE | in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() 201 desc.layers = nlayers; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() 202 desc.format = format; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() [all …]
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AuthenticatorDescriptionTest.java | 11 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/core/runner-axt/src/com/android/cts/core/runner/support/ |
D | TestNgRunner.java | 160 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/view/jni/ |
D | android_view_cts_ASurfaceControlTest.cpp | 74 AHardwareBuffer_Desc desc = {}; in allocateBuffer() local 75 desc.width = width; in allocateBuffer() 76 desc.height = height; in allocateBuffer() 77 desc.layers = 1; in allocateBuffer() 78 desc.usage = AHARDWAREBUFFER_USAGE_COMPOSER_OVERLAY | AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN; in allocateBuffer() 79 desc.format = AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM; in allocateBuffer() 81 AHardwareBuffer_allocate(&desc, &buffer); in allocateBuffer() 108 AHardwareBuffer_Desc desc = {}; in getSolidBuffer() local 109 AHardwareBuffer_describe(buffer, &desc); in getSolidBuffer() 119 fillRegion(data, 0, 0, width, height, color, desc.stride); in getSolidBuffer() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2044/ |
D | poc.cpp | 23 sp<ASessionDescription> desc = new ASessionDescription; in main() local 36 if(!desc->setTo(raw, strlen(raw))) { in main() 40 sp<APacketSource> source = new APacketSource(desc, 1); in main()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_FrameRateCtsActivity.cpp | 42 AHardwareBuffer_Desc desc; in Buffer() local 43 memset(&desc, 0, sizeof(desc)); in Buffer() 44 desc.width = width; in Buffer() 45 desc.height = height; in Buffer() 46 desc.layers = 1; in Buffer() 47 desc.format = AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM; in Buffer() 48 desc.usage = in Buffer() 50 int rc = AHardwareBuffer_allocate(&desc, &mBuffer); in Buffer()
|
/cts/hostsidetests/utils/src/android/cts/host/utils/ |
D | DeviceJUnit4ClassRunnerWithParameters.java | 97 Description desc = Description.createSuiteDescription(getTestClass().getJavaClass()); in getDescription() local 99 desc.addChild(describeChild(method)); in getDescription() 101 return desc; in getDescription() 109 Description desc = describeChild(method); in getChildren() local 110 if (desc.getAnnotation(Ignore.class) == null) { in getChildren()
|
/cts/tests/tests/media/assets/ |
D | hls.m3u8 | 4 #EXTINF:10, no desc 6 #EXTINF:10, no desc
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | FatActivityTest.java | 238 private ViewNode assertNode(ViewNode node, String desc, int expectedImportantForAutofill) { 242 if (desc != null) { 243 assertWithMessage("Wrong importantForAutofill mode on %s", desc).that(actualMode)
|
D | UiBot.java | 466 final UiObject2 object = waitForObject(By.desc(contentDescription)); in assertShownByContentDescription()
|
/cts/tests/sensor/jni/ |
D | SensorTest.cpp | 162 AHardwareBuffer_Desc desc = { in TestSharedMemory() local 172 if (AHardwareBuffer_allocate(&desc, &mHardwareBuffer) == 0) { in TestSharedMemory()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-6262/ |
D | poc.c | 39 ver.desc = (char*)malloc(ver.desc_len); in drm_version()
|
D | local_poc.h | 72 char* desc; member
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioEffectTest.java | 79 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in test0_0QueryEffects() local 81 assertTrue("test0_0QueryEffects: number of effects < MIN_NUMBER_EFFECTS: "+desc.length, in test0_0QueryEffects() 82 (desc.length >= MIN_NUMBER_EFFECTS)); in test0_0QueryEffects() 86 for (int i = 0; i < desc.length; i++) { in test0_0QueryEffects() 87 if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_EQUALIZER)) { in test0_0QueryEffects()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/inline/ |
D | InlineUiBot.java | 45 private static final BySelector SUGGESTION_STRIP_SELECTOR = By.desc(SUGGESTION_STRIP_DESC);
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 273 String desc = (isEncoder ? "encoders" : "decoders") + " for " in verifyNumCodecs() local 276 desc = (isGoog ? "Google " : "non-Google ") + desc; in verifyNumCodecs() 280 assertTrue("test can only verify " + count + " " + desc + "; found " + codecs.length + ": " in verifyNumCodecs()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | BrightnessTest.java | 490 private String convertFileDescriptorToString(FileDescriptor desc) { in convertFileDescriptorToString() argument 491 try (Scanner s = new Scanner(new FileInputStream(desc)).useDelimiter("\\Z")) { in convertFileDescriptorToString()
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_cve_2019_2213_Test.c | 345 static inline void chg_ref(int fd, unsigned desc, u32 cmd) { in chg_ref() argument 348 buf_u32(buf, desc); in chg_ref() 352 void inc_ref(int fd, unsigned desc) { in inc_ref() argument 353 chg_ref(fd, desc, BC_ACQUIRE); in inc_ref() 356 void dec_ref(int fd, unsigned desc) { in dec_ref() argument 357 chg_ref(fd, desc, BC_RELEASE); in dec_ref()
|