Home
last modified time | relevance | path

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

12345

/cts/tests/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java93 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testDescribeContents() local
95 info.describeContents()); in testDescribeContents()
96 fullyPopulateAccessibilityNodeInfo(info); in testDescribeContents()
98 info.describeContents()); in testDescribeContents()
110 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testAddActions() local
111 info.addAction(AccessibilityNodeInfo.ACTION_FOCUS); in testAddActions()
112 info.addAction(AccessibilityNodeInfo.ACTION_CLEAR_FOCUS); in testAddActions()
114 info.addAction(customAction); in testAddActions()
117 assertSame(info.getActions(), (AccessibilityNodeInfo.ACTION_FOCUS in testAddActions()
123 assertEquals(info.getActionList(), allActions); in testAddActions()
[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/keystore/src/android/keystore/cts/
DKeyInfoTest.java61 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testImmutabilityViaGetterReturnValues() local
63 Date originalKeyValidityStartDate = (Date) info.getKeyValidityStart().clone(); in testImmutabilityViaGetterReturnValues()
64 info.getKeyValidityStart().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
65 assertEquals(originalKeyValidityStartDate, info.getKeyValidityStart()); in testImmutabilityViaGetterReturnValues()
68 (Date) info.getKeyValidityForOriginationEnd().clone(); in testImmutabilityViaGetterReturnValues()
69 info.getKeyValidityForOriginationEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
71 info.getKeyValidityForOriginationEnd()); in testImmutabilityViaGetterReturnValues()
74 (Date) info.getKeyValidityForConsumptionEnd().clone(); in testImmutabilityViaGetterReturnValues()
75 info.getKeyValidityForConsumptionEnd().setTime(1234567890L); in testImmutabilityViaGetterReturnValues()
77 info.getKeyValidityForConsumptionEnd()); in testImmutabilityViaGetterReturnValues()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoTest.java34 final TvTrackInfo info = new TvTrackInfo.Builder(TvTrackInfo.TYPE_AUDIO, "id_audio") in testAudioTrackInfoOp() local
40 assertEquals(TvTrackInfo.TYPE_AUDIO, info.getType()); in testAudioTrackInfoOp()
41 assertEquals("id_audio", info.getId()); in testAudioTrackInfoOp()
42 assertEquals(2, info.getAudioChannelCount()); in testAudioTrackInfoOp()
43 assertEquals(48000, info.getAudioSampleRate()); in testAudioTrackInfoOp()
44 assertEquals("eng", info.getLanguage()); in testAudioTrackInfoOp()
45 assertEquals(bundle.get("testTrue"), info.getExtra().get("testTrue")); in testAudioTrackInfoOp()
46 assertEquals(0, info.describeContents()); in testAudioTrackInfoOp()
50 info.writeToParcel(p, 0); in testAudioTrackInfoOp()
69 final TvTrackInfo info = new TvTrackInfo.Builder(TvTrackInfo.TYPE_VIDEO, "id_video") in testVideoTrackInfoOp() local
[all …]
DBundledTvInputServiceTest.java103 for (TvInputInfo info : mManager.getTvInputList()) { in setUp()
104 if (info.isPassthroughInput()) { in setUp()
105 mPassthroughInputList.add(info); in setUp()
135 for (final TvInputInfo info : mPassthroughInputList) { in testTune()
139 mTvView.tune(info.getId(), in testTune()
140 TvContract.buildChannelUriForPassthroughInput(info.getId())); in testTune()
147 Integer reason = mCallback.getVideoUnavailableReason(info.getId()); in testTune()
163 final TvInputInfo info = in testTuneStress() local
168 mTvView.tune(info.getId(), in testTuneStress()
169 TvContract.buildChannelUriForPassthroughInput(info.getId())); in testTuneStress()
[all …]
DHardwareSessionTest.java65 for (TvInputInfo info : mManager.getTvInputList()) { in setUp()
66 if (info.getServiceInfo().name.equals(HardwareProxyTvInputService.class.getName())) { in setUp()
67 mStubInfo = info; in setUp()
69 if (info.isPassthroughInput()) { in setUp()
70 mPassthroughInputList.add(info); in setUp()
80 for (final TvInputInfo info : mPassthroughInputList) { in testHardwareProxyTvInputService()
81 verifyCommandTuneAndHardwareVideoAvailable(info); in testHardwareProxyTvInputService()
/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.java80 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, DEFAULT_MIME); in testPutAndGetKeys() local
84 info.put(key, attributes.get(key)); in testPutAndGetKeys()
88 Iterator<String> infoKeys = info.keyIterator(); in testPutAndGetKeys()
91 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys()
97 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys()
101 Iterator<Object> iterator = info.iterator(); in testPutAndGetKeys()
111 DrmInfo info = new DrmInfo(DEFAULT_TYPE, data, DEFAULT_MIME); in checkInvalidData() local
120 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, mimeType); in checkInvalidMimeType() local
128 DrmInfo info = new DrmInfo(DEFAULT_TYPE, data, DEFAULT_MIME); in checkGetData() local
129 assertEquals(info.getData(), data); in checkGetData()
[all …]
DDrmInfoStatusTest.java43 DrmInfoStatus info = new DrmInfoStatus( in checkInvalidStatusCode() local
45 info = null; in checkInvalidStatusCode()
53 DrmInfoStatus info = new DrmInfoStatus( in checkValidStatusCode() local
55 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/common/device-side/util/src/com/android/compatibility/common/util/
DSystemUtil.java31 final MemoryInfo info = new MemoryInfo(); in getFreeMemory() local
32 ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(info); in getFreeMemory()
33 return info.availMem; in getFreeMemory()
37 final MemoryInfo info = new MemoryInfo(); in getTotalMemory() local
38 ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(info); in getTotalMemory()
39 return info.totalMem; in getTotalMemory()
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DCodecInfo.java71 CodecInfo info = new CodecInfo(); in getSupportedFormatInfo() local
74 info.mSupportSemiPlanar = true; in getSupportedFormatInfo()
77 info.mSupportPlanar = true; in getSupportedFormatInfo()
84 info.mFps = vidCap.getSupportedFrameRatesFor(w, h).getUpper().intValue(); in getSupportedFormatInfo()
90 info.mBitRate = vidCap.getBitrateRange().getUpper(); in getSupportedFormatInfo()
91 Log.i(TAG, "test bit rate " + info.mBitRate + " fps " + info.mFps); in getSupportedFormatInfo()
93 return info; in getSupportedFormatInfo()
/cts/tests/tests/media/src/android/media/cts/
DMediaSessionTest.java253 MediaController.PlaybackInfo info = null; in testPlaybackToLocalAndRemote() local
258 info = mCallback.mPlaybackInfo; in testPlaybackToLocalAndRemote()
259 if (info != null && info.getCurrentVolume() == TEST_CURRENT_VOLUME in testPlaybackToLocalAndRemote()
260 && info.getMaxVolume() == TEST_MAX_VOLUME in testPlaybackToLocalAndRemote()
261 && info.getVolumeControl() == VolumeProvider.VOLUME_CONTROL_FIXED in testPlaybackToLocalAndRemote()
262 && info.getPlaybackType() in testPlaybackToLocalAndRemote()
267 assertNotNull(info); in testPlaybackToLocalAndRemote()
268 assertEquals(MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, info.getPlaybackType()); in testPlaybackToLocalAndRemote()
269 assertEquals(TEST_MAX_VOLUME, info.getMaxVolume()); in testPlaybackToLocalAndRemote()
270 assertEquals(TEST_CURRENT_VOLUME, info.getCurrentVolume()); in testPlaybackToLocalAndRemote()
[all …]
DMediaCodecCapabilitiesTest.java328 for (MediaCodecInfo info : mcl.getCodecInfos()) { in supports()
329 if (isEncoder != info.isEncoder()) { in supports()
333 CodecCapabilities caps = info.getCapabilitiesForType(mime); in supports()
374 for (MediaCodecInfo info : mAllInfos) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
375 if (info.isEncoder()) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
378 for (String mime : info.getSupportedTypes()) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
406 for (MediaCodecInfo info : mAllInfos) { in testAllVideoDecodersAreAdaptive()
407 if (info.isEncoder()) { in testAllVideoDecodersAreAdaptive()
410 for (String mime : info.getSupportedTypes()) { in testAllVideoDecodersAreAdaptive()
417 CodecCapabilities caps = info.getCapabilitiesForType(mime); in testAllVideoDecodersAreAdaptive()
[all …]
DResourceManagerTestActivityBase.java51 MediaCodec codec, int index, MediaCodec.BufferInfo info) { in onOutputBufferAvailable() argument
88 for (MediaCodecInfo info : mcl.getCodecInfos()) { in getTestCodecInfo()
89 if (info.isEncoder() != isEncoder) { in getTestCodecInfo()
94 caps = info.getCapabilitiesForType(MIME); in getTestCodecInfo()
101 Log.d(TAG, "securePlayback " + securePlayback + " will use " + info.getName()); in getTestCodecInfo()
103 Log.d(TAG, "securePlayback " + securePlayback + " skip " + info.getName()); in getTestCodecInfo()
110 return info; in getTestCodecInfo()
128 MediaCodecInfo info = getTestCodecInfo(securePlayback); in allocateCodecs() local
129 if (info != null) { in allocateCodecs()
130 allocateCodecs(max, info, securePlayback); in allocateCodecs()
[all …]
DMediaCodecListTest.java175 for (MediaCodecInfo info : infos) { in testComponentInstantiation()
176 Log.d(TAG, "codec: " + info.getName()); in testComponentInstantiation()
177 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testComponentInstantiation()
179 MediaCodec codec = MediaCodec.createByCodecName(info.getName()); in testComponentInstantiation()
181 assertEquals(codec.getName(), info.getName()); in testComponentInstantiation()
183 assertEquals(codec.getCodecInfo(), info); in testComponentInstantiation() local
208 for (MediaCodecInfo info : infos) { in testGetCapabilities()
209 Log.d(TAG, "codec: " + info.getName()); in testGetCapabilities()
210 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testGetCapabilities()
212 String[] types = info.getSupportedTypes(); in testGetCapabilities()
[all …]
DEncodeDecodeTest.java553 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in doEncodeDecodeVideoFromBuffer() local
640 int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); in doEncodeDecodeVideoFromBuffer()
661 encodedData.position(info.offset); in doEncodeDecodeVideoFromBuffer()
662 encodedData.limit(info.offset + info.size); in doEncodeDecodeVideoFromBuffer()
664 encodedSize += info.size; in doEncodeDecodeVideoFromBuffer()
666 byte[] data = new byte[info.size]; in doEncodeDecodeVideoFromBuffer()
668 encodedData.position(info.offset); in doEncodeDecodeVideoFromBuffer()
682 assertTrue((info.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0 || in doEncodeDecodeVideoFromBuffer()
686 if ((info.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) in doEncodeDecodeVideoFromBuffer()
694 if (VERBOSE) Log.d(TAG, "decoder configured (" + info.size + " bytes)"); in doEncodeDecodeVideoFromBuffer()
[all …]
DCodecState.java173 MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); in doSomeWork() local
174 int indexOutput = mCodec.dequeueOutputBuffer(info, 0 /* timeoutUs */); in doSomeWork()
183 mAvailableOutputBufferInfos.add(info); in doSomeWork()
240 MediaCodec.CryptoInfo info = new MediaCodec.CryptoInfo(); in feedInputBuffer() local
241 mExtractor.getSampleCryptoInfo(info); in feedInputBuffer()
244 index, 0 /* offset */, info, sampleTime, 0 /* flags */); in feedInputBuffer()
311 MediaCodec.BufferInfo info = mAvailableOutputBufferInfos.peekFirst(); in drainOutputBuffer() local
313 if ((info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in drainOutputBuffer()
322 mMediaTimeProvider.getRealTimeUsForMediaTime(info.presentationTimeUs); in drainOutputBuffer()
335 mAudioTrack.write(audioBuffer, info.size, info.presentationTimeUs*1000); in drainOutputBuffer()
[all …]
/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/deviceutil/src/android/cts/util/
DSystemUtil.java36 MemoryInfo info = new MemoryInfo(); in getFreeMemory() local
38 activityManager.getMemoryInfo(info); in getFreeMemory()
39 return info.availMem; in getFreeMemory()
43 MemoryInfo info = new MemoryInfo(); in getTotalMemory() local
45 activityManager.getMemoryInfo(info); in getTotalMemory()
46 return info.totalMem; // TODO totalMem N/A in ICS. in getTotalMemory()
/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()

12345