Home
last modified time | relevance | path

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

123456789

/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java96 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testDescribeContents() local
98 info.describeContents()); in testDescribeContents()
99 fullyPopulateAccessibilityNodeInfo(info); in testDescribeContents()
101 info.describeContents()); in testDescribeContents()
113 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testAddActions() local
114 info.addAction(AccessibilityNodeInfo.ACTION_FOCUS); in testAddActions()
115 info.addAction(AccessibilityNodeInfo.ACTION_CLEAR_FOCUS); in testAddActions()
117 info.addAction(customAction); in testAddActions()
120 assertSame(info.getActions(), (AccessibilityNodeInfo.ACTION_FOCUS in testAddActions()
126 assertEquals(info.getActionList(), allActions); in testAddActions()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DEditorInfoTest.java44 EditorInfo info = new EditorInfo(); in testEditorInfo() local
46 info.actionId = 1; in testEditorInfo()
47 info.actionLabel = "actionLabel"; in testEditorInfo()
48 info.fieldId = 2; in testEditorInfo()
49 info.fieldName = "fieldName"; in testEditorInfo()
50 info.hintText = "hintText"; in testEditorInfo()
51 info.imeOptions = EditorInfo.IME_FLAG_NO_ENTER_ACTION; in testEditorInfo()
52 info.initialCapsMode = TextUtils.CAP_MODE_CHARACTERS; in testEditorInfo()
53 info.initialSelEnd = 10; in testEditorInfo()
54 info.initialSelStart = 0; in testEditorInfo()
[all …]
DInputContentInfoTest.java39 InputContentInfo info = new InputContentInfo( in testInputContentInfo() local
44 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); in testInputContentInfo()
45 assertEquals(1, info.getDescription().getMimeTypeCount()); in testInputContentInfo()
46 assertEquals("image/png", info.getDescription().getMimeType(0)); in testInputContentInfo()
47 assertEquals("sample content", info.getDescription().getLabel()); in testInputContentInfo()
48 assertEquals(Uri.parse("https://example.com"), info.getLinkUri()); in testInputContentInfo()
49 assertEquals(0, info.describeContents()); in testInputContentInfo()
52 info.writeToParcel(p, 0); in testInputContentInfo()
57 assertEquals(info.getContentUri(), targetInfo.getContentUri()); in testInputContentInfo()
58 assertEquals(info.getDescription().getMimeTypeCount(), in testInputContentInfo()
[all …]
DCompletionInfoTest.java41 CompletionInfo info = new CompletionInfo(ID, POSITION, TEXT, LABEL); in testCompletionInfo() local
42 assertCompletionInfo(info); in testCompletionInfo()
44 assertEquals(0, info.describeContents()); in testCompletionInfo()
45 assertNotNull(info.toString()); in testCompletionInfo()
48 info.writeToParcel(p, 0); in testCompletionInfo()
55 private void assertCompletionInfo(CompletionInfo info) { in assertCompletionInfo() argument
56 assertEquals(ID, info.getId()); in assertCompletionInfo()
57 assertEquals(POSITION, info.getPosition()); in assertCompletionInfo()
58 assertEquals(TEXT, info.getText().toString()); in assertCompletionInfo()
59 assertEquals(LABEL, info.getLabel().toString()); in assertCompletionInfo()
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminInfoTest.java72 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); in testDeviceAdminInfo() local
73 assertEquals(mComponent, info.getComponent()); in testDeviceAdminInfo()
74 assertEquals(mComponent.getPackageName(), info.getPackageName()); in testDeviceAdminInfo()
75 assertEquals(mComponent.getClassName(), info.getReceiverName()); in testDeviceAdminInfo()
77 assertFalse(info.supportsTransferOwnership()); in testDeviceAdminInfo()
78 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_FORCE_LOCK)); in testDeviceAdminInfo()
79 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD)); in testDeviceAdminInfo()
80 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_RESET_PASSWORD)); in testDeviceAdminInfo()
81 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WATCH_LOGIN)); in testDeviceAdminInfo()
82 assertTrue(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WIPE_DATA)); in testDeviceAdminInfo()
[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()
136 mCallback.mVideoUnavailableReasonMap.remove(info.getId()); in testTune()
140 mTvView.tune(info.getId(), in testTune()
141 TvContract.buildChannelUriForPassthroughInput(info.getId())); in testTune()
148 Integer reason = mCallback.getVideoUnavailableReason(info.getId()); in testTune()
169 final TvInputInfo info = mPassthroughInputList.get(i % mPassthroughInputList.size()); in testTuneStress() local
170 mCallback.mVideoUnavailableReasonMap.remove(info.getId()); in testTuneStress()
[all …]
DTvInputManagerTest.java58 for (TvInputInfo info : list) { in getInfoForClassName()
59 if (info.getServiceInfo().name.equals(name)) { in getInfoForClassName()
60 return info; in getInfoForClassName()
225 TvInputInfo info = mCallback.getLastUpdatedTvInputInfo(); in testTvInputInfoUpdated() local
226 return info != null && info.getTunerCount() == 10 && info.canRecord(); in testTvInputInfoUpdated()
234 TvInputInfo info = mCallback.getLastUpdatedTvInputInfo(); in testTvInputInfoUpdated() local
235 return info != null && info.getTunerCount() == 1 && !info.canRecord(); in testTvInputInfoUpdated()
264 public synchronized void onTvInputInfoUpdated(TvInputInfo info) { in onTvInputInfoUpdated() argument
265 mLastUpdatedTvInputInfo = info; in onTvInputInfoUpdated()
/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/view/src/android/view/cts/
DKeyboardShortcutInfoTest.java43 KeyboardShortcutInfo info = new KeyboardShortcutInfo( in testCharacterConstructor() local
45 assertNotNull(info); in testCharacterConstructor()
46 assertEquals(TEST_LABEL, info.getLabel()); in testCharacterConstructor()
47 assertEquals(TEST_BASE_CHARACTER, info.getBaseCharacter()); in testCharacterConstructor()
48 assertEquals(KeyEvent.KEYCODE_UNKNOWN, info.getKeycode()); in testCharacterConstructor()
49 assertEquals(TEST_MODIFIERS, info.getModifiers()); in testCharacterConstructor()
50 assertEquals(0, info.describeContents()); in testCharacterConstructor()
55 KeyboardShortcutInfo info = new KeyboardShortcutInfo( in testKeycodeConstructor() local
57 assertNotNull(info); in testKeycodeConstructor()
58 assertEquals(TEST_LABEL, info.getLabel()); in testKeycodeConstructor()
[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.java83 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, DEFAULT_MIME); in testPutAndGetKeys() local
87 info.put(key, attributes.get(key)); in testPutAndGetKeys()
91 Iterator<String> infoKeys = info.keyIterator(); in testPutAndGetKeys()
94 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys()
100 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys()
104 Iterator<Object> iterator = info.iterator(); in testPutAndGetKeys()
114 DrmInfo info = new DrmInfo(DEFAULT_TYPE, data, DEFAULT_MIME); in checkInvalidData() local
123 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, mimeType); in checkInvalidMimeType() local
131 DrmInfo info = new DrmInfo(DEFAULT_TYPE, data, DEFAULT_MIME); in checkGetData() local
132 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/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp103 static std::string getTestName(const ::testing::TestParamInfo<int32_t>& info) { in getTestName() argument
104 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
131 static std::string getTestName(const ::testing::TestParamInfo<int32_t>& info) { in getTestName() argument
132 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
158 static std::string getTestName(const ::testing::TestParamInfo<aaudio_format_t>& info) { in getTestName() argument
159 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
191 static std::string getTestName(const ::testing::TestParamInfo<aaudio_sharing_mode_t>& info) { in getTestName() argument
192 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
218 static std::string getTestName(const ::testing::TestParamInfo<aaudio_direction_t>& info) { in getTestName() argument
219 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
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 …]
DApplicationInfoTest.java68 ApplicationInfo info = new ApplicationInfo(); in testConstructor() local
71 info.packageName = mPackageName; in testConstructor()
72 ApplicationInfo copy = new ApplicationInfo(info); in testConstructor()
73 assertEquals(info.packageName, copy.packageName); in testConstructor()
84 ApplicationInfo info = ApplicationInfo.CREATOR.createFromParcel(p); in testWriteToParcel() local
85 assertEquals(mApplicationInfo.taskAffinity, info.taskAffinity); in testWriteToParcel()
86 assertEquals(mApplicationInfo.permission, info.permission); in testWriteToParcel()
87 assertEquals(mApplicationInfo.processName, info.processName); in testWriteToParcel()
88 assertEquals(mApplicationInfo.className, info.className); in testWriteToParcel()
89 assertEquals(mApplicationInfo.theme, info.theme); in testWriteToParcel()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DCarPackageManagerTest.java76 for (PackageInfo info : packages) { in testSystemActivitiesAllowed()
77 if (info.applicationInfo == null) { in testSystemActivitiesAllowed()
80 if ((info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 || in testSystemActivitiesAllowed()
81 ((info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0)) { in testSystemActivitiesAllowed()
83 Bundle metaData = info.applicationInfo.metaData; in testSystemActivitiesAllowed()
88 if (info.activities != null && info.activities.length > 0) { in testSystemActivitiesAllowed()
89 String activity = info.activities[0].name; in testSystemActivitiesAllowed()
90 String packageName = info.packageName; in testSystemActivitiesAllowed()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp27 AndroidBitmapInfo info; in validateBitmapInfo() local
29 err = AndroidBitmap_getInfo(env, jbitmap, &info); in validateBitmapInfo()
32 ASSERT_EQ((uint32_t) width, info.width); in validateBitmapInfo()
33 ASSERT_EQ((uint32_t) height, info.height); in validateBitmapInfo()
35 ASSERT_EQ(format, info.format); in validateBitmapInfo()
/cts/tests/tests/media/src/android/media/cts/
DAudioTrackSurroundTest.java104 for (AudioDeviceInfo info : infos) { in scanDevicesForEncodings()
105 log(MTAG, "scanning devices, name = " + info.getProductName() in scanDevicesForEncodings()
106 + ", id = " + info.getId() in scanDevicesForEncodings()
107 + ", " + (info.isSink() ? "sink" : "source") in scanDevicesForEncodings()
108 + ", type = " + info.getType() in scanDevicesForEncodings()
111 for (int encoding : info.getEncodings()) { in scanDevicesForEncodings()
117 for (int rate : info.getSampleRates()) { in scanDevicesForEncodings()
122 if (info.isSink()) { in scanDevicesForEncodings()
123 for (int encoding : info.getEncodings()) { in scanDevicesForEncodings()
126 mInfoPCM16 = info; in scanDevicesForEncodings()
[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 …]
DMediaCodecCapabilitiesTest.java346 for (MediaCodecInfo info : mcl.getCodecInfos()) { in supports()
347 if (isEncoder != info.isEncoder()) { in supports()
351 CodecCapabilities caps = info.getCapabilitiesForType(mime); in supports()
397 for (MediaCodecInfo info : mAllInfos) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
398 if (info.isEncoder()) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
401 for (String mime : info.getSupportedTypes()) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
429 for (MediaCodecInfo info : mAllInfos) { in testAllVideoDecodersAreAdaptive()
430 if (info.isEncoder()) { in testAllVideoDecodersAreAdaptive()
433 for (String mime : info.getSupportedTypes()) { in testAllVideoDecodersAreAdaptive()
440 CodecCapabilities caps = info.getCapabilitiesForType(mime); in testAllVideoDecodersAreAdaptive()
[all …]
DMediaCodecListTest.java184 for (MediaCodecInfo info : infos) { in testComponentInstantiation()
185 Log.d(TAG, "codec: " + info.getName()); in testComponentInstantiation()
186 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testComponentInstantiation()
188 MediaCodec codec = MediaCodec.createByCodecName(info.getName()); in testComponentInstantiation()
190 assertEquals(codec.getName(), info.getName()); in testComponentInstantiation()
192 assertEquals(codec.getCodecInfo(), info); in testComponentInstantiation() local
217 for (MediaCodecInfo info : infos) { in testGetCapabilities()
218 Log.d(TAG, "codec: " + info.getName()); in testGetCapabilities()
219 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testGetCapabilities()
221 String[] types = info.getSupportedTypes(); in testGetCapabilities()
[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()
318 MediaCodec.BufferInfo info = mAvailableOutputBufferInfos.peekFirst(); in drainOutputBuffer() local
320 if ((info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in drainOutputBuffer()
333 mMediaTimeProvider.getRealTimeUsForMediaTime(info.presentationTimeUs); in drainOutputBuffer()
346 mAudioTrack.write(audioBuffer, info.size, info.presentationTimeUs*1000); in drainOutputBuffer()
[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/video/src/android/video/cts/
DCodecInfo.java73 CodecInfo info = new CodecInfo(); in getSupportedFormatInfo() local
76 info.mSupportSemiPlanar = true; in getSupportedFormatInfo()
79 info.mSupportPlanar = true; in getSupportedFormatInfo()
86 info.mFps = format.getInteger(MediaFormat.KEY_FRAME_RATE); in getSupportedFormatInfo()
87 info.mBitRate = format.getInteger(MediaFormat.KEY_BIT_RATE); in getSupportedFormatInfo()
90 return info; in getSupportedFormatInfo()

123456789