Home
last modified time | relevance | path

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

1234

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreBCWorkaroundProvider.java43 private static final String PACKAGE_NAME = "android.security.keystore"; 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.java68 private static final String PACKAGE_NAME = "android.security.keystore"; field in AndroidKeyStoreProvider
80 put("KeyStore.AndroidKeyStore", PACKAGE_NAME + ".AndroidKeyStoreSpi"); in AndroidKeyStoreProvider()
83 put("KeyPairGenerator.EC", PACKAGE_NAME + ".AndroidKeyStoreKeyPairGeneratorSpi$EC"); in AndroidKeyStoreProvider()
84 put("KeyPairGenerator.RSA", PACKAGE_NAME + ".AndroidKeyStoreKeyPairGeneratorSpi$RSA"); in AndroidKeyStoreProvider()
91 put("KeyGenerator.AES", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$AES"); in AndroidKeyStoreProvider()
92 put("KeyGenerator.HmacSHA1", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA1"); in AndroidKeyStoreProvider()
93 put("KeyGenerator.HmacSHA224", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA224"); in AndroidKeyStoreProvider()
94 put("KeyGenerator.HmacSHA256", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA256"); in AndroidKeyStoreProvider()
95 put("KeyGenerator.HmacSHA384", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA384"); in AndroidKeyStoreProvider()
96 put("KeyGenerator.HmacSHA512", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA512"); in AndroidKeyStoreProvider()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DOverrideValidatorImplTest.java49 private static final String PACKAGE_NAME = "my.package"; field in OverrideValidatorImplTest
97 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
101 .withPackageName(PACKAGE_NAME).build()); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
104 overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
106 overrideValidator.getOverrideAllowedState(2, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
108 overrideValidator.getOverrideAllowedState(3, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
110 overrideValidator.getOverrideAllowedState(4, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
112 overrideValidator.getOverrideAllowedState(5, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
114 overrideValidator.getOverrideAllowedState(6, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride()
141 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride()
[all …]
DPlatformCompatTest.java49 private static final String PACKAGE_NAME = "my.package"; field in PlatformCompatTest
69 when(mPackageManager.getPackageUid(eq(PACKAGE_NAME), eq(0))).thenThrow( in setUp()
71 when(mPackageManagerInternal.getPackageUid(eq(PACKAGE_NAME), eq(0), anyInt())) in setUp()
139 PACKAGE_NAME); in testRegisterListenerReturn()
154 PACKAGE_NAME); in testListenerCalledOnSetOverrides()
156 verify(mListener1, times(2)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverrides()
166 PACKAGE_NAME); in testListenerNotCalledOnWrongPackage()
177 PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners()
179 verify(mListener1, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners()
180 verify(mListener2, never()).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners()
[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/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()
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.java72 private static final String PACKAGE_NAME = "com.android.frameworks.bgdexopttest"; field in BackgroundDexOptServiceIntegrationTests
206 String result = runShellCommand("cmd package bg-dexopt-job " + PACKAGE_NAME); in runBackgroundDexOpt()
249 compilePackageWithFilter(PACKAGE_NAME, "verify"); in testBackgroundDexOpt()
250 Assert.assertEquals("verify", getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOpt()
255 Assert.assertEquals(BG_DEXOPT_COMPILER_FILTER, getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOpt()
268 compilePackageWithFilter(PACKAGE_NAME, "quicken"); in testBackgroundDexOptDowngradeSkipRecentlyUsedPackage()
269 Assert.assertEquals("quicken", getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOptDowngradeSkipRecentlyUsedPackage()
277 Assert.assertEquals(BG_DEXOPT_COMPILER_FILTER, getCompilerFilter(PACKAGE_NAME)); in testBackgroundDexOptDowngradeSkipRecentlyUsedPackage()
294 compilePackageWithFilter(PACKAGE_NAME, "quicken"); in testBackgroundDexOptDowngradeSuccessful()
295 Assert.assertEquals("quicken", 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()
DRuleBinaryParserTest.java72 private static final String PACKAGE_NAME = getBits(AtomicFormula.PACKAGE_NAME, KEY_BITS); field in RuleBinaryParserTest
107 + PACKAGE_NAME in testBinaryStream_validCompoundFormula_noIndexing()
127 AtomicFormula.PACKAGE_NAME, in testBinaryStream_validCompoundFormula_noIndexing()
146 + PACKAGE_NAME in testBinaryString_validCompoundFormula_notConnector_noIndexing()
166 AtomicFormula.PACKAGE_NAME, in testBinaryString_validCompoundFormula_notConnector_noIndexing()
185 + PACKAGE_NAME in testBinaryString_validCompoundFormula_andConnector_noIndexing()
211 AtomicFormula.PACKAGE_NAME, in testBinaryString_validCompoundFormula_andConnector_noIndexing()
233 + PACKAGE_NAME in testBinaryString_validCompoundFormula_orConnector_noIndexing()
259 AtomicFormula.PACKAGE_NAME, in testBinaryString_validCompoundFormula_orConnector_noIndexing()
279 + PACKAGE_NAME in testBinaryString_validAtomicFormula_stringValue_noIndexing()
[all …]
/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/services/tests/servicestests/src/com/android/server/backup/restore/
DPerformUnifiedRestoreTaskTest.java58 private static final String PACKAGE_NAME = "package"; field in PerformUnifiedRestoreTaskTest
125 when(mBackupManagerService.getExcludedRestoreKeys(eq(PACKAGE_NAME))).thenReturn( in testFilterExcludedKeys()
128 mRestoreTask.filterExcludedKeys(PACKAGE_NAME, mBackupDataInput, mBackupDataOutput); in testFilterExcludedKeys()
139 when(mBackupManagerService.getExcludedRestoreKeys(eq(PACKAGE_NAME))).thenReturn( in testGetExcludedKeysForPackage_alwaysReturnsLatestKeys()
141 assertEquals(firstExcludedKeys, mRestoreTask.getExcludedKeysForPackage(PACKAGE_NAME)); in testGetExcludedKeysForPackage_alwaysReturnsLatestKeys()
146 when(mBackupManagerService.getExcludedRestoreKeys(eq(PACKAGE_NAME))).thenReturn( in testGetExcludedKeysForPackage_alwaysReturnsLatestKeys()
148 assertEquals(secondExcludedKeys, mRestoreTask.getExcludedKeysForPackage(PACKAGE_NAME)); in testGetExcludedKeysForPackage_alwaysReturnsLatestKeys()
/frameworks/base/services/tests/servicestests/test-apps/SuspendTestApp/src/com/android/servicestests/apps/suspendtestapp/
DSuspendTestReceiver.java33 public static final String PACKAGE_NAME = "com.android.servicestests.apps.suspendtestapp"; field in SuspendTestReceiver
35 PACKAGE_NAME + ".action.GET_SUSPENDED_STATE";
36 public static final String EXTRA_SUSPENDED = PACKAGE_NAME + ".extra.SUSPENDED";
38 PACKAGE_NAME + ".extra.SUSPENDED_APP_EXTRAS";
/frameworks/base/core/tests/coretests/src/android/content/pm/
DShortcutQueryWrapperTest.java42 private static final String PACKAGE_NAME = "com.android.test"; field in ShortcutQueryWrapperTest
47 PACKAGE_NAME, "ShortcutQueryTest");
56 .setPackage(PACKAGE_NAME) in setUp()
70 assertEquals("Package name doesn't match!", PACKAGE_NAME, q.getPackage()); in testWriteAndReadFromParcel()

1234