Home
last modified time | relevance | path

Searched refs:PACKAGE_NAME (Results 1 – 25 of 127) sorted by relevance

123456

/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreBCWorkaroundProvider.java43 private static final String PACKAGE_NAME = "android.security.keystore2"; field in AndroidKeyStoreBCWorkaroundProvider
45 PACKAGE_NAME + ".AndroidKeyStoreSecretKey";
47 PACKAGE_NAME + ".AndroidKeyStorePrivateKey";
49 PACKAGE_NAME + ".AndroidKeyStorePublicKey";
59 putMacImpl("HmacSHA1", PACKAGE_NAME + ".AndroidKeyStoreHmacSpi$HmacSHA1"); in AndroidKeyStoreBCWorkaroundProvider()
64 putMacImpl("HmacSHA224", PACKAGE_NAME + ".AndroidKeyStoreHmacSpi$HmacSHA224"); in AndroidKeyStoreBCWorkaroundProvider()
69 putMacImpl("HmacSHA256", PACKAGE_NAME + ".AndroidKeyStoreHmacSpi$HmacSHA256"); in AndroidKeyStoreBCWorkaroundProvider()
74 putMacImpl("HmacSHA384", PACKAGE_NAME + ".AndroidKeyStoreHmacSpi$HmacSHA384"); in AndroidKeyStoreBCWorkaroundProvider()
79 putMacImpl("HmacSHA512", PACKAGE_NAME + ".AndroidKeyStoreHmacSpi$HmacSHA512"); in AndroidKeyStoreBCWorkaroundProvider()
86 PACKAGE_NAME + ".AndroidKeyStoreUnauthenticatedAESCipherSpi$ECB$NoPadding"); in AndroidKeyStoreBCWorkaroundProvider()
[all …]
DAndroidKeyStoreProvider.java64 private static final String PACKAGE_NAME = "android.security.keystore2"; field in AndroidKeyStoreProvider
76 put("KeyStore.AndroidKeyStore", PACKAGE_NAME + ".AndroidKeyStoreSpi"); in AndroidKeyStoreProvider()
79 put("KeyPairGenerator.EC", PACKAGE_NAME + ".AndroidKeyStoreKeyPairGeneratorSpi$EC"); in AndroidKeyStoreProvider()
80 put("KeyPairGenerator.RSA", PACKAGE_NAME + ".AndroidKeyStoreKeyPairGeneratorSpi$RSA"); in AndroidKeyStoreProvider()
87 put("KeyGenerator.AES", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$AES"); in AndroidKeyStoreProvider()
88 put("KeyGenerator.HmacSHA1", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA1"); in AndroidKeyStoreProvider()
89 put("KeyGenerator.HmacSHA224", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA224"); in AndroidKeyStoreProvider()
90 put("KeyGenerator.HmacSHA256", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA256"); in AndroidKeyStoreProvider()
91 put("KeyGenerator.HmacSHA384", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA384"); in AndroidKeyStoreProvider()
92 put("KeyGenerator.HmacSHA512", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA512"); in AndroidKeyStoreProvider()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/
DComponents.java22 public static final String PACKAGE_NAME = "com.android.wm.shell.flicker.testapp"; field in Components
26 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME,
27 PACKAGE_NAME + ".SimpleActivity");
33 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME,
34 PACKAGE_NAME + ".FixedActivity");
39 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME,
40 PACKAGE_NAME + ".NonResizeableActivity");
52 public static final String ACTION_ENTER_PIP = PACKAGE_NAME + ".PipActivity.ENTER_PIP";
56 PACKAGE_NAME + ".PipActivity.SET_REQUESTED_ORIENTATION";
65 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME,
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DPlatformCompatTest.java54 private static final String PACKAGE_NAME = "my.package"; field in PlatformCompatTest
74 when(mPackageManager.getPackageUid(eq(PACKAGE_NAME), eq(0))).thenThrow( in setUp()
76 when(mPackageManagerInternal.getPackageUid(eq(PACKAGE_NAME), eq(0), anyInt())) in setUp()
78 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in setUp()
152 assertThat(mPlatformCompat.isChangeEnabledByPackageName(1, PACKAGE_NAME, 0)).isTrue(); in testOverrideAtInstallTime()
153 assertThat(mPlatformCompat.isChangeEnabledByPackageName(2, PACKAGE_NAME, 0)).isFalse(); in testOverrideAtInstallTime()
154 assertThat(mPlatformCompat.isChangeEnabledByPackageName(3, PACKAGE_NAME, 0)).isTrue(); in testOverrideAtInstallTime()
165 mPlatformCompat.setOverridesForTest(compatibilityChangeConfig, PACKAGE_NAME); in testOverrideAtInstallTime()
168 assertThat(mPlatformCompat.isChangeEnabledByPackageName(1, PACKAGE_NAME, 0)).isFalse(); in testOverrideAtInstallTime()
169 assertThat(mPlatformCompat.isChangeEnabledByPackageName(2, PACKAGE_NAME, 0)).isTrue(); in testOverrideAtInstallTime()
[all …]
DOverrideValidatorImplTest.java52 private static final String PACKAGE_NAME = "my.package"; field in OverrideValidatorImplTest
104 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
108 .withPackageName(PACKAGE_NAME).build()); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
111 overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
113 overrideValidator.getOverrideAllowedState(2, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
115 overrideValidator.getOverrideAllowedState(3, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
117 overrideValidator.getOverrideAllowedState(4, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
119 overrideValidator.getOverrideAllowedState(5, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
121 overrideValidator.getOverrideAllowedState(6, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
148 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DBackupObserverUtilsTest.java40 private static final String PACKAGE_NAME = "some.package"; field in BackupObserverUtilsTest
53 BackupObserverUtils.sendBackupOnUpdate(null, PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_observerIsNull_doesNotThrow()
60 BackupObserverUtils.sendBackupOnUpdate(mBackupObserverMock, PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_callsObserver()
62 verify(mBackupObserverMock).onUpdate(PACKAGE_NAME, mBackupProgress); in sendBackupOnUpdate_callsObserver()
67 doThrow(new RemoteException()).when(mBackupObserverMock).onUpdate(PACKAGE_NAME, in sendBackupOnUpdate_handlesRemoteException()
70 BackupObserverUtils.sendBackupOnUpdate(mBackupObserverMock, PACKAGE_NAME, mBackupProgress); 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()
[all …]
DFullBackupRestoreObserverUtilsTest.java41 private static final String PACKAGE_NAME = "some.package"; field in FullBackupRestoreObserverUtilsTest
80 null, PACKAGE_NAME); in sendOnRestorePackage_observerIsNull_returnsNull()
88 mFullBackupRestoreObserverMock, PACKAGE_NAME); in sendOnRestorePackage_callsObserver()
91 verify(mFullBackupRestoreObserverMock).onRestorePackage(PACKAGE_NAME); in sendOnRestorePackage_callsObserver()
97 PACKAGE_NAME); in sendOnRestorePackage_observerThrows_returnsNull()
100 mFullBackupRestoreObserverMock, PACKAGE_NAME); in sendOnRestorePackage_observerThrows_returnsNull()
103 verify(mFullBackupRestoreObserverMock).onRestorePackage(PACKAGE_NAME); in sendOnRestorePackage_observerThrows_returnsNull()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/storage/
DTertiaryKeysTableTest.java40 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()
76 mTertiaryKeysTable.addKey(new TertiaryKey(SECONDARY_ALIAS, PACKAGE_NAME, newKey)); in addKey_havingSameSecondaryAliasAndPackageName_replacesOldKey()
79 TertiaryKey keyInDb = mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).get(); 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()
97 assertThat(mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).isPresent()).isTrue(); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey()
99 mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).get(), key1); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java98 private static final String PACKAGE_NAME = "Diane Coffee"; field in UiModeManagerServiceTest
478 when(mPackageManager.getPackageUid(PACKAGE_NAME, 0)) in requestProjection_failsForBogusPackageName()
482 PROJECTION_TYPE_AUTOMOTIVE, PACKAGE_NAME)); in requestProjection_failsForBogusPackageName()
488 when(mPackageManager.getPackageUid(PACKAGE_NAME, 0)) in requestProjection_failsIfNameNotFound()
492 PROJECTION_TYPE_AUTOMOTIVE, PACKAGE_NAME)); in requestProjection_failsIfNameNotFound()
498 when(mPackageManager.getPackageUid(PACKAGE_NAME, 0)).thenReturn(TestInjector.CALLING_UID); in requestProjection_failsIfNoProjectionTypes()
501 () -> mService.requestProjection(mBinder, PROJECTION_TYPE_NONE, PACKAGE_NAME)); in requestProjection_failsIfNoProjectionTypes()
510 when(mPackageManager.getPackageUid(PACKAGE_NAME, 0)).thenReturn(TestInjector.CALLING_UID); in requestProjection_failsIfMultipleProjectionTypes()
516 () -> mService.requestProjection(mBinder, multipleProjectionTypes, PACKAGE_NAME)); in requestProjection_failsIfMultipleProjectionTypes()
525 doThrow(new SecurityException()).when(mPackageManager).getPackageUid(PACKAGE_NAME, 0); in requestProjection_enforcesToggleAutomotiveProjectionPermission()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/library/
DAndroidHidlUpdaterTest.java47 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 …]
DRemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java48 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 …]
DRemoveUnnecessaryAndroidTestBaseLibraryTest.java48 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 …]
DOrgApacheHttpLegacyUpdaterTest.java46 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 …]
DAndroidTestBaseUpdaterTest.java46 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 …]
DPackageBackwardCompatibilityTest.java47 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 …]
DAndroidNetIpSecIkeUpdaterTest.java42 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
48 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
59 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
64 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
74 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
79 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
DComGoogleAndroidMapsUpdaterTest.java42 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
48 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
59 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
64 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
76 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
81 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java73 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()
293 Assert.assertEquals(BG_DEXOPT_COMPILER_FILTER, getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOptDowngradeSkipRecentlyUsedPackage()
310 compilePackageWithFilter(PACKAGE_NAME, "speed-profile"); in testBackgroundDexOptDowngradeSuccessful()
311 Assert.assertEquals("speed-profile", getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOptDowngradeSuccessful()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluatorTest.java69 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_noMatchedRules_allow()
85 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_oneMatch_deny()
92 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_oneMatch_deny()
109 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_multipleMatches_deny()
118 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_multipleMatches_deny()
141 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_ruleWithNot_deny()
175 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_validForm_deny()
198 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_orRules()
221 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_compoundFormulaWithNot_deny()
244 AtomicFormula.PACKAGE_NAME, in testEvaluateRules_forceAllow()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DInflatingListActivity.java27 private static final String PACKAGE_NAME = "com.android.test.uibench"; field in InflatingListActivity
29 ComponentName.createRelative(PACKAGE_NAME, ".InflatingListActivity");
31 ComponentName.createRelative(PACKAGE_NAME, ".InflatingEmojiListActivity");
33 ComponentName.createRelative(PACKAGE_NAME, ".InflatingHanListActivity");
35 ComponentName.createRelative(PACKAGE_NAME, ".InflatingLongStringListActivity");
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DBinaryFileOperationsTest.java46 private static final String PACKAGE_NAME = "com.test.app"; field in BinaryFileOperationsTest
54 + getBits(PACKAGE_NAME.length(), VALUE_SIZE_BITS) in testGetStringValue()
55 + getValueBits(PACKAGE_NAME)); in testGetStringValue()
60 assertThat(resultString).isEqualTo(PACKAGE_NAME); in testGetStringValue()
81 byte[] ruleBytes = getBytes(getValueBits(PACKAGE_NAME)); in testGetStringValue_withSizeAndHashingInfo()
85 PACKAGE_NAME.length(), /* isHashedValue= */false); in testGetStringValue_withSizeAndHashingInfo()
87 assertThat(resultString).isEqualTo(PACKAGE_NAME); in testGetStringValue_withSizeAndHashingInfo()
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/
DTestJobService.java28 private static final String PACKAGE_NAME = "com.android.servicestests.apps.jobtestapp"; field in TestJobService
29 public static final String ACTION_JOB_STARTED = PACKAGE_NAME + ".action.JOB_STARTED";
30 public static final String ACTION_JOB_STOPPED = PACKAGE_NAME + ".action.JOB_STOPPED";
31 public static final String JOB_PARAMS_EXTRA_KEY = PACKAGE_NAME + ".extra.JOB_PARAMETERS";
DTestJobActivity.java30 private static final String PACKAGE_NAME = "com.android.servicestests.apps.jobtestapp"; field in TestJobActivity
32 public static final String EXTRA_JOB_ID_KEY = PACKAGE_NAME + ".extra.JOB_ID";
33 public static final String ACTION_START_JOB = PACKAGE_NAME + ".action.START_JOB";
34 public static final String ACTION_CANCEL_JOBS = PACKAGE_NAME + ".action.CANCEL_JOBS";
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccControllerTest.java90 private static final String PACKAGE_NAME = "test.package"; field in EuiccControllerTest
99 PACKAGE_NAME,
182 pi.packageName = PACKAGE_NAME; in setUp()
184 when(mPackageManager.getPackageInfo(eq(PACKAGE_NAME), anyInt())).thenReturn(pi); in setUp()
469 12345, 0 /* resolvableError */, PACKAGE_NAME /* callingPackage */); in testDownloadSubscription_noPrivileges_getMetadata_serviceUnavailable()
483 12345, 0 /* resolvableError */, PACKAGE_NAME /* callingPackage */); in testDownloadSubscription_noPrivileges_getMetadata_serviceUnavailable_canManageSim()
498 12345, 0 /* resolvableError */, PACKAGE_NAME /* callingPackage */); in testDownloadSubscription_noPrivileges_getMetadata_error()
514 12345, 0 /* resolvableError */, PACKAGE_NAME /* callingPackage */); in testDownloadSubscription_noPrivileges_getMetadata_error_canManageSim()
530 12345, 0 /* resolvableError */, PACKAGE_NAME /* callingPackage */); in testDownloadSubscription_noPrivileges_getMetadata_mustDeactivateSim()
549 12345, 0 /* resolvableError */, PACKAGE_NAME /* callingPackage */); in testDownloadSubscription_noPrivileges_getMetadata_mustDeactivateSim_canManageSim()
[all …]
/frameworks/base/core/tests/coretests/src/android/security/
DCredentialManagementAppTest.java52 private static final String PACKAGE_NAME = "com.android.cred.mng.pkg"; field in CredentialManagementAppTest
58 new CredentialManagementApp(PACKAGE_NAME, AUTHENTICATION_POLICY);
65 new CredentialManagementApp(PACKAGE_NAME, AUTHENTICATION_POLICY); in credentialManagementApp_getters()
67 assertThat(credentialManagementApp.getPackageName(), is(PACKAGE_NAME)); in credentialManagementApp_getters()
74 new CredentialManagementApp(PACKAGE_NAME, AUTHENTICATION_POLICY); in setAuthenticationPolicy_updatesAuthenticationPolicy()
98 new CredentialManagementApp(PACKAGE_NAME, /* authenticationPolicy= */ null); in constructor_nullAuthenticationPolicy_throwException()

123456