/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScorerAppManagerTest.java | 91 mockLocationPermissionGranted(PACKAGE_UID, RECO_COMPONENT.getPackageName()); in setUp() 98 setNetworkRecoPackageSetting(RECO_COMPONENT.getPackageName()); in testGetActiveScorer_providerAvailable() 99 mockScoreNetworksGranted(RECO_COMPONENT.getPackageName()); in testGetActiveScorer_providerAvailable() 111 setNetworkRecoPackageSetting(RECO_COMPONENT.getPackageName()); in testGetActiveScorer_providerAvailable_serviceLabelOverride() 112 mockScoreNetworksGranted(RECO_COMPONENT.getPackageName()); in testGetActiveScorer_providerAvailable_serviceLabelOverride() 125 setNetworkRecoPackageSetting(RECO_COMPONENT.getPackageName()); in testGetActiveScorer_scoreNetworksPermissionMissing() 126 mockScoreNetworksDenied(RECO_COMPONENT.getPackageName()); in testGetActiveScorer_scoreNetworksPermissionMissing() 135 setNetworkRecoPackageSetting(RECO_COMPONENT.getPackageName()); in testGetActiveScorer_locationPermissionMissing() 136 mockScoreNetworksGranted(RECO_COMPONENT.getPackageName()); in testGetActiveScorer_locationPermissionMissing() 137 mockLocationPermissionDenied(PACKAGE_UID, RECO_COMPONENT.getPackageName()); in testGetActiveScorer_locationPermissionMissing() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ShortcutManager.java | 102 return mService.setDynamicShortcuts(mContext.getPackageName(), in setDynamicShortcuts() 121 return mService.getDynamicShortcuts(mContext.getPackageName(), injectMyUserId()) in getDynamicShortcuts() 140 return mService.getManifestShortcuts(mContext.getPackageName(), injectMyUserId()) in getManifestShortcuts() 162 return mService.addDynamicShortcuts(mContext.getPackageName(), in addDynamicShortcuts() 176 mService.removeDynamicShortcuts(mContext.getPackageName(), shortcutIds, in removeDynamicShortcuts() 190 mService.removeAllDynamicShortcuts(mContext.getPackageName(), injectMyUserId()); in removeAllDynamicShortcuts() 208 return mService.getPinnedShortcuts(mContext.getPackageName(), injectMyUserId()) in getPinnedShortcuts() 229 return mService.updateShortcuts(mContext.getPackageName(), in updateShortcuts() 247 mService.disableShortcuts(mContext.getPackageName(), shortcutIds, in disableShortcuts() 260 mService.disableShortcuts(mContext.getPackageName(), shortcutIds, in disableShortcuts() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 81 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); in testSnoozeForTime() 91 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 101 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 103 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 105 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1); 109 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 111 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 123 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 125 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 127 UserHandle.USER_ALL, r3.sbn.getPackageName(), r3.getKey())); [all …]
|
D | ZenModeFilteringTest.java | 124 when(r.sbn.getPackageName()).thenReturn("android"); in testSuppressDNDInfo_yes_VisEffectsAllowed() 135 when(r.sbn.getPackageName()).thenReturn("android"); in testSuppressDNDInfo_yes_WrongId() 145 when(r.sbn.getPackageName()).thenReturn("android2"); in testSuppressDNDInfo_yes_WrongPackage() 155 when(r.sbn.getPackageName()).thenReturn("android"); in testSuppressDNDInfo_no() 167 when(r.sbn.getPackageName()).thenReturn("bananas"); in testSuppressAnything_yes_ZenModeOff() 177 when(r.sbn.getPackageName()).thenReturn("bananas"); in testSuppressAnything_bypass_ZenModeOn()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ModuleInfoProviderTest.java | 35 m1.getPackageName().compareTo(m1.getPackageName())); in testSuccessfulParse() 36 assertEquals("com.android.module1", mi.get(0).getPackageName()); in testSuccessfulParse() 37 assertEquals("com.android.module2", mi.get(1).getPackageName()); in testSuccessfulParse() 40 assertEquals("com.android.module1", mi1.getPackageName()); in testSuccessfulParse() 45 assertEquals("com.android.module2", mi2.getPackageName()); in testSuccessfulParse() 67 assertEquals("com.android.module1", mi1.getPackageName()); in testParse_unknownAttributesIgnored()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | AppDataRollbackHelper.java | 74 packageRollbackInfo.getPackageName(), user, snapshotId, storageFlags); in snapshotAppData() 80 + packageRollbackInfo.getPackageName() + ", userId: " + user, ie); in snapshotAppData() 122 mInstaller.restoreAppDataSnapshot(packageRollbackInfo.getPackageName(), appId, seInfo, in restoreAppData() 126 + packageRollbackInfo.getPackageName(), ie); in restoreAppData() 145 mInstaller.destroyAppDataSnapshot(packageRollbackInfo.getPackageName(), user, in destroyAppDataSnapshot() 152 + packageRollbackInfo.getPackageName(), ie); in destroyAppDataSnapshot() 175 pendingBackupPackages.put(info.getPackageName(), info); in computePendingBackups() 203 pendingRestorePackages.put(info.getPackageName(), info); in computePendingRestores() 239 pendingRestorePackages.get(backupPackage.getPackageName()); in commitPendingBackupAndRestoreForUser() 244 pendingRestorePackages.remove(backupPackage.getPackageName()); in commitPendingBackupAndRestoreForUser() [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | MediaController.java | 134 return mSessionBinder.sendMediaButton(mContext.getPackageName(), mCbStub, keyEvent); in dispatchMediaButtonEvent() 300 mSessionBinder.setVolumeTo(mContext.getPackageName(), mContext.getOpPackageName(), in setVolumeTo() 325 mSessionBinder.adjustVolume(mContext.getPackageName(), mContext.getOpPackageName(), in adjustVolume() 392 mSessionBinder.sendCommand(mContext.getPackageName(), mCbStub, command, args, cb); in sendCommand() 403 public String getPackageName() { in getPackageName() method in MediaController 406 mPackageName = mSessionBinder.getPackageName(); in getPackageName() 486 mSessionBinder.registerCallback(mContext.getPackageName(), mCbStub); in addCallbackLocked() 633 mSessionBinder.prepare(mContext.getPackageName(), mCbStub); in prepare() 657 mSessionBinder.prepareFromMediaId(mContext.getPackageName(), mCbStub, mediaId, in prepareFromMediaId() 684 mSessionBinder.prepareFromSearch(mContext.getPackageName(), mCbStub, query, in prepareFromSearch() [all …]
|
/frameworks/base/core/java/android/printservice/ |
D | PrintService.java | 376 return new PrinterId(new ComponentName(getPackageName(), in generatePrinterId() 479 + getPackageName()); 496 + getPackageName()); 507 + getPackageName()); 518 + getPackageName()); 528 + getPackageName()); 539 + getPackageName()); 550 + getPackageName()); 561 + getPackageName()); 572 + getPackageName()); [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsResolverTest.java | 135 TEST_DEVICE_DEFAULT_NAME.getPackageName()); in testAddDevicePackageToCache() 152 setConfigCarrierString(0, TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testAddCarrierPackageToCache() 161 TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testAddCarrierPackageToCache() 182 setConfigCarrierString(0, TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testCarrierPackageBind() 205 setConfigCarrierString(0, TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testCarrierPackageBindWithEmergencyCalling() 229 setConfigCarrierString(0, TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testCarrierPackageChangeEmergencyCalling() 242 packageChanged(TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testCarrierPackageChangeEmergencyCalling() 322 setConfigCarrierString(0, TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testDeviceAndCarrierPackageBind() 408 packageChanged(TEST_DEVICE_DEFAULT_NAME.getPackageName()); in testAddDeviceFeatureNoCarrier() 429 setConfigCarrierString(0, TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testAddDeviceFeatureWithCarrier() [all …]
|
D | RcsMessageStoreControllerTest.java | 87 mRcsMessageStoreController.getRcsThreads(queryParameters, getPackageName()); in testGetRcsThreads() 121 getPackageName()); in testCreateRcsParticipant() 134 mRcsMessageStoreController.setRcsParticipantAlias(551, "New Alias", getPackageName()); in testUpdateRcsParticipantAlias() 147 mRcsMessageStoreController.set1To1ThreadFallbackThreadId(123, 456L, getPackageName()); in testSet1To1ThreadFallbackThreadId() 161 mRcsMessageStoreController.setGroupThreadName(345, "new name", getPackageName()); in testSetGroupThreadName() 176 getPackageName()); in testSetGroupThreadIcon() 190 mRcsMessageStoreController.setGroupThreadOwner(454, 9, getPackageName()); in testSetGroupThreadOwner() 196 private String getPackageName() { in getPackageName() method in RcsMessageStoreControllerTest
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 119 mRealTestContext.getPackageName(), 0)); in markPackageAsInstalled() 143 ai.packageName = delegateCertInstaller.getPackageName(); in markDelegatedCertInstallerAsInstalled() 146 markPackageAsInstalled(delegateCertInstaller.getPackageName(), ai, in markDelegatedCertInstallerAsInstalled() 189 copyFromAdmin.getPackageName(), in setUpPackageManagerForFakeAdmin() 198 ai.packageName = admin.getPackageName(); in setUpPackageManagerForFakeAdmin() 202 eq(admin.getPackageName()), in setUpPackageManagerForFakeAdmin() 223 aci.packageName = admin.getPackageName(); in setUpPackageManagerForFakeAdmin() 233 doReturn(new String[] {admin.getPackageName()}).when(mServices.ipackageManager) in setUpPackageManagerForFakeAdmin() 236 markPackageAsInstalled(admin.getPackageName(), ai, UserHandle.getUserId(packageUid)); in setUpPackageManagerForFakeAdmin()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | GroupHelper.java | 64 = ungroupedNotificationsByUser.get(sbn.getPackageName()); in onNotificationPosted() 70 ungroupedNotificationsByUser.put(sbn.getPackageName(), notificationsForPackage); in onNotificationPosted() 78 adjustAutogroupingSummary(sbn.getUserId(), sbn.getPackageName(), in onNotificationPosted() 112 = ungroupedNotificationsByUser.get(sbn.getPackageName()); in maybeUngroup() 125 ungroupedNotificationsByUser.remove(sbn.getPackageName()); in maybeUngroup() 130 adjustAutogroupingSummary(userId, sbn.getPackageName(), null, false); in maybeUngroup()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsNotedWatcherTest.java | 60 getContext().getPackageName()); in testWatchNotedOps() 62 getContext().getPackageName()); in testWatchNotedOps() 68 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps() 72 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps()
|
D | AppOpsActiveWatcherTest.java | 69 eq(Process.myUid()), eq(getContext().getPackageName()), eq(true)); in testWatchActiveOps() 79 Process.myUid(), getContext().getPackageName())).isTrue(); in testWatchActiveOps() 87 eq(Process.myUid()), eq(getContext().getPackageName()), eq(false)); in testWatchActiveOps() 91 Process.myUid(), getContext().getPackageName())).isFalse(); in testWatchActiveOps()
|
/frameworks/base/core/java/android/service/settings/suggestions/ |
D | SuggestionService.java | 45 Log.d(TAG, "getSuggestions() " + getPackageName()); in onBind() 53 Log.d(TAG, "dismissSuggestion() " + getPackageName()); in onBind() 61 Log.d(TAG, "launchSuggestion() " + getPackageName()); in onBind()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | PackageManagerPerfTest.java | 50 final String packageName = TEST_ACTIVITY.getPackageName(); in testCheckPermissionExists() 61 final String packageName = TEST_ACTIVITY.getPackageName(); in testCheckPermissionDoesntExist() 83 final String packageName = TEST_ACTIVITY.getPackageName(); in testGetPackageInfo() 94 final String packageName = TEST_ACTIVITY.getPackageName(); in testGetApplicationInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | Bubble.java | 56 return user.getIdentifier() + "|" + entry.notification.getPackageName(); in groupId() 77 entry.notification.getPackageName(), in Bubble() 86 mAppName = entry.notification.getPackageName(); in Bubble() 98 public String getPackageName() { in getPackageName() method in Bubble 99 return entry.notification.getPackageName(); in getPackageName()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationListControllerTest.java | 128 entry.notification.getPackageName(), in testAppOps_appOpAddedToForegroundNotif() 162 entry.notification.getPackageName())).thenReturn(entry.key); in testAppOps_addNotificationWithExistingAppOps() 164 entry.notification.getPackageName())).thenReturn(expected); in testAppOps_addNotificationWithExistingAppOps() 184 entry.notification.getPackageName())).thenReturn(entry.key); in testAdd_addNotificationWithNoExistingAppOps() 186 entry.notification.getPackageName())).thenReturn(null); in testAdd_addNotificationWithNoExistingAppOps() 205 entry.notification.getPackageName())).thenReturn(ops); in testAdd_addNonForegroundNotificationWithExistingAppOps() 208 entry.notification.getPackageName())).thenReturn("something else"); in testAdd_addNonForegroundNotificationWithExistingAppOps()
|
/frameworks/base/location/java/android/location/ |
D | GnssMeasurementCallbackTransport.java | 45 getContext().getPackageName()); in registerWithServer() 63 measurementCorrections, getContext().getPackageName()); in injectGnssMeasurementCorrections() 67 return mLocationManager.getGnssCapabilities(getContext().getPackageName()); in getGnssCapabilities()
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceManager.java | 134 mService.pinSlice(mContext.getPackageName(), uri, in pinSlice() 166 mService.unpinSlice(mContext.getPackageName(), uri, mToken); in unpinSlice() 177 return mService.hasSliceAccess(mContext.getPackageName()); in hasSliceAccess() 193 mContext.getPackageName()))); in getPinnedSpecs() 205 return Arrays.asList(mService.getPinnedSlices(mContext.getPackageName())); in getPinnedSlices() 433 return mService.checkSlicePermission(uri, mContext.getPackageName(), null, pid, uid, in checkSlicePermission() 450 mService.grantSlicePermission(mContext.getPackageName(), toPackage, uri); in grantSlicePermission() 472 mService.revokeSlicePermission(mContext.getPackageName(), toPackage, uri); in revokeSlicePermission() 491 int result = mService.checkSlicePermission(uri, mContext.getPackageName(), pkg, pid, in enforceSlicePermission() 508 mService.grantPermissionFromUser(uri, pkg, mContext.getPackageName(), allSlices); in grantPermissionFromUser()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutUser.java | 86 return new PackageWithUser(spi.getPackageUserId(), spi.getPackageName()); in of() 174 mPackages.put(p.getPackageName(), p); in addPackage() 195 launcher.getPackageName()), launcher); in addLauncher() 260 && spi.getPackageName().equals(packageName)) { in forPackageItem() 424 ret.mPackages.put(shortcuts.getPackageName(), shortcuts); in loadFromXml() 511 if (s.isPackageInstalled(sl.getPackageName(), getUserId()) in mergeRestoredFile() 512 && !s.shouldBackupApp(sl.getPackageName(), getUserId())) { in mergeRestoredFile() 521 if (s.isPackageInstalled(sp.getPackageName(), getUserId()) in mergeRestoredFile() 522 && !s.shouldBackupApp(sp.getPackageName(), getUserId())) { in mergeRestoredFile() 526 final ShortcutPackage previous = getPackageShortcutsIfExists(sp.getPackageName()); in mergeRestoredFile() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServiceNotificationListener.java | 95 return userState.removeNotification(sbn.getPackageName(), sbn.getKey()); in removeNotification() 127 userState.removeNotification(sbn.getPackageName(), sbn.getKey()); in updateNotification() 131 userState.addImportantNotification(sbn.getPackageName(), in updateNotification() 139 sbn.getPackageName(), sbn.getKey()); in updateNotification()
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 472 String sender = mContext.getPackageName(); in notifyAsPackage() 490 String pkg = mContext.getPackageName(); in notifyAsUser() 502 String pkg = mContext.getPackageName(); in fixNotification() 561 String pkg = mContext.getPackageName(); in cancelAsUser() 577 String pkg = mContext.getPackageName(); in cancelAll() 600 String pkg = mContext.getPackageName(); in setNotificationDelegate() 615 String pkg = mContext.getPackageName(); in getNotificationDelegate() 632 return service.canNotifyAsPackage(mContext.getPackageName(), pkg, mContext.getUserId()); in canNotifyAsPackage() 667 service.createNotificationChannelGroups(mContext.getPackageName(), in createNotificationChannelGroups() 710 service.createNotificationChannels(mContext.getPackageName(), in createNotificationChannels() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RecentsAnimationTest.java | 68 new ComponentName(mContext.getPackageName(), "RecentsActivity"); 155 .setComponent(new ComponentName(mContext.getPackageName(), "Home2")) in testSetLaunchTaskBehindOfTargetActivity() 193 .setComponent(new ComponentName(mContext.getPackageName(), "App1")) in testCancelAnimationOnVisibleStackOrderChange() 207 .setComponent(new ComponentName(mContext.getPackageName(), "App2")) in testCancelAnimationOnVisibleStackOrderChange() 237 .setComponent(new ComponentName(mContext.getPackageName(), "App1")) in testKeepAnimationOnHiddenStackOrderChange() 251 .setComponent(new ComponentName(mContext.getPackageName(), "App2")) in testKeepAnimationOnHiddenStackOrderChange() 274 .setComponent(new ComponentName(mContext.getPackageName(), "Home2")) in testMultipleUserHomeActivity_findUserHomeTask() 281 .setComponent(new ComponentName(mContext.getPackageName(), "App1")) in testMultipleUserHomeActivity_findUserHomeTask()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | AndroidAppAssetMatcher.java | 38 if (!androidAppAsset.getPackageName().equals(mQuery.getPackageName())) { in matches()
|