/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreBCWorkaroundProvider.java | 43 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 …]
|
D | AndroidKeyStoreProvider.java | 66 private static final String PACKAGE_NAME = "android.security.keystore"; field in AndroidKeyStoreProvider 77 put("KeyStore.AndroidKeyStore", PACKAGE_NAME + ".AndroidKeyStoreSpi"); in AndroidKeyStoreProvider() 80 put("KeyPairGenerator.EC", PACKAGE_NAME + ".AndroidKeyStoreKeyPairGeneratorSpi$EC"); in AndroidKeyStoreProvider() 81 put("KeyPairGenerator.RSA", PACKAGE_NAME + ".AndroidKeyStoreKeyPairGeneratorSpi$RSA"); in AndroidKeyStoreProvider() 88 put("KeyGenerator.AES", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$AES"); in AndroidKeyStoreProvider() 89 put("KeyGenerator.HmacSHA1", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA1"); in AndroidKeyStoreProvider() 90 put("KeyGenerator.HmacSHA224", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA224"); in AndroidKeyStoreProvider() 91 put("KeyGenerator.HmacSHA256", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA256"); in AndroidKeyStoreProvider() 92 put("KeyGenerator.HmacSHA384", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA384"); in AndroidKeyStoreProvider() 93 put("KeyGenerator.HmacSHA512", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$HmacSHA512"); in AndroidKeyStoreProvider() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | OverrideValidatorImplTest.java | 49 private static final String PACKAGE_NAME = "my.package"; field in OverrideValidatorImplTest 96 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 100 .withPackageName(PACKAGE_NAME).build()); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 103 overrideValidator.getOverrideAllowedState(1, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 105 overrideValidator.getOverrideAllowedState(2, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 107 overrideValidator.getOverrideAllowedState(3, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 109 overrideValidator.getOverrideAllowedState(4, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 111 overrideValidator.getOverrideAllowedState(5, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 113 overrideValidator.getOverrideAllowedState(6, PACKAGE_NAME); in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 140 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride() [all …]
|
D | PlatformCompatTest.java | 46 private static final String PACKAGE_NAME = "my.package"; field in PlatformCompatTest 63 when(mPackageManager.getPackageUid(eq(PACKAGE_NAME), eq(0))).thenThrow( in setUp() 129 PACKAGE_NAME); in testRegisterListenerReturn() 144 PACKAGE_NAME); in testListenerCalledOnSetOverrides() 146 verify(mListener1, times(2)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverrides() 156 PACKAGE_NAME); in testListenerNotCalledOnWrongPackage() 167 PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners() 169 verify(mListener1, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners() 170 verify(mListener2, never()).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners() 179 PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
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() 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 …]
|
D | FullBackupRestoreObserverUtilsTest.java | 41 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/services/robotests/backup/src/com/android/server/backup/encryption/storage/ |
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() 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/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/ |
D | BackgroundDexOptServiceIntegrationTests.java | 72 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/tests/UiBench/src/com/android/test/uibench/ |
D | InflatingListActivity.java | 27 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/backup/ |
D | TrampolineTest.java | 80 private static final String PACKAGE_NAME = "some.package.name"; field in TrampolineTest 474 mTrampoline.dataChanged(PACKAGE_NAME); in dataChanged_calledBeforeInitialize_ignored() 482 mTrampoline.dataChangedForUser(mUserId, PACKAGE_NAME); in dataChangedForUser_forwarded() 484 verify(mBackupManagerServiceMock).dataChanged(mUserId, PACKAGE_NAME); in dataChangedForUser_forwarded() 492 mTrampoline.dataChanged(PACKAGE_NAME); in dataChanged_forwarded() 494 verify(mBackupManagerServiceMock).dataChanged(mUserId, PACKAGE_NAME); in dataChanged_forwarded() 499 mTrampoline.clearBackupData(TRANSPORT_NAME, PACKAGE_NAME); in clearBackupData_calledBeforeInitialize_ignored() 507 mTrampoline.clearBackupDataForUser(mUserId, TRANSPORT_NAME, PACKAGE_NAME); in clearBackupDataForUser_forwarded() 509 verify(mBackupManagerServiceMock).clearBackupData(mUserId, TRANSPORT_NAME, PACKAGE_NAME); in clearBackupDataForUser_forwarded() 517 mTrampoline.clearBackupData(TRANSPORT_NAME, PACKAGE_NAME); in clearBackupData_forwarded() [all …]
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/ |
D | TargetPackageUtils.java | 40 public static final String PACKAGE_NAME = "com.android.frameworks.perftests.amteststestapp"; field in TargetPackageUtils 41 public static final String ACTIVITY_NAME = PACKAGE_NAME + ".TestActivity"; 42 public static final String SERVICE_NAME = PACKAGE_NAME + ".TestService"; 43 private static final String START_SERVICE_NAME = PACKAGE_NAME + ".StartProcessService"; 58 activityManager.forceStopPackage(PACKAGE_NAME); in killTargetPackage() 73 intent.setClassName(PACKAGE_NAME, START_SERVICE_NAME); in startTargetPackage() 100 sTestAppUid = pm.getPackageUid(PACKAGE_NAME, 0); in getTestAppUid()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/ |
D | EuiccControllerTest.java | 90 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/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/ |
D | TestJobService.java | 28 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";
|
D | TestJobActivity.java | 30 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/base/services/tests/servicestests/test-apps/SuspendTestApp/src/com/android/servicestests/apps/suspendtestapp/ |
D | SuspendTestReceiver.java | 33 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/provider/ |
D | FontsContractTest.java | 59 private static final String PACKAGE_NAME = "com.my.font.provider.package"; field in FontsContractTest 62 TestFontsProvider.AUTHORITY, PACKAGE_NAME, "query"); 287 TestFontsProvider.AUTHORITY, PACKAGE_NAME, "query", Arrays.asList(certList)); in testGetProvider_providerIsNonSystemAppWrongCerts() 298 TestFontsProvider.AUTHORITY, PACKAGE_NAME, "query", Arrays.asList(certList)); in testGetProvider_providerIsNonSystemAppCorrectCerts() 312 TestFontsProvider.AUTHORITY, PACKAGE_NAME, "query", Arrays.asList(certList)); in testGetProvider_providerIsNonSystemAppMoreCerts() 319 info.packageName = PACKAGE_NAME; in testGetProvider_providerIsNonSystemAppDuplicateCerts() 327 packageInfo.packageName = PACKAGE_NAME; in testGetProvider_providerIsNonSystemAppDuplicateCerts() 335 TestFontsProvider.AUTHORITY, PACKAGE_NAME, "query", Arrays.asList(certList)); in testGetProvider_providerIsNonSystemAppDuplicateCerts() 348 TestFontsProvider.AUTHORITY, PACKAGE_NAME, "query", certList); in testGetProvider_providerIsNonSystemAppCorrectCertsSeveralSets() 373 info.packageName = PACKAGE_NAME; in setupPackageManager() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | test_create_audiorecord.cpp | 31 #define PACKAGE_NAME "AudioRecord test" macro 47 String16(PACKAGE_NAME)); in testRecord() 93 sp<AudioRecord> record = new AudioRecord(String16(PACKAGE_NAME)); in testRecord()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
D | LayoutLibTestCallback.java | 55 private static final String PACKAGE_NAME = "com.android.layoutlib.test.myapplication"; field in LayoutLibTestCallback 72 Class<?> rClass = mModuleClassLoader.loadClass(PACKAGE_NAME + ".R"); in initResources() 93 mLog.error(e, "Malformed R class: %1$s", PACKAGE_NAME + ".R"); in initResources() 115 PACKAGE_NAME); in getNamespace() 194 return (T) PACKAGE_NAME; in getFlag()
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
D | ContentProviderPerfTest.java | 44 .acquireContentProviderClient(TargetPackageUtils.PACKAGE_NAME); in contentProviderRunning() 63 TargetPackageUtils.PACKAGE_NAME); in contentProviderNotRunning()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/logging/ |
D | TextClassifierEventTronLoggerTest.java | 51 private static final String PACKAGE_NAME = "pkg"; field in TextClassifierEventTronLoggerTest 67 new TextClassificationContext.Builder(PACKAGE_NAME, WIDGET_TYPE) in testWriteEvent() 90 assertThat(logMaker.getPackageName()).isEqualTo(PACKAGE_NAME); in testWriteEvent()
|
D | GenerateLinksLoggerTest.java | 49 private static final String PACKAGE_NAME = "packageName"; field in GenerateLinksLoggerTest 79 logger.logGenerateLinks(testText, links, PACKAGE_NAME, LATENCY_MS); in testLogGenerateLinks() 98 assertEquals(PACKAGE_NAME, log.getPackageName()); in assertHasLog()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | SuspendedAppActivity.java | 40 private static final String PACKAGE_NAME = "com.android.internal.app"; field in SuspendedAppActivity 42 public static final String EXTRA_SUSPENDED_PACKAGE = PACKAGE_NAME + ".extra.SUSPENDED_PACKAGE"; 44 PACKAGE_NAME + ".extra.SUSPENDING_PACKAGE"; 45 public static final String EXTRA_DIALOG_INFO = PACKAGE_NAME + ".extra.DIALOG_INFO";
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | RecycleAccessibilityEventTest.java | 27 private static final String PACKAGE_NAME = "foo.bar.baz"; field in RecycleAccessibilityEventTest 48 first.setPackageName(PACKAGE_NAME); in testAccessibilityEventViewTextChangedType()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | BackupManagerConstantsTest.java | 37 private static final String PACKAGE_NAME = "some.package.name"; field in BackupManagerConstantsTest 203 + PACKAGE_NAME in testBackupNotificationReceivers_afterSetting_updatesAndParsesCorrectly() 211 .isEqualTo(new String[] {PACKAGE_NAME, ANOTHER_PACKAGE_NAME}); in testBackupNotificationReceivers_afterSetting_updatesAndParsesCorrectly()
|
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | MyAutofillService.java | 49 private static final String PACKAGE_NAME = "com.android.perftests.autofill"; field in MyAutofillService 50 static final String COMPONENT_NAME = PACKAGE_NAME + "/android.view.autofill.MyAutofillService"; 215 new RemoteViews(PACKAGE_NAME, R.layout.autofill_dataset_picker_text_only); in newDatasetPresentation()
|