Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 63) sorted by relevance

123

/cts/tests/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java88 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testDescribeContents() local
90 info.describeContents()); in testDescribeContents()
91 fullyPopulateAccessibilityNodeInfo(info); in testDescribeContents()
93 info.describeContents()); in testDescribeContents()
101 private void fullyPopulateAccessibilityNodeInfo(AccessibilityNodeInfo info) { in fullyPopulateAccessibilityNodeInfo() argument
102 info.setParent(new View(getContext())); in fullyPopulateAccessibilityNodeInfo()
103 info.setSource(new View(getContext())); in fullyPopulateAccessibilityNodeInfo()
104 info.addChild(new View(getContext())); in fullyPopulateAccessibilityNodeInfo()
105 info.addChild(new View(getContext()), 1); in fullyPopulateAccessibilityNodeInfo()
106 info.setBoundsInParent(new Rect(1,1,1,1)); in fullyPopulateAccessibilityNodeInfo()
[all …]
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DEditorInfoTest.java31 EditorInfo info = new EditorInfo(); in testEditorInfo() local
33 info.actionId = 1; in testEditorInfo()
34 info.actionLabel = "actionLabel"; in testEditorInfo()
35 info.fieldId = 2; in testEditorInfo()
36 info.fieldName = "fieldName"; in testEditorInfo()
37 info.hintText = "hintText"; in testEditorInfo()
38 info.imeOptions = EditorInfo.IME_FLAG_NO_ENTER_ACTION; in testEditorInfo()
39 info.initialCapsMode = TextUtils.CAP_MODE_CHARACTERS; in testEditorInfo()
40 info.initialSelEnd = 10; in testEditorInfo()
41 info.initialSelStart = 0; in testEditorInfo()
[all …]
DCompletionInfoTest.java32 CompletionInfo info = new CompletionInfo(ID, POSITION, TEXT, LABEL); in testCompletionInfo() local
33 assertCompletionInfo(info); in testCompletionInfo()
35 assertEquals(0, info.describeContents()); in testCompletionInfo()
36 assertNotNull(info.toString()); in testCompletionInfo()
39 info.writeToParcel(p, 0); in testCompletionInfo()
46 private void assertCompletionInfo(CompletionInfo info) { in assertCompletionInfo() argument
47 assertEquals(ID, info.getId()); in assertCompletionInfo()
48 assertEquals(POSITION, info.getPosition()); in assertCompletionInfo()
49 assertEquals(TEXT, info.getText().toString()); in assertCompletionInfo()
50 assertEquals(LABEL, info.getLabel().toString()); in assertCompletionInfo()
/cts/tests/tests/admin/src/android/admin/cts/
DDeviceAdminInfoTest.java64 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); in testDeviceAdminInfo() local
65 assertEquals(mComponent, info.getComponent()); in testDeviceAdminInfo()
66 assertEquals(mComponent.getPackageName(), info.getPackageName()); in testDeviceAdminInfo()
67 assertEquals(mComponent.getClassName(), info.getReceiverName()); in testDeviceAdminInfo()
69 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_FORCE_LOCK)); in testDeviceAdminInfo()
70 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD)); in testDeviceAdminInfo()
71 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_RESET_PASSWORD)); in testDeviceAdminInfo()
72 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WATCH_LOGIN)); in testDeviceAdminInfo()
73 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WIPE_DATA)); in testDeviceAdminInfo()
76 info.getTagForPolicy(DeviceAdminInfo.USES_POLICY_FORCE_LOCK)); in testDeviceAdminInfo()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfoTest.java42 ApplicationInfo info = new ApplicationInfo(); in testConstructor() local
45 info.packageName = mPackageName; in testConstructor()
46 ApplicationInfo copy = new ApplicationInfo(info); in testConstructor()
47 assertEquals(info.packageName, copy.packageName); in testConstructor()
57 ApplicationInfo info = ApplicationInfo.CREATOR.createFromParcel(p); in testWriteToParcel() local
58 assertEquals(mApplicationInfo.taskAffinity, info.taskAffinity); in testWriteToParcel()
59 assertEquals(mApplicationInfo.permission, info.permission); in testWriteToParcel()
60 assertEquals(mApplicationInfo.processName, info.processName); in testWriteToParcel()
61 assertEquals(mApplicationInfo.className, info.className); in testWriteToParcel()
62 assertEquals(mApplicationInfo.theme, info.theme); in testWriteToParcel()
[all …]
DActivityInfoTest.java38 ActivityInfo info = new ActivityInfo(); in testConstructor() local
39 new ActivityInfo(info); in testConstructor()
58 ActivityInfo info = ActivityInfo.CREATOR.createFromParcel(p); in testWriteToParcel() local
59 assertEquals(mActivityInfo.theme, info.theme); in testWriteToParcel()
60 assertEquals(mActivityInfo.launchMode, info.launchMode); in testWriteToParcel()
61 assertEquals(mActivityInfo.permission, info.permission); in testWriteToParcel()
62 assertEquals(mActivityInfo.taskAffinity, info.taskAffinity); in testWriteToParcel()
63 assertEquals(mActivityInfo.targetActivity, info.targetActivity); in testWriteToParcel()
64 assertEquals(mActivityInfo.flags, info.flags); in testWriteToParcel()
65 assertEquals(mActivityInfo.screenOrientation, info.screenOrientation); in testWriteToParcel()
[all …]
/cts/tests/tests/drm/src/android/drm/cts/
DDrmSupportInfoTest.java92 DrmSupportInfo info = new DrmSupportInfo(); in checkSetAndGetDescription() local
93 info.setDescription(description); in checkSetAndGetDescription()
94 assertEquals(info.getDescriprition(), description); in checkSetAndGetDescription()
98 DrmSupportInfo info = new DrmSupportInfo(); in checkSetInvalidDescription() local
100 info.setDescription(description); in checkSetInvalidDescription()
108 DrmSupportInfo info = new DrmSupportInfo(); in checkAddInvalidFileSuffix() local
110 info.addFileSuffix(fileSuffix); in checkAddInvalidFileSuffix()
111 info = null; in checkAddInvalidFileSuffix()
119 DrmSupportInfo info = new DrmSupportInfo(); in checkAddValidFileSuffix() local
120 info.addFileSuffix(fileSuffix); in checkAddValidFileSuffix()
[all …]
DDrmInfoTest.java82 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, DEFAULT_MIME); in testPutAndGetKeys() local
86 info.put(key, attributes.get(key)); in testPutAndGetKeys()
90 Iterator<String> infoKeys = info.keyIterator(); in testPutAndGetKeys()
93 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys()
99 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys()
103 Iterator<Object> iterator = info.iterator(); in testPutAndGetKeys()
113 DrmInfo info = new DrmInfo(DEFAULT_TYPE, data, DEFAULT_MIME); in checkInvalidData() local
122 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, mimeType); in checkInvalidMimeType() local
130 DrmInfo info = new DrmInfo(DEFAULT_TYPE, data, DEFAULT_MIME); in checkGetData() local
131 assertEquals(info.getData(), data); in checkGetData()
[all …]
DDrmInfoStatusTest.java44 DrmInfoStatus info = new DrmInfoStatus( in checkInvalidStatusCode() local
46 info = null; in checkInvalidStatusCode()
54 DrmInfoStatus info = new DrmInfoStatus( in checkValidStatusCode() local
56 info = null; in checkValidStatusCode()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DDeviceInfoResultTest.java100 DeviceInfoResult info = new DeviceInfoResult(); in testPopulateMetrics_combinedSerial() local
102 addMetric(DeviceInfoConstants.PROCESSES, "proc", info); in testPopulateMetrics_combinedSerial()
103 addMetric(DeviceInfoConstants.SERIAL_NUMBER, "device1", info); in testPopulateMetrics_combinedSerial()
105 assertEquals("device1", info.getMetrics().get( in testPopulateMetrics_combinedSerial()
108 addMetric(DeviceInfoConstants.SERIAL_NUMBER, "device1", info); in testPopulateMetrics_combinedSerial()
110 assertEquals("device1", info.getMetrics().get( in testPopulateMetrics_combinedSerial()
113 addMetric(DeviceInfoConstants.SERIAL_NUMBER, "device2", info); in testPopulateMetrics_combinedSerial()
114 assertEquals("device1,device2", info.getMetrics().get( in testPopulateMetrics_combinedSerial()
122 DeviceInfoResult info = new DeviceInfoResult(); in testPopulateMetrics_verify() local
123 addMetric(DeviceInfoConstants.BUILD_FINGERPRINT, "fingerprint1", info); in testPopulateMetrics_verify()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecListTest.java64 MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i); in testComponentInstantiation() local
66 Log.d(TAG, (i + 1) + ": " + info.getName()); in testComponentInstantiation()
67 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testComponentInstantiation()
69 if (!info.getName().startsWith("OMX.")) { in testComponentInstantiation()
78 MediaCodec codec = MediaCodec.createByCodecName(info.getName()); in testComponentInstantiation()
92 MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i); in testGetCapabilities() local
94 Log.d(TAG, (i + 1) + ": " + info.getName()); in testGetCapabilities()
95 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testGetCapabilities()
97 if (!info.getName().startsWith("OMX.")) { in testGetCapabilities()
106 String[] types = info.getSupportedTypes(); in testGetCapabilities()
[all …]
DEncodeDecodeTest.java443 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in doEncodeDecodeVideoFromBuffer() local
530 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doEncodeDecodeVideoFromBuffer()
551 encodedData.position(info.offset); in doEncodeDecodeVideoFromBuffer()
552 encodedData.limit(info.offset + info.size); in doEncodeDecodeVideoFromBuffer()
554 encodedSize += info.size; in doEncodeDecodeVideoFromBuffer()
556 byte[] data = new byte[info.size]; in doEncodeDecodeVideoFromBuffer()
558 encodedData.position(info.offset); in doEncodeDecodeVideoFromBuffer()
566 if ((info.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) { in doEncodeDecodeVideoFromBuffer()
580 if (VERBOSE) Log.d(TAG, "decoder configured (" + info.size + " bytes)"); in doEncodeDecodeVideoFromBuffer()
588 decoder.queueInputBuffer(inputBufIndex, 0, info.size, in doEncodeDecodeVideoFromBuffer()
[all …]
DEncoderTest.java140 MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i); in getEncoderNamesForType() local
142 if (!info.isEncoder()) { in getEncoderNamesForType()
146 if (!info.getName().startsWith("OMX.")) { in getEncoderNamesForType()
151 Log.d(TAG, "skipping '" + info.getName() + "'."); in getEncoderNamesForType()
155 String[] supportedTypes = info.getSupportedTypes(); in getEncoderNamesForType()
159 names.push(info.getName()); in getEncoderNamesForType()
185 int index, MediaCodec.BufferInfo info) { in dequeueOutputBuffer() argument
245 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in testEncoder() local
246 index = codec.dequeueOutputBuffer(info, kTimeoutUs /* timeoutUs */); in testEncoder()
253 dequeueOutputBuffer(codec, codecOutputBuffers, index, info); in testEncoder()
[all …]
DDecodeEditEncodeTest.java268 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in generateVideoData() local
308 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in generateVideoData()
331 assertTrue((info.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0 || in generateVideoData()
334 if (info.size != 0) { in generateVideoData()
336 encodedData.position(info.offset); in generateVideoData()
337 encodedData.limit(info.offset + info.size); in generateVideoData()
339 output.addChunk(encodedData, info.flags, info.presentationTimeUs); in generateVideoData()
344 if ((info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in generateVideoData()
465 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in editVideoData() local
512 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in editVideoData()
[all …]
DEncodeVirtualDisplayTest.java221 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in doTestEncodeVirtual() local
258 int decoderStatus = decoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doTestEncodeVirtual()
274 " (size=" + info.size + ")"); in doTestEncodeVirtual()
275 if ((info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in doTestEncodeVirtual()
282 boolean doRender = (info.size != 0); in doTestEncodeVirtual()
327 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doTestEncodeVirtual()
349 encodedData.position(info.offset); in doTestEncodeVirtual()
350 encodedData.limit(info.offset + info.size); in doTestEncodeVirtual()
353 byte[] data = new byte[info.size]; in doTestEncodeVirtual()
355 encodedData.position(info.offset); in doTestEncodeVirtual()
[all …]
DDecoderTest.java211 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in decodeToMemory() local
249 int res = codec.dequeueOutputBuffer(info, kTimeOutUs); in decodeToMemory()
254 if (info.size > 0) { in decodeToMemory()
257 if (info.size > 0 && resetMode != RESET_MODE_NONE) { in decodeToMemory()
278 if (decodedIdx + (info.size / 2) >= decoded.length) { in decodeToMemory()
279 decoded = Arrays.copyOf(decoded, decodedIdx + (info.size / 2)); in decodeToMemory()
282 for (int i = 0; i < info.size; i += 2) { in decodeToMemory()
288 if ((info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in decodeToMemory()
562 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in countFrames() local
609 int res = codec.dequeueOutputBuffer(info, kTimeOutUs); in countFrames()
[all …]
DMediaCodecTest.java442 final CodecInfo info = getAvcSupportedFormatInfo(); in testConcurrentAudioVideoEncodings() local
447 runVideoEncoding(VIDEO_NUM_SWAPS, info); in testConcurrentAudioVideoEncodings()
481 CodecInfo info = new CodecInfo(); in getAvcSupportedFormatInfo() local
539 info.mMaxW = maxW; in getAvcSupportedFormatInfo()
540 info.mMaxH = maxH; in getAvcSupportedFormatInfo()
541 info.mFps = fps; in getAvcSupportedFormatInfo()
542 info.mBitRate = bitRate; in getAvcSupportedFormatInfo()
544 " fps " + info.mFps + " w " + maxW + " h " + maxH); in getAvcSupportedFormatInfo()
546 return info; in getAvcSupportedFormatInfo()
549 private void runVideoEncoding(int numSwap, CodecInfo info) { in runVideoEncoding() argument
[all …]
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DCodecInfo.java56 CodecInfo info = new CodecInfo(); in getSupportedFormatInfo() local
59 info.mSupportSemiPlanar = true; in getSupportedFormatInfo()
62 info.mSupportPlanar = true; in getSupportedFormatInfo()
67 if (!info.mSupportPlanar && !info.mSupportSemiPlanar) { in getSupportedFormatInfo()
162 info.mFps = maxMacroblocksPerSecond / mbH / mbW; in getSupportedFormatInfo()
163 info.mBitRate = bitRate; in getSupportedFormatInfo()
165 " fps " + info.mFps); in getSupportedFormatInfo()
167 return info; in getSupportedFormatInfo()
180 MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i); in getCodecCapability() local
181 String[] types = info.getSupportedTypes(); in getCodecCapability()
[all …]
/cts/libs/deviceutil/src/android/cts/util/
DSystemUtil.java31 MemoryInfo info = new MemoryInfo(); in getFreeMemory() local
33 activityManager.getMemoryInfo(info); in getFreeMemory()
34 return info.availMem; in getFreeMemory()
38 MemoryInfo info = new MemoryInfo(); in getTotalMemory() local
40 activityManager.getMemoryInfo(info); in getTotalMemory()
41 return info.totalMem; // TODO totalMem N/A in ICS. in getTotalMemory()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Draytrace.js427 var info = new Flog.RayTracer.IntersectionInfo();
428 info.shape = this;
437 info.isHit = true;
438 info.distance = (-B) - Math.sqrt(D);
439 info.position = Flog.RayTracer.Vector.prototype.add(
443 info.distance
446 info.normal = Flog.RayTracer.Vector.prototype.subtract(
447 info.position,
451 info.color = this.material.getColor(0,0);
453 info.isHit = false;
[all …]
/cts/libs/vogar-expect/src/vogar/util/
DLog.java50 public static void info(String s) { in info() method in Log
52 sLogoutput.info(s); in info()
56 public static void info(String message, Throwable throwable) { in info() method in Log
58 sLogoutput.info(message, throwable); in info()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityActivityTestCase.java53 AccessibilityServiceInfo info = getInstrumentation().getUiAutomation().getServiceInfo(); in setUp() local
54 info.flags |= AccessibilityServiceInfo.FLAG_REQUEST_TOUCH_EXPLORATION_MODE; in setUp()
55 info.flags &= ~AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS; in setUp()
56 getInstrumentation().getUiAutomation().setServiceInfo(info); in setUp()
DAccessibilityWindowQueryTest.java74 AccessibilityServiceInfo info = getInstrumentation().getUiAutomation().getServiceInfo(); in testTraverseWindow() local
75 info.flags |= AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS; in testTraverseWindow()
76 getInstrumentation().getUiAutomation().setServiceInfo(info); in testTraverseWindow()
119 AccessibilityServiceInfo info = getInstrumentation().getUiAutomation().getServiceInfo(); in testTraverseWindow() local
120 info.flags &= ~AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS; in testTraverseWindow()
121 getInstrumentation().getUiAutomation().setServiceInfo(info); in testTraverseWindow()
396 AccessibilityServiceInfo info = getInstrumentation().getUiAutomation().getServiceInfo(); in testObjectContract() local
397 info.flags |= AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS; in testObjectContract()
398 getInstrumentation().getUiAutomation().setServiceInfo(info); in testObjectContract()
417 AccessibilityServiceInfo info = getInstrumentation().getUiAutomation().getServiceInfo(); in testObjectContract() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DManifestTestListAdapter.java134 ResolveInfo info = list.get(i); in getResolveInfosForParent() local
135 String parent = getTestParent(info.activityInfo.metaData); in getResolveInfosForParent()
138 matchingList.add(info); in getResolveInfosForParent()
150 ResolveInfo info = list.get(i); in getTestsByCategory() local
151 String title = getTitle(mContext, info.activityInfo); in getTestsByCategory()
152 String testName = info.activityInfo.name; in getTestsByCategory()
153 Intent intent = getActivityIntent(info.activityInfo); in getTestsByCategory()
154 String[] requiredFeatures = getRequiredFeatures(info.activityInfo.metaData); in getTestsByCategory()
157 String testCategory = getTestCategory(mContext, info.activityInfo.metaData); in getTestsByCategory()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlAppSwitchTest.java124 for (ActivityManager.RunningTaskInfo info : tasks) { in setReplicaIslandTask()
125 String packageName = info.baseActivity.getPackageName(); in setReplicaIslandTask()
128 mTaskIdReplica = info.id; in setReplicaIslandTask()
139 for (ActivityManager.RunningTaskInfo info : tasks) { in isReplicaIslandRunning()
140 String packageName = info.baseActivity.getPackageName(); in isReplicaIslandRunning()

123