/aosp12/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | AndroidKeyStoreBCWorkaroundProvider.java | 43 private static final String PACKAGE_NAME = "android.security.keystore2"; field in AndroidKeyStoreBCWorkaroundProvider 45 PACKAGE_NAME + ".AndroidKeyStoreSecretKey"; 47 PACKAGE_NAME + ".AndroidKeyStorePrivateKey"; 49 PACKAGE_NAME + ".AndroidKeyStorePublicKey"; 114 PACKAGE_NAME + ".AndroidKeyStoreRSACipherSpi$NoPadding"); in AndroidKeyStoreBCWorkaroundProvider() 117 PACKAGE_NAME + ".AndroidKeyStoreRSACipherSpi$PKCS1Padding"); in AndroidKeyStoreBCWorkaroundProvider() 208 PACKAGE_NAME + ".AndroidKeyStoreECDSASignatureSpi$NONE"); in AndroidKeyStoreBCWorkaroundProvider() 219 PACKAGE_NAME + ".AndroidKeyStoreECDSASignatureSpi$SHA224"); in AndroidKeyStoreBCWorkaroundProvider() 226 PACKAGE_NAME + ".AndroidKeyStoreECDSASignatureSpi$SHA256"); in AndroidKeyStoreBCWorkaroundProvider() 232 PACKAGE_NAME + ".AndroidKeyStoreECDSASignatureSpi$SHA384"); in AndroidKeyStoreBCWorkaroundProvider() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
H A D | PlatformCompatTest.java | 188 PACKAGE_NAME); in testRegisterListenerReturn() 206 PACKAGE_NAME); in testListenerCalledOnSetOverrides() 221 PACKAGE_NAME); in testListenerNotCalledOnWrongPackage() 235 PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners() 247 PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners() 263 PACKAGE_NAME); in testListenerCalledOnSetOverridesForTest() 277 PACKAGE_NAME); in testListenerCalledOnSetOverridesForTestTwoListeners() 289 PACKAGE_NAME); in testListenerCalledOnSetOverridesForTestTwoListeners() 305 PACKAGE_NAME); in testListenerCalledOnClearOverrides() 327 PACKAGE_NAME); in testListenerCalledOnClearOverridesMultipleOverrides() [all …]
|
H A D | OverrideValidatorImplTest.java | 150 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride() 222 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_betaBuildEnabledChangeDebugApp_allowOverride() 264 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_betaBuildAnyChangeReleaseApp_rejectOverride() 327 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptout_rejectOverride() 349 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_targetSdkChangeGreaterThanOsVersion_rejectOverride() 368 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_finalBuildEnabledChangeDebugApp_rejectOverride() 386 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_finalBuildDisabledChangeDebugApp_allowOverride() 410 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_finalBuildAnyChangeReleaseApp_rejectOverride() 515 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_forceFinalBldTargetSdkChangeDebugAppOptout_rejectOverride() 537 .withPackageName(PACKAGE_NAME) in getOverrideAllowedState_forceFinalBuildEnabledChangeDebugApp_rejectOverride() [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/ |
H A D | Components.java | 27 PACKAGE_NAME + ".SimpleActivity"); 34 PACKAGE_NAME + ".FixedActivity"); 40 PACKAGE_NAME + ".NonResizeableActivity"); 66 PACKAGE_NAME + ".PipActivity"); 72 PACKAGE_NAME + ".action.CLOSE_IME"; 74 PACKAGE_NAME + ".action.OPEN_IME"; 76 PACKAGE_NAME + ".ImeActivity"); 82 PACKAGE_NAME + ".SplitScreenActivity"); 88 PACKAGE_NAME + ".SplitScreenSecondaryActivity"); 94 PACKAGE_NAME + ".LaunchBubbleActivity"); [all …]
|
/aosp12/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
H A D | AppStateUsageStatsBridgeTest.java | 102 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_appInstalledSameDayNeverUsed_isInvalid() 116 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 130 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_unusedApp_isValid() 144 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_noThresholdFilter_unusedApp_isValid() 157 registerLastUse(PACKAGE_NAME, -1); in test_unknownLastUse_isFilteredOut() 159 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_unknownLastUse_isFilteredOut() 172 registerLastUse(PACKAGE_NAME, -1); in test_noThresholdFilter_unknownLastUse_isFilteredOut() 174 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_noThresholdFilter_unknownLastUse_isFilteredOut() 189 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_oldAppRecentlyUsed_isNotValid() 204 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_noThresholdFilter_oldAppRecentlyUsed_isValid() [all …]
|
H A D | AppsAsyncLoaderTest.java | 60 private static final String PACKAGE_NAME = "package.mcpackageface"; field in AppsAsyncLoaderTest 118 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 0); in test_appInstalledSameDayNeverUsed_isInvalid() 126 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 0); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 134 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 90); in test_unusedApp_isValid() 142 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 90); in test_noThresholdFilter_unusedApp_isValid() 149 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, -1, 90); in test_unknownLastUse_isFilteredOut() 156 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, -1, 90); in test_noThresholdFilter_unknownLastUse_isFilteredOut() 248 registerLastUse(PACKAGE_NAME, TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly() 255 assertThat(containsPackage(infos, PACKAGE_NAME)).isFalse(); in test_multipleApps_processCorrectly() 286 registerLastUse(PACKAGE_NAME, TimeUnit.DAYS.toMillis(800)); in test_noThresholdFilter_ignoresUsageForFiltering() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/webview/ |
H A D | WebViewAppPickerTest.java | 68 private final static String PACKAGE_NAME = "com.example.test"; field in WebViewAppPickerTest 90 applicationInfo.name = PACKAGE_NAME; in setUp() 93 applicationInfo.packageName = PACKAGE_NAME; in setUp() 96 packageInfo.packageName = PACKAGE_NAME; in setUp() 118 mPackageManager.removePackage(PACKAGE_NAME); in tearDown() 148 createApplicationInfo(PACKAGE_NAME), "disabled"); in testDisabledPackageShownAsDisabled() 162 createApplicationInfo(PACKAGE_NAME), disabledReason); in testEnabledPackageShownAsEnabled() 190 createApplicationInfo(PACKAGE_NAME), null); in testEnabledPackageShowsEmptySummary() 343 when(defaultPackagePref.getKey()).thenReturn(PACKAGE_NAME); in testSuccessfulClickChangesProvider() 347 verify(mPicker, times(1)).updateCheckedState(PACKAGE_NAME); in testSuccessfulClickChangesProvider() [all …]
|
/aosp12/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
H A D | NotificationsPreferenceTest.java | 51 private static final String PACKAGE_NAME = "com.example.test"; field in NotificationsPreferenceTest 87 mApplicationInfo.packageName = PACKAGE_NAME; in setUp() 95 setNotificationsEnabledForPackage(PACKAGE_NAME, true); in testNotificationsPreference_systemAppNotificationsEnabledInRes() 96 setNotificationsUnblockableByResList(PACKAGE_NAME, true); in testNotificationsPreference_systemAppNotificationsEnabledInRes() 107 setNotificationsEnabledForPackage(PACKAGE_NAME, true); in testNotificationsPreference_systemAppNotificationsEnabledNotInRes() 119 setNotificationsEnabledForPackage(PACKAGE_NAME, true); in testNotificationsPreference_notSystemAppNotificationsEnabledInRes() 131 setNotificationsEnabledForPackage(PACKAGE_NAME, true); in testNotificationsPreference_notSystemAppNotificationsEnabledNotInRes() 143 setNotificationsEnabledForPackage(PACKAGE_NAME, false); in testNotificationsPreference_systemAppNotificationsDisabledNotInRes() 155 setNotificationsEnabledForPackage(PACKAGE_NAME, false); in testNotificationsPreference_notSystemAppNotificationsEDisabledInRes() 167 setNotificationsEnabledForPackage(PACKAGE_NAME, false); in testNotificationsPreference_notSystemAppNotificationsDisabledNotInRes() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
H A D | BackupObserverUtilsTest.java | 40 private static final String PACKAGE_NAME = "some.package"; field in BackupObserverUtilsTest 53 BackupObserverUtils.sendBackupOnUpdate(null, PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_observerIsNull_doesNotThrow() 62 verify(mBackupObserverMock).onUpdate(PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_callsObserver() 67 doThrow(new RemoteException()).when(mBackupObserverMock).onUpdate(PACKAGE_NAME, in sendBackupOnUpdate_handlesRemoteException() 72 verify(mBackupObserverMock).onUpdate(PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_handlesRemoteException() 77 BackupObserverUtils.sendBackupOnPackageResult(null, PACKAGE_NAME, 1); in sendBackupOnPackageResult_observerIsNull_doesNotThrow() 84 BackupObserverUtils.sendBackupOnPackageResult(mBackupObserverMock, PACKAGE_NAME, 1); in sendBackupOnPackageResult_callsObserver() 86 verify(mBackupObserverMock).onResult(PACKAGE_NAME, 1); in sendBackupOnPackageResult_callsObserver() 91 doThrow(new RemoteException()).when(mBackupObserverMock).onResult(PACKAGE_NAME, 1); in sendBackupOnPackageResult_handlesRemoteException() 95 verify(mBackupObserverMock).onResult(PACKAGE_NAME, 1); in sendBackupOnPackageResult_handlesRemoteException() [all …]
|
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/legal/ |
H A D | ModuleLicenseProviderTest.java | 86 .appendPath(PACKAGE_NAME) in getType_notContentScheme_throwsIllegalArgumentException() 97 .appendPath(PACKAGE_NAME) in getType_invalidAuthority_throwsIllegalArgumentException() 127 .appendPath(PACKAGE_NAME) in getType_missingFileName_throwsIllegalArgumentException() 137 .appendPath(PACKAGE_NAME) in getType_incorrectFileName_throwsIllegalArgumentException() 156 .appendPath(PACKAGE_NAME) in getType_packageNotAModule_throwsIllegalArgumentException() 175 .appendPath(PACKAGE_NAME) in getType_validUri_returnsHtmlMimeType() 186 .appendPath(PACKAGE_NAME) in openFile_notContentScheme_throwsIllegalArgumentException() 197 .appendPath(PACKAGE_NAME) in openFile_invalidAuthority_throwsIllegalArgumentException() 227 .appendPath(PACKAGE_NAME) in openFile_missingFileName_throwsIllegalArgumentException() 237 .appendPath(PACKAGE_NAME) in openFile_incorrectFileName_throwsIllegalArgumentException() [all …]
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/storage/ |
H A D | TertiaryKeysTableTest.java | 40 private static final String PACKAGE_NAME = "generic.package.name"; field in TertiaryKeysTableTest 56 TertiaryKey keyToInsert = new TertiaryKey(SECONDARY_ALIAS, PACKAGE_NAME, key); in addKey_onEmptyDatabase_putsKeyInDb() 62 mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME); in addKey_onEmptyDatabase_putsKeyInDb() 72 new TertiaryKey(SECONDARY_ALIAS, PACKAGE_NAME, generateRandomKey())); in addKey_havingSameSecondaryAliasAndPackageName_replacesOldKey() 90 TertiaryKey key1 = generateTertiaryKey(SECONDARY_ALIAS, PACKAGE_NAME); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() 91 TertiaryKey key2 = generateTertiaryKey(alias2, PACKAGE_NAME); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() 99 mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).get(), key1); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() 130 TertiaryKey key1 = generateTertiaryKey(SECONDARY_ALIAS, PACKAGE_NAME); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() 142 assertThat(keysByPackageName).containsKey(PACKAGE_NAME); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() 143 assertTertiaryKeysEqual(keysByPackageName.get(PACKAGE_NAME), key1); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() [all …]
|
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/toast/ |
H A D | CarToastUITest.java | 60 private static final String PACKAGE_NAME = "PACKAGE_NAME"; field in CarToastUITest 112 mCarToastUI.showToast(UID, PACKAGE_NAME, mIBinder, TEXT, mIBinder, DURATION, in showToast_notSystemNotPrivilegedNotPlatformKey_createToastNotCalled() 125 mCarToastUI.showToast(UID, PACKAGE_NAME, mIBinder, TEXT, mIBinder, DURATION, in showToast_notSystemNotPrivilegedIsPlatformKey_createToastCalled() 137 mCarToastUI.showToast(UID, PACKAGE_NAME, mIBinder, TEXT, mIBinder, DURATION, in showToast_notSystemIsPrivilegedNotPlatformKey_createToastNotCalled() 150 mCarToastUI.showToast(UID, PACKAGE_NAME, mIBinder, TEXT, mIBinder, DURATION, in showToast_notSystemIsPrivilegedIsPlatformKey_createToastCalled() 162 mCarToastUI.showToast(UID, PACKAGE_NAME, mIBinder, TEXT, mIBinder, DURATION, in showToast_isSystemNotPrivilegedNotPlatformKey_createToastNotCalled() 174 new String[]{PACKAGE_NAME}); in showToast_isSystemNotPrivilegedNotPlatformKeyAllowListed_createToastCalled() 181 carToastUI.showToast(UID, PACKAGE_NAME, mIBinder, TEXT, mIBinder, DURATION, in showToast_isSystemNotPrivilegedNotPlatformKeyAllowListed_createToastCalled() 193 mCarToastUI.showToast(UID, PACKAGE_NAME, mIBinder, TEXT, mIBinder, DURATION, in showToast_isSystemNotPrivilegedIsPlatformKey_createToastCalled() 205 mCarToastUI.showToast(UID, PACKAGE_NAME, mIBinder, TEXT, mIBinder, DURATION, in showToast_isSystemIsPrivilegedNotPlatformKey_createToastCalled() [all …]
|
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
H A D | UiModeManagerServiceTest.java | 98 private static final String PACKAGE_NAME = "Diane Coffee"; field in UiModeManagerServiceTest 482 PROJECTION_TYPE_AUTOMOTIVE, PACKAGE_NAME)); in requestProjection_failsForBogusPackageName() 492 PROJECTION_TYPE_AUTOMOTIVE, PACKAGE_NAME)); in requestProjection_failsIfNameNotFound() 531 PROJECTION_TYPE_AUTOMOTIVE, PACKAGE_NAME)); in requestProjection_enforcesToggleAutomotiveProjectionPermission() 547 contains(PACKAGE_NAME)); in requestProjection_automotive_failsIfAlreadySetByOtherPackage() 587 PROJECTION_TYPE_AUTOMOTIVE, PACKAGE_NAME)); in releaseProjection_failsForBogusPackageName() 679 contains(PACKAGE_NAME)); in getProjectingPackages() 707 eq(List.of(PACKAGE_NAME))); in addOnProjectionStateChangedListener_callsListenerIfProjectionActive() 749 eq(List.of(PACKAGE_NAME))); in projectionStateChangedListener_calledWhenStateChanges() 792 eq(List.of(PACKAGE_NAME))); in projectionStateChangedListener_calledForAnyRelevantStateChange() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/library/ |
H A D | AndroidHidlUpdaterTest.java | 47 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P() 51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P() 62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_system() 68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_system() 81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries() 86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries() 98 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries_system() 106 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries_system() 120 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_in_usesLibraries() 126 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_in_usesLibraries() [all …]
|
H A D | RemoveUnnecessaryAndroidTestBaseLibraryTest.java | 48 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 52 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 87 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 97 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 120 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() [all …]
|
H A D | RemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java | 48 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 52 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 87 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 97 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 121 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() [all …]
|
H A D | AndroidTestBaseUpdaterTest.java | 46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q() 51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q() 62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_not_empty_usesLibraries() 69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_not_empty_usesLibraries() 81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesLibraries() 86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesLibraries() 99 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesOptionalLibraries() 104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesOptionalLibraries() 117 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 122 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() [all …]
|
H A D | OrgApacheHttpLegacyUpdaterTest.java | 46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 99 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 117 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 122 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() [all …]
|
H A D | PackageBackwardCompatibilityTest.java | 47 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in null_usesLibraries_and_usesOptionalLibraries() 51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in null_usesLibraries_and_usesOptionalLibraries() 80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 85 ParsingPackage after = PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 111 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_base_in_usesLibraries() 118 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_base_in_usesLibraries() 135 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries() 140 ParsingPackage after = PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries() 157 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in com_google_android_maps_in_usesLibraries() 162 ParsingPackage after = PackageImpl.forTesting(PACKAGE_NAME) in com_google_android_maps_in_usesLibraries() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bugreporthandler/ |
H A D | BugReportHandlerPickerTest.java | 60 private static final String PACKAGE_NAME = "com.example.test"; field in BugReportHandlerPickerTest 78 applicationInfo.name = PACKAGE_NAME; in setUp() 81 applicationInfo.packageName = PACKAGE_NAME; in setUp() 84 packageInfo.packageName = PACKAGE_NAME; in setUp() 102 mPackageManager.removePackage(PACKAGE_NAME); in tearDown() 137 createApplicationInfo(PACKAGE_NAME), USER_ID))); in testClickingItemSuccess() 143 BugReportHandlerPicker.getKey(PACKAGE_NAME, USER_ID)); in testClickingItemSuccess() 147 eq(PACKAGE_NAME), eq(USER_ID)); in testClickingItemSuccess() 149 BugReportHandlerPicker.getKey(PACKAGE_NAME, USER_ID)); in testClickingItemSuccess() 162 BugReportHandlerPicker.getKey(PACKAGE_NAME, USER_ID)); in testClickingItemFail() [all …]
|
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
H A D | ApplicationsUtilsTest.java | 48 private static final String PACKAGE_NAME = "com.android.car.settings.test"; field in ApplicationsUtilsTest 59 ShadowDefaultDialerManager.setDefaultDialerApplication(PACKAGE_NAME); in isKeepEnabledPackage_defaultDialerApplication_returnsTrue() 62 PACKAGE_NAME)).isTrue(); in isKeepEnabledPackage_defaultDialerApplication_returnsTrue() 67 ShadowSmsApplication.setDefaultSmsApplication(new ComponentName(PACKAGE_NAME, "cls")); in isKeepEnabledPackage_defaultSmsApplication_returnsTrue() 70 PACKAGE_NAME)).isTrue(); in isKeepEnabledPackage_defaultSmsApplication_returnsTrue() 76 PACKAGE_NAME)).isFalse(); in isKeepEnabledPackage_returnsFalse() 88 new ComponentName(PACKAGE_NAME, "cls")); in isProfileOrDeviceOwner_profileOwner_returnsTrue() 90 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, profileHelper)) in isProfileOrDeviceOwner_profileOwner_returnsTrue() 97 when(dpm.isDeviceOwnerAppOnAnyUser(PACKAGE_NAME)).thenReturn(true); in isProfileOrDeviceOwner_deviceOwner_returnsTrue() 99 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, in isProfileOrDeviceOwner_deviceOwner_returnsTrue() [all …]
|
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/wm/ |
H A D | BarControlPolicyTest.java | 43 private static final String PACKAGE_NAME = "sample.app"; field in BarControlPolicyTest 78 String text = "immersive.status=" + PACKAGE_NAME; in reloadFromSetting_validPolicyControlString_setsFilters() 92 String text = "immersive.status=" + PACKAGE_NAME; in reloadFromSetting_filtersSet_doesNotSetFiltersAgain() 106 int[] visibilities = BarControlPolicy.getBarVisibilities(PACKAGE_NAME); in getBarVisibilities_policyControlNotSet_showsSystemBars() 117 "immersive.status=" + PACKAGE_NAME); in getBarVisibilities_immersiveStatusForAppAndMatchingApp_hidesStatusBar() local 120 int[] visibilities = BarControlPolicy.getBarVisibilities(PACKAGE_NAME); in getBarVisibilities_immersiveStatusForAppAndMatchingApp_hidesStatusBar() 131 "immersive.status=" + PACKAGE_NAME); in getBarVisibilities_immersiveStatusForAppAndNonMatchingApp_showsSystemBars() local 148 int[] visibilities = BarControlPolicy.getBarVisibilities(PACKAGE_NAME); in getBarVisibilities_immersiveStatusForAppsAndNonApp_showsSystemBars() 159 "immersive.full=" + PACKAGE_NAME); in getBarVisibilities_immersiveFullForAppAndMatchingApp_hidesSystemBars() local 162 int[] visibilities = BarControlPolicy.getBarVisibilities(PACKAGE_NAME); in getBarVisibilities_immersiveFullForAppAndMatchingApp_hidesSystemBars() [all …]
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
H A D | StoragePreferenceControllerTest.java | 48 private static final String PACKAGE_NAME = "Test Package Name"; field in StoragePreferenceControllerTest 80 mPreferenceController.setPackageName(PACKAGE_NAME); in testCheckInitialized_noApplicationsEntry_throwException() 89 mPreferenceController.setPackageName(PACKAGE_NAME); in testCheckInitialized_noApplicationsState_throwException() 106 when(mMockApplicationsState.getEntry(PACKAGE_NAME, UserHandle.myUserId())) in onCreate_nullSize_calculatingSummary() 110 mPreferenceController.setPackageName(PACKAGE_NAME); in onCreate_nullSize_calculatingSummary() 120 when(mMockApplicationsState.getEntry(PACKAGE_NAME, UserHandle.myUserId())) in onCreate_validApp_sizeSummary() 125 mPreferenceController.setPackageName(PACKAGE_NAME); in onCreate_validApp_sizeSummary() 135 when(mMockApplicationsState.getEntry(PACKAGE_NAME, UserHandle.myUserId())) in onCreate_lateAppLoad_updateSummary() 139 mPreferenceController.setPackageName(PACKAGE_NAME); in onCreate_lateAppLoad_updateSummary() 157 mPreferenceController.setPackageName(PACKAGE_NAME); in onCreate_packageSizeChange_updateSummary() [all …]
|
/aosp12/art/tools/ |
H A D | add_package_property.sh | 23 PACKAGE_NAME=$1 26 adb push $PROPERTY_SCRIPT_PATH /data/data/$PACKAGE_NAME/ 27 adb shell chmod o+x /data/data/$PACKAGE_NAME/$PROPERTY_SCRIPT_NAME 28 adb shell restorecon /data/data/$PACKAGE_NAME/$PROPERTY_SCRIPT_NAME 29 adb shell setprop wrap.$PACKAGE_NAME /data/data/$PACKAGE_NAME/$PROPERTY_SCRIPT_NAME
|
/aosp12/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/ |
H A D | BackgroundDexOptServiceIntegrationTests.java | 73 private static final String PACKAGE_NAME = "com.android.frameworks.bgdexopttest"; field in BackgroundDexOptServiceIntegrationTests 211 String result = runShellCommand("cmd package bg-dexopt-job " + PACKAGE_NAME); in runBackgroundDexOpt() 265 compilePackageWithFilter(PACKAGE_NAME, "verify"); in testBackgroundDexOpt() 266 Assert.assertEquals("verify", getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOpt() 271 Assert.assertEquals(BG_DEXOPT_COMPILER_FILTER, getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOpt() 284 compilePackageWithFilter(PACKAGE_NAME, "verify"); in testBackgroundDexOptDowngradeSkipRecentlyUsedPackage() 285 Assert.assertEquals("verify", getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOptDowngradeSkipRecentlyUsedPackage() 310 compilePackageWithFilter(PACKAGE_NAME, "speed-profile"); in testBackgroundDexOptDowngradeSuccessful() 311 Assert.assertEquals("speed-profile", getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOptDowngradeSuccessful() 330 compilePackageWithFilter(PACKAGE_NAME, "verify"); in testBackgroundDexOptThermalThrottling() [all …]
|