/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityNodeInfoTest.java | 99 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testDescribeContents() local 101 info.describeContents()); in testDescribeContents() 102 fullyPopulateAccessibilityNodeInfo(info); in testDescribeContents() 104 info.describeContents()); in testDescribeContents() 116 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testAddActions() local 117 info.addAction(AccessibilityNodeInfo.ACTION_FOCUS); in testAddActions() 118 info.addAction(AccessibilityNodeInfo.ACTION_CLEAR_FOCUS); in testAddActions() 120 info.addAction(customAction); in testAddActions() 123 assertSame(info.getActions(), (AccessibilityNodeInfo.ACTION_FOCUS in testAddActions() 129 assertEquals(info.getActionList(), allActions); in testAddActions() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | EditorInfoTest.java | 45 EditorInfo info = new EditorInfo(); in testEditorInfo() local 47 info.actionId = 1; in testEditorInfo() 48 info.actionLabel = "actionLabel"; in testEditorInfo() 49 info.fieldId = 2; in testEditorInfo() 50 info.fieldName = "fieldName"; in testEditorInfo() 51 info.hintText = "hintText"; in testEditorInfo() 52 info.imeOptions = EditorInfo.IME_FLAG_NO_ENTER_ACTION; in testEditorInfo() 53 info.initialCapsMode = TextUtils.CAP_MODE_CHARACTERS; in testEditorInfo() 54 info.initialSelEnd = 10; in testEditorInfo() 55 info.initialSelStart = 0; in testEditorInfo() [all …]
|
D | InputContentInfoTest.java | 40 InputContentInfo info = new InputContentInfo( in testInputContentInfo() local 45 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); in testInputContentInfo() 46 assertEquals(1, info.getDescription().getMimeTypeCount()); in testInputContentInfo() 47 assertEquals("image/png", info.getDescription().getMimeType(0)); in testInputContentInfo() 48 assertEquals("sample content", info.getDescription().getLabel()); in testInputContentInfo() 49 assertEquals(Uri.parse("https://example.com"), info.getLinkUri()); in testInputContentInfo() 50 assertEquals(0, info.describeContents()); in testInputContentInfo() 53 info.writeToParcel(p, 0); in testInputContentInfo() 58 assertEquals(info.getContentUri(), targetInfo.getContentUri()); in testInputContentInfo() 59 assertEquals(info.getDescription().getMimeTypeCount(), in testInputContentInfo() [all …]
|
D | CompletionInfoTest.java | 42 CompletionInfo info = new CompletionInfo(ID, POSITION, TEXT, LABEL); in testCompletionInfo() local 43 assertCompletionInfo(info); in testCompletionInfo() 45 assertEquals(0, info.describeContents()); in testCompletionInfo() 46 assertNotNull(info.toString()); in testCompletionInfo() 49 info.writeToParcel(p, 0); in testCompletionInfo() 56 private void assertCompletionInfo(CompletionInfo info) { in assertCompletionInfo() argument 57 assertEquals(ID, info.getId()); in assertCompletionInfo() 58 assertEquals(POSITION, info.getPosition()); in assertCompletionInfo() 59 assertEquals(TEXT, info.getText().toString()); in assertCompletionInfo() 60 assertEquals(LABEL, info.getLabel().toString()); in assertCompletionInfo()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvTrackInfoTest.java | 34 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 …]
|
D | BundledTvInputServiceTest.java | 103 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 …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyInfoTest.java | 61 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/admin/src/android/admin/cts/ |
D | DeviceAdminInfoTest.java | 85 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); in testDeviceAdminInfo() local 86 assertThat(mComponent).isEqualTo(info.getComponent()); in testDeviceAdminInfo() 87 assertThat(mComponent.getPackageName()).isEqualTo(info.getPackageName()); in testDeviceAdminInfo() 88 assertThat(mComponent.getClassName()).isEqualTo(info.getReceiverName()); in testDeviceAdminInfo() 90 assertThat(info.supportsTransferOwnership()).isFalse(); in testDeviceAdminInfo() 91 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_FORCE_LOCK)).isTrue(); in testDeviceAdminInfo() 92 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD)).isTrue(); in testDeviceAdminInfo() 93 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_RESET_PASSWORD)).isTrue(); in testDeviceAdminInfo() 94 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WATCH_LOGIN)).isTrue(); in testDeviceAdminInfo() 95 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WIPE_DATA)).isTrue(); in testDeviceAdminInfo() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | KeyboardShortcutInfoTest.java | 44 KeyboardShortcutInfo info = new KeyboardShortcutInfo( in testCharacterConstructor() local 46 assertNotNull(info); in testCharacterConstructor() 47 assertEquals(TEST_LABEL, info.getLabel()); in testCharacterConstructor() 48 assertEquals(TEST_BASE_CHARACTER, info.getBaseCharacter()); in testCharacterConstructor() 49 assertEquals(KeyEvent.KEYCODE_UNKNOWN, info.getKeycode()); in testCharacterConstructor() 50 assertEquals(TEST_MODIFIERS, info.getModifiers()); in testCharacterConstructor() 51 assertEquals(0, info.describeContents()); in testCharacterConstructor() 56 KeyboardShortcutInfo info = new KeyboardShortcutInfo( in testKeycodeConstructor() local 58 assertNotNull(info); in testKeycodeConstructor() 59 assertEquals(TEST_LABEL, info.getLabel()); in testKeycodeConstructor() [all …]
|
/cts/tests/tests/content/src/android/content/om/cts/ |
D | OverlayInfoTest.java | 47 OverlayInfo info = new OverlayInfo(PKG_NAME, TARGET_PKG_NAME, TARGET_OVERLAYABLE_NAME, in testEnsureValidState() local 50 assertNotNull(info); in testEnsureValidState() 56 OverlayInfo info = new OverlayInfo(null, TARGET_PKG_NAME, TARGET_OVERLAYABLE_NAME, in testEnsureValidState_fail() local 65 OverlayInfo info = new OverlayInfo(PKG_NAME, null, TARGET_OVERLAYABLE_NAME, CATEGORY, in testEnsureValidState_fail() local 74 OverlayInfo info = new OverlayInfo(PKG_NAME, TARGET_PKG_NAME, TARGET_OVERLAYABLE_NAME, in testEnsureValidState_fail() local 85 OverlayInfo info = new OverlayInfo(PKG_NAME, TARGET_PKG_NAME, TARGET_OVERLAYABLE_NAME, in testWriteToParcel() local 89 info.writeToParcel(p, 0); in testWriteToParcel() 94 assertEquals(info.packageName, copyInfo.packageName); in testWriteToParcel() 95 assertEquals(info.targetPackageName, copyInfo.targetPackageName); in testWriteToParcel() 96 assertEquals(info.targetOverlayableName, copyInfo.targetOverlayableName); in testWriteToParcel() [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmSupportInfoTest.java | 92 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 …]
|
D | DrmInfoTest.java | 83 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 …]
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_stream_builder.cpp | 148 static std::string getTestName(const ::testing::TestParamInfo<int32_t>& info) { in getTestName() argument 149 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 184 static std::string getTestName(const ::testing::TestParamInfo<int32_t>& info) { in getTestName() argument 185 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 212 static std::string getTestName(const ::testing::TestParamInfo<aaudio_format_t>& info) { in getTestName() argument 213 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 246 static std::string getTestName(const ::testing::TestParamInfo<aaudio_sharing_mode_t>& info) { in getTestName() argument 247 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() 274 static std::string getTestName(const ::testing::TestParamInfo<aaudio_direction_t>& info) { in getTestName() argument 275 return info.param >= 0 ? std::to_string(info.param) : "_" + std::to_string(-info.param); in getTestName() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | StrictModeTest.java | 119 info -> { in testThreadBuilder() 120 assertThat(info.getViolationDetails()).isNull(); in testThreadBuilder() 121 assertThat(info.getStackTrace()).contains("DiskReadViolation"); in testThreadBuilder() 132 info -> { in testUnclosedCloseable() 133 assertThat(info.getViolationDetails()) in testUnclosedCloseable() 136 assertThat(info.getStackTrace()) in testUnclosedCloseable() 138 assertThat(info.getStackTrace()).contains("leakCloseable"); in testUnclosedCloseable() 139 assertThat(info.getViolationClass()) in testUnclosedCloseable() 177 info -> assertThat(info.getViolationClass()) in testClassInstanceLimit() 199 info -> assertThat(info.getViolationClass()) in testCleartextNetwork() [all …]
|
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | ApexShimValidationTest.java | 79 PackageInstaller.SessionInfo info = in testRejectsApexWithAdditionalFile_Commit() local 81 assertThat(info.getSessionId()).isEqualTo(sessionId); in testRejectsApexWithAdditionalFile_Commit() 82 assertThat(info).isStagedSessionFailed(); in testRejectsApexWithAdditionalFile_Commit() 88 PackageInstaller.SessionInfo info = in testRejectsApexWithAdditionalFolder_Commit() local 90 assertThat(info.getSessionId()).isEqualTo(sessionId); in testRejectsApexWithAdditionalFolder_Commit() 91 assertThat(info).isStagedSessionFailed(); in testRejectsApexWithAdditionalFolder_Commit() 97 PackageInstaller.SessionInfo info = in testRejectsApexWithPostInstallHook_Commit() local 99 assertThat(info.getSessionId()).isEqualTo(sessionId); in testRejectsApexWithPostInstallHook_Commit() 100 assertThat(info).isStagedSessionFailed(); in testRejectsApexWithPostInstallHook_Commit() 106 PackageInstaller.SessionInfo info = in testRejectsApexWithPreInstallHook_Commit() local [all …]
|
D | SessionUpdateBroadcastReceiver.java | 39 PackageInstaller.SessionInfo info = in onReceive() local 41 assertThat(info).isNotNull(); in onReceive() 42 Log.i(TAG, "Received SESSION_UPDATED for session " + info.getSessionId() in onReceive() 43 + " isReady:" + info.isStagedSessionReady() in onReceive() 44 + " isFailed:" + info.isStagedSessionFailed() in onReceive() 45 + " isApplied:" + info.isStagedSessionApplied()); in onReceive() 47 sessionBroadcasts.put(info); in onReceive()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecListTest.java | 196 for (MediaCodecInfo info : infos) { in testComponentInstantiation() 197 Log.d(TAG, "codec: " + info.getName()); in testComponentInstantiation() 198 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testComponentInstantiation() 200 MediaCodec codec = MediaCodec.createByCodecName(info.getName()); in testComponentInstantiation() 202 assertEquals(codec.getName(), info.getName()); in testComponentInstantiation() 203 assertEquals(codec.getCanonicalName(), info.getCanonicalName()); in testComponentInstantiation() 204 assertEquals(codec.getCodecInfo(), info); in testComponentInstantiation() local 229 for (MediaCodecInfo info : infos) { in testGetCapabilities() 230 Log.d(TAG, "codec: " + info.getName()); in testGetCapabilities() 231 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testGetCapabilities() [all …]
|
D | AudioTrackSurroundTest.java | 104 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 …]
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | Utils.java | 51 PackageInfo info = pm.getPackageInfo(packageName, PackageManager.MATCH_APEX); in getInstalledVersion() local 52 return info.getLongVersionCode(); in getInstalledVersion() 78 for (PackageRollbackInfo info : rollback.getPackages()) { in getRollback() 79 if (packageName.equals(info.getPackageName())) { in getRollback() 189 PackageInstaller.SessionInfo info = in waitForSessionReady() 191 if (info != null && info.getSessionId() == sessionId) { in waitForSessionReady() 192 if (info.isStagedSessionReady() || info.isStagedSessionFailed()) { in waitForSessionReady() 194 sessionStatus.put(info); in waitForSessionReady() 209 PackageInstaller.SessionInfo info = installer.getSessionInfo(sessionId); in waitForSessionReady() local 212 if (info.isStagedSessionReady() || info.isStagedSessionFailed()) { in waitForSessionReady() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerRecentTaskInfoTest.java | 61 ActivityManager.RecentTaskInfo info = ActivityManager.RecentTaskInfo.CREATOR in testWriteToParcel() local 63 verifyTaskInfo(info, mRecentTaskInfo); in testWriteToParcel() 64 assertEquals(1, info.id); in testWriteToParcel() 65 assertEquals(1, info.persistentId); in testWriteToParcel() 75 ActivityManager.RecentTaskInfo info = new ActivityManager.RecentTaskInfo(); in testReadFromParcel() local 76 info.readFromParcel(parcel); in testReadFromParcel() 77 verifyTaskInfo(info, mRecentTaskInfo); in testReadFromParcel() 78 assertEquals(1, info.id); in testReadFromParcel() 79 assertEquals(1, info.persistentId); in testReadFromParcel()
|
D | StatusBarManagerTest.java | 77 private void assertDefaultFlagsArePresent(DisableInfo info) { in assertDefaultFlagsArePresent() argument 78 assertTrue(info.isNotificationPeekingDisabled()); in assertDefaultFlagsArePresent() 79 assertTrue(info.isNavigateToHomeDisabled()); in assertDefaultFlagsArePresent() 80 assertTrue(info.isStatusBarExpansionDisabled()); in assertDefaultFlagsArePresent() 81 assertTrue(info.isRecentsDisabled()); in assertDefaultFlagsArePresent() 82 assertTrue(info.isSearchDisabled()); in assertDefaultFlagsArePresent() 95 DisableInfo info = mStatusBarManager.getDisableInfo(); in testDisableForSetup_setDisabledFalse() local 97 assertTrue("Invalid disableFlags", info.areAllComponentsEnabled()); in testDisableForSetup_setDisabledFalse()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ActivityInfoTest.java | 38 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 …]
|
D | ApplicationInfoTest.java | 75 ApplicationInfo info = new ApplicationInfo(); in testConstructor() local 78 info.packageName = mPackageName; in testConstructor() 79 ApplicationInfo copy = new ApplicationInfo(info); in testConstructor() 80 assertEquals(info.packageName, copy.packageName); in testConstructor() 91 ApplicationInfo info = ApplicationInfo.CREATOR.createFromParcel(p); in testWriteToParcel() local 92 assertEquals(mApplicationInfo.taskAffinity, info.taskAffinity); in testWriteToParcel() 93 assertEquals(mApplicationInfo.permission, info.permission); in testWriteToParcel() 94 assertEquals(mApplicationInfo.processName, info.processName); in testWriteToParcel() 95 assertEquals(mApplicationInfo.className, info.className); in testWriteToParcel() 96 assertEquals(mApplicationInfo.theme, info.theme); in testWriteToParcel() [all …]
|
/cts/tests/tests/externalservice/common/src/android/externalservice/common/ |
D | RunningServiceInfo.java | 53 RunningServiceInfo info = new RunningServiceInfo(); 54 info.uid = source.readInt(); 55 info.pid = source.readInt(); 56 info.packageName = source.readString(); 57 info.zygotePid = source.readInt(); 58 info.zygotePackage = source.readString(); 59 return info;
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BitmapTest.cpp | 29 AndroidBitmapInfo info; in validateBitmapInfo() local 31 err = AndroidBitmap_getInfo(env, jbitmap, &info); in validateBitmapInfo() 34 ASSERT_EQ((uint32_t) width, info.width); in validateBitmapInfo() 35 ASSERT_EQ((uint32_t) height, info.height); in validateBitmapInfo() 37 ASSERT_EQ(format, info.format); in validateBitmapInfo() 71 AndroidBitmapInfo info; in getFormat() local 72 info.format = ANDROID_BITMAP_FORMAT_NONE; in getFormat() 74 err = AndroidBitmap_getInfo(env, jbitmap, &info); in getFormat() 79 return info.format; in getFormat()
|