Home
last modified time | relevance | path

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

12

/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp137 void PrintTo(const AHardwareBuffer_Desc& desc, ::std::ostream* os) { in PrintTo() argument
138 *os << "AHardwareBuffer_Desc " << desc.width << "x" << desc.height; in PrintTo()
139 if (desc.layers > 1) { in PrintTo()
140 *os << ", " << desc.layers << " layers"; in PrintTo()
143 PrintAhbUsage(*os, desc.usage); in PrintTo()
145 PrintAhbFormat(*os, desc.format); in PrintTo()
162 AHardwareBuffer_Desc desc; in TEST() local
164 memset(&desc, 0, sizeof(AHardwareBuffer_Desc)); in TEST()
166 int res = AHardwareBuffer_allocate(&desc, (AHardwareBuffer * * _Nonnull)NULL); in TEST()
178 AHardwareBuffer_Desc desc = {}; in TEST() local
[all …]
DAHardwareBufferGLTest.cpp234 void UploadData(const AHardwareBuffer_Desc& desc, GLenum format, GLenum type, const void* data) { in UploadData() argument
235 if (desc.layers <= 1) { in UploadData()
236 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, desc.width, desc.height, format, type, data); in UploadData()
239 for (uint32_t layer = 0; layer < desc.layers; ++layer) { in UploadData()
240 glTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, layer, desc.width, desc.height, 1, in UploadData()
248 void UploadRedPixels(const AHardwareBuffer_Desc& desc) { in UploadRedPixels() argument
250 const bool use_srgb = desc.stride & kUseSrgb; in UploadRedPixels()
252 switch (desc.format) { in UploadRedPixels()
259 const int size = desc.width * desc.height * 3; in UploadRedPixels()
266 UploadData(desc, GL_RGB, GL_UNSIGNED_BYTE, pixels.get()); in UploadRedPixels()
[all …]
/cts/tests/tests/hardware/jni/
DHardwareBufferTestService.cpp50 AHardwareBuffer_Desc desc = {}; in createBuffer() local
52 desc.width = width; in createBuffer()
53 desc.height = height; in createBuffer()
54 desc.layers = 1; in createBuffer()
55 desc.usage = AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN | AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN; in createBuffer()
56 desc.format = AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM; in createBuffer()
57 int res = AHardwareBuffer_allocate(&desc, &buffer); in createBuffer()
Dandroid_hardware_cts_HardwareBufferTest.cpp33 AHardwareBuffer_Desc desc = {}; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer() local
35 desc.width = width; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
36 desc.height = height; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
37 desc.layers = layers; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
38 desc.usage = usage; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
39 desc.format = format; in android_hardware_HardwareBuffer_nativeCreateHardwareBuffer()
40 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/controls/src/android/controls/cts/
DCtsControlsService.java120 String desc = isStarted ? "Started" : "Stopped"; in buildMower() local
121 ControlButton button = new ControlButton(isStarted, desc); in buildMower()
127 .setStatusText(desc) in buildMower()
138 String desc = isLocked ? "Locked" : "Unlocked"; in buildLock() local
139 ControlButton button = new ControlButton(isLocked, desc); in buildLock()
145 .setStatusText(desc) in buildLock()
152 String desc = isLocked ? "Locked" : "Unlocked"; in buildGate() local
153 ControlButton button = new ControlButton(isLocked, desc); in buildGate()
159 .setStatusText(desc) in buildGate()
261 String desc = b.getNewState() ? "On" : "Off"; in performControlAction() local
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DMethodAnalyzer.java63 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument
65 String type = Type.getType(desc).getClassName(); in visitAnnotation()
67 return super.visitAnnotation(desc, visible); in visitAnnotation()
76 return super.visitAnnotation(desc, visible); in visitAnnotation()
82 String desc, in visitInvokeDynamicInsn() argument
97 public void visitMethodInsn(int opcode, String owners, String name, String desc, boolean itf) { in visitMethodInsn() argument
98 handleMethodCall(owners, name, desc); in visitMethodInsn()
102 private void handleMethodCall(String owners, String name, String desc) { in handleMethodCall() argument
110 for (Type type : Type.getArgumentTypes(desc)) { in handleMethodCall()
DClassAnalyzer.java91 String desc, in visitMethod() argument
96 for (Type type: Type.getArgumentTypes(desc)) { in visitMethod()
101 Type returnType = Type.getReturnType(desc); in visitMethod()
112 public AnnotationVisitor visitAnnotation(String desc, boolean visible) { in visitAnnotation() argument
114 String type = Type.getType(desc).getClassName(); in visitAnnotation()
116 return super.visitAnnotation(desc, visible); in visitAnnotation()
125 return super.visitAnnotation(desc, visible); in visitAnnotation()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp119 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/hostsidetests/securitybulletin/securityPatch/CVE-2019-2044/
Dpoc.cpp23 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/core/runner-axt/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/graphics/jni/
Dandroid_graphics_cts_FrameRateCtsActivity.cpp42 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/
DDeviceJUnit4ClassRunnerWithParameters.java97 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/surfacecontrol/jni/
Dandroid_view_cts_ASurfaceControlTest.cpp54 AHardwareBuffer_Desc desc = {}; in allocateBuffer() local
55 desc.width = width; in allocateBuffer()
56 desc.height = height; in allocateBuffer()
57 desc.layers = 1; in allocateBuffer()
58 desc.usage = AHARDWAREBUFFER_USAGE_COMPOSER_OVERLAY | AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN | in allocateBuffer()
60 desc.format = AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM; in allocateBuffer()
62 AHardwareBuffer_allocate(&desc, &buffer); in allocateBuffer()
96 AHardwareBuffer_Desc desc = {}; in getSolidBuffer() local
97 AHardwareBuffer_describe(buffer, &desc); in getSolidBuffer()
108 fillRegion(data, 0, 0, width, height, color, desc.stride); in getSolidBuffer()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/powermanager/
DPowerManagerStatsTests.java101 final TestDescription desc = TestDescription.fromString( in testThermalHeadroomCalledIsPushed() local
110 TestStatus status = testRunResult.getTestResults().get(desc).getStatus(); in testThermalHeadroomCalledIsPushed()
130 final TestDescription desc = TestDescription.fromString( in testThermalStatusCalledIsPushed() local
139 TestStatus status = testRunResult.getTestResults().get(desc).getStatus(); in testThermalStatusCalledIsPushed()
156 final TestDescription desc = TestDescription.fromString( in testThermalHeadroomThresholdsCalledIsPushed() local
165 TestStatus status = testRunResult.getTestResults().get(desc).getStatus(); in testThermalHeadroomThresholdsCalledIsPushed()
/cts/hostsidetests/install/src/android/cts/install/host/
DDeviceParameterized.java135 Description desc = Description.createSuiteDescription(getTestClass().getJavaClass()); in getDescription() local
137 super.getDescription().getChildren().forEach(child -> desc.addChild(child)); in getDescription()
138 return desc; in getDescription()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/performancehintmanager/
DPerformanceHintManagerStatsTests.java121 final TestDescription desc = TestDescription.fromString( in testCreateHintSessionStatsdApp() local
130 TestResult result = testRunResult.getTestResults().get(desc); in testCreateHintSessionStatsdApp()
171 final TestDescription desc = TestDescription.fromString( in testCreateHintSessionStatsdGame() local
180 TestResult result = testRunResult.getTestResults().get(desc); in testCreateHintSessionStatsdGame()
240 final TestDescription desc = TestDescription.fromString( in testAdpfHintSessionTidCleanupIsPushed() local
247 TestResult result = testRunResult.getTestResults().get(desc); in testAdpfHintSessionTidCleanupIsPushed()
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/launcher/
DIsPhoneShortcutWorkBadgedStepAutomation.java33 () -> TestApis.ui().device().findObject(By.desc("Work Phone"))) in automate()
DIsSmsAppShortcutWorkBadgedStepAutomation.java33 () -> TestApis.ui().device().findObject(By.desc("Work SmsApp"))) in automate()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0479/
Dpoc.cpp96 request.desc = VALUE_OR_RETURN_STATUS( in main()
115 aidl2legacy_EffectDescriptor_effect_descriptor_t(response.desc)); in main()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/projection/
DMediaProjectionAtomsTests.java112 final TestDescription desc = in testMediaProjectionStateChanged_stoppedCapture() local
120 TestResult.TestStatus status = testRunResult.getTestResults().get(desc).getStatus(); in testMediaProjectionStateChanged_stoppedCapture()
157 final TestDescription desc = in testMediaProjectionTargetChanged_stoppedCapture() local
165 TestResult.TestStatus status = testRunResult.getTestResults().get(desc).getStatus(); in testMediaProjectionTargetChanged_stoppedCapture()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DFatActivityTest.java241 private ViewNode assertNode(ViewNode node, String desc, int expectedImportantForAutofill) {
245 if (desc != null) {
246 assertWithMessage("Wrong importantForAutofill mode on %s", desc).that(actualMode)
/cts/apps/CameraITS/utils/
Dui_interaction_utils.py130 _find_ui_object_else_click(dut.ui(desc=ui_facing_description),
132 if not dut.ui(desc=ui_facing_description).wait.exists(
/cts/tests/sensor/jni/
DSensorTest.cpp162 AHardwareBuffer_Desc desc = { in TestSharedMemory() local
172 if (AHardwareBuffer_allocate(&desc, &mHardwareBuffer) == 0) { in TestSharedMemory()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-6262/
Dpoc.c39 ver.desc = (char*)malloc(ver.desc_len); in drm_version()

12