Home
last modified time | relevance | path

Searched refs:getPackageName (Results 1 – 25 of 1296) sorted by relevance

12345678910>>...52

/frameworks/base/core/tests/coretests/src/android/content/
DPermissionCheckerTest.java55 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_DEFAULT); in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted()
59 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted()
67 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_DEFAULT); in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied()
71 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied()
79 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted()
83 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted()
91 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForPreflight_appOpPermission_packageNameIsNull_returnsGranted()
103 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_IGNORED); in testCheckPermissionForPreflight_appOpPermission_modeIgnored_returnsHardDenied()
107 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeIgnored_returnsHardDenied()
115 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ERRORED); in testCheckPermissionForPreflight_appOpPermission_modeErrored_returnsHardDenied()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java91 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/tests/overlaytests/device/src/com/android/overlaytest/
DFabricatedOverlaysTest.java74 mOverlayManager.getOverlayInfosForTarget(mContext.getPackageName(), mUserHandle).forEach( in tearDown()
86 mContext.getPackageName(), TEST_OVERLAY_NAME, mContext.getPackageName()) in testFabricatedOverlay()
118 mContext.getPackageName(), TEST_OVERLAY_NAME, mContext.getPackageName()) in testRegisterEnableAtomic()
134 mContext.getPackageName(), TEST_OVERLAY_NAME, mContext.getPackageName()) in testRegisterTwice()
146 mContext.getPackageName(), TEST_OVERLAY_NAME, mContext.getPackageName()) in testRegisterTwice()
159 "android", TEST_OVERLAY_NAME, mContext.getPackageName()) in testInvalidOwningPackageName()
176 mContext.getPackageName(), "invalid@name", mContext.getPackageName()) in testInvalidOverlayName()
194 Collections.nCopies(maxLength - mContext.getPackageName().length(), "a")); in testOverlayIdentifierLongest()
196 FabricatedOverlay overlay = new FabricatedOverlay.Builder(mContext.getPackageName(), in testOverlayIdentifierLongest()
197 longestName, mContext.getPackageName()) in testOverlayIdentifierLongest()
[all …]
/frameworks/base/core/tests/overlaytests/device_self_targeting/src/com/android/overlaytest/
DOverlayManagerImplTest.java200 final String packageName = mContext.getPackageName(); in createOverlayWithName()
230 mOverlayManagerImpl.getOverlayInfosForTarget(mContext.getPackageName()); in getOverlayInfosForTarget_defaultShouldBeZero()
247 mContext.getPackageName(), in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
252 mOverlayManagerImpl.getOverlayInfosForTarget(mContext.getPackageName()); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
261 expect.that(overlayInfo.getPackageName()).isEqualTo(mContext.getPackageName()); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
262 expect.that(overlayInfo.getTargetPackageName()).isEqualTo(mContext.getPackageName()); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
273 mContext.getPackageName(), in registerOverlay_createStringOverlay_shouldBeSavedInAndLoadFromFile()
278 mOverlayManagerImpl.getOverlayInfosForTarget(mContext.getPackageName()); in registerOverlay_createStringOverlay_shouldBeSavedInAndLoadFromFile()
287 expect.that(overlayInfo.getPackageName()).isEqualTo(mContext.getPackageName()); in registerOverlay_createStringOverlay_shouldBeSavedInAndLoadFromFile()
288 expect.that(overlayInfo.getTargetPackageName()).isEqualTo(mContext.getPackageName()); in registerOverlay_createStringOverlay_shouldBeSavedInAndLoadFromFile()
[all …]
/frameworks/base/core/java/android/content/pm/
DShortcutManager.java150 return mService.setDynamicShortcuts(mContext.getPackageName(), new ParceledListSlice( in setDynamicShortcuts()
170 return mService.getShortcuts(mContext.getPackageName(), in getDynamicShortcuts()
190 return mService.getShortcuts(mContext.getPackageName(), in getManifestShortcuts()
219 return mService.getShortcuts(mContext.getPackageName(), matchFlags, in getShortcuts()
242 return mService.addDynamicShortcuts(mContext.getPackageName(), in addDynamicShortcuts()
256 mService.removeDynamicShortcuts(mContext.getPackageName(), shortcutIds, in removeDynamicShortcuts()
270 mService.removeAllDynamicShortcuts(mContext.getPackageName(), injectMyUserId()); in removeAllDynamicShortcuts()
283 mService.removeLongLivedShortcuts(mContext.getPackageName(), shortcutIds, in removeLongLivedShortcuts()
303 return mService.getShortcuts(mContext.getPackageName(), FLAG_MATCH_PINNED, in getPinnedShortcuts()
325 return mService.updateShortcuts(mContext.getPackageName(), in updateShortcuts()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsResolverTest.java155 setupResolver(1 /*numSlots*/, TEST_DEVICE_DEFAULT_NAME.getPackageName(), in testAddDevicePackageToCache()
156 TEST_DEVICE_DEFAULT_NAME.getPackageName()); in testAddDevicePackageToCache()
169 TEST_DEVICE_DEFAULT_NAME.getPackageName()); in testAddDevicePackageToCache()
181 setupResolver(1 /*numSlots*/, TEST_DEVICE_DEFAULT_NAME.getPackageName(), in testAddCarrierPackageToCache()
182 TEST_DEVICE_DEFAULT_NAME.getPackageName()); in testAddCarrierPackageToCache()
187 setConfigCarrierStringMmTelRcs(0, TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testAddCarrierPackageToCache()
196 TEST_CARRIER_DEFAULT_NAME.getPackageName()); in testAddCarrierPackageToCache()
211 setupResolver(1 /*numSlots*/, TEST_DEVICE_DEFAULT_NAME.getPackageName(), in testIsDeviceImsServiceConfigured()
212 TEST_DEVICE_DEFAULT_NAME.getPackageName()); in testIsDeviceImsServiceConfigured()
240 setupResolver(1 /*numSlots*/, TEST_DEVICE_DEFAULT_NAME.getPackageName(), in testGetConfiguredImsServiceDevice()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DSnoozeHelperTest.java287 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey())); in testSnoozeForTime()
308 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
381 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
383 UserHandle.USER_SYSTEM, r2.getSbn().getPackageName(), r2.getKey()));
385 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), "one", 1);
389 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
391 UserHandle.USER_SYSTEM, r2.getSbn().getPackageName(), r2.getKey()));
403 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
405 UserHandle.USER_SYSTEM, r2.getSbn().getPackageName(), r2.getKey()));
407 UserHandle.USER_ALL, r3.getSbn().getPackageName(), r3.getKey()));
[all …]
/frameworks/base/media/java/android/media/session/
DMediaController.java143 return mSessionBinder.sendMediaButton(mContext.getPackageName(), keyEvent); in dispatchMediaButtonEvent()
296 mSessionBinder.setVolumeTo(mContext.getPackageName(), mContext.getOpPackageName(), in setVolumeTo()
321 mSessionBinder.adjustVolume(mContext.getPackageName(), mContext.getOpPackageName(), in adjustVolume()
388 mSessionBinder.sendCommand(mContext.getPackageName(), command, args, cb); in sendCommand()
399 public String getPackageName() { in getPackageName() method in MediaController
402 mPackageName = mSessionBinder.getPackageName(); in getPackageName()
477 mSessionBinder.registerCallback(mContext.getPackageName(), mCbStub); in addCallbackLocked()
634 mSessionBinder.prepare(mContext.getPackageName()); in prepare()
658 mSessionBinder.prepareFromMediaId(mContext.getPackageName(), mediaId, extras); in prepareFromMediaId()
684 mSessionBinder.prepareFromSearch(mContext.getPackageName(), query, extras); in prepareFromSearch()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DModuleInfoProviderTest.java55 m1.getPackageName().compareTo(m1.getPackageName())); in testSuccessfulParse()
56 assertEquals("com.android.module1", mi.get(0).getPackageName()); in testSuccessfulParse()
57 assertEquals("com.android.module2", mi.get(1).getPackageName()); in testSuccessfulParse()
60 assertEquals("com.android.module1", mi1.getPackageName()); in testSuccessfulParse()
66 assertEquals("com.android.module2", mi2.getPackageName()); in testSuccessfulParse()
89 assertEquals("com.android.module1", mi1.getPackageName()); in testParse_unknownAttributesIgnored()
/frameworks/base/core/java/android/printservice/
DPrintService.java376 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/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DSmsApplicationTest.java146 .thenReturn(TEST_COMPONENT_NAME.getPackageName()); in setUp()
152 opStr, SMS_APP_UID, TEST_COMPONENT_NAME.getPackageName())) in setUp()
170 assertEquals(TEST_COMPONENT_NAME.getPackageName(), componentName.getPackageName()); in testGetDefaultMmsApplicationAsUser()
179 assertEquals(TEST_COMPONENT_NAME.getPackageName(), componentName.getPackageName()); in testGetDefaultExternalTelephonyProviderChangedApplicationAsUser()
187 assertEquals(TEST_COMPONENT_NAME.getPackageName(), componentName.getPackageName()); in testGetDefaultRespondViaMessageApplicationAsUserAsUser()
195 assertEquals(TEST_COMPONENT_NAME.getPackageName(), componentName.getPackageName()); in testGetDefaultSimFullApplicationAsUser()
202 TEST_COMPONENT_NAME.getPackageName())) in testGetDefaultSmsApplicationWithAppOpsFix()
225 Uri.fromParts("package", TEST_COMPONENT_NAME.getPackageName(), null)); in testPackageChanged()
235 eq(new ComponentName(TEST_COMPONENT_NAME.getPackageName(), SEND_TO_NAME))); in testPackageChanged()
305 activityInfo.packageName = TEST_COMPONENT_NAME.getPackageName(); in makeSmsDeliverResolveInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DReconcilePackageUtils.java86 combinedPackages.put(installRequest.getScannedPackageSetting().getPackageName(), in reconcilePackages()
108 final String installPackageName = installRequest.getParsedPackage().getPackageName(); in reconcilePackages()
163 "Package " + parsedPackage.getPackageName() in reconcilePackages()
167 String msg = "System package " + parsedPackage.getPackageName() in reconcilePackages()
196 + signatureCheckPs.getPackageName()); in reconcilePackages()
200 var sharedUidName = allowList.get(signatureCheckPs.getPackageName()); in reconcilePackages()
203 var msg = "Non-preload app " + signatureCheckPs.getPackageName() in reconcilePackages()
231 if (androidPackage.getPackageName() != null in reconcilePackages()
232 && !androidPackage.getPackageName().equals( in reconcilePackages()
233 parsedPackage.getPackageName())) { in reconcilePackages()
[all …]
DInstallPackageHelper.java265 if (parsedPackage != null && "android".equals(parsedPackage.getPackageName())) { in commitReconciledScanResultLocked()
301 originalPkgSetting.getPackageName()); in commitReconciledScanResultLocked()
302 mPm.mTransferredPackages.add(originalPkgSetting.getPackageName()); in commitReconciledScanResultLocked()
304 mPm.mSettings.removeRenamedPackageLPw(parsedPackage.getPackageName()); in commitReconciledScanResultLocked()
328 parsedPackage.getPackageName()); in commitReconciledScanResultLocked()
330 mUpdateOwnershipHelper.isUpdateOwnershipDenylisted(parsedPackage.getPackageName()); in commitReconciledScanResultLocked()
428 mPm.mTransferredPackages.add(pkg.getPackageName()); in commitReconciledScanResultLocked()
442 ksms.removeAppKeySetDataLPw(pkg.getPackageName()); in commitReconciledScanResultLocked()
472 mUpdateOwnershipHelper.addToUpdateOwnerDenyList(pkgSetting.getPackageName(), in handleUpdateOwnerDenyList()
494 final String pkgName = pkg.getPackageName(); in commitPackageSettings()
[all …]
DSharedLibrariesImpl.java311 declaringPackage.getPackageName(),
316 return computer.getPackageStateInternal(declaringPackage.getPackageName());
369 packagesToDelete.add(new VersionedPackage(ps.getPkg().getPackageName(),
378 if (mDeletePackageHelper.deletePackageX(pkgToDelete.getPackageName(),
443 latestSharedLibraVersionLPr.getPackageName());
510 AndroidPackage pkgForCodePaths = mPm.mPackages.get(libInfo.getPackageName());
511 PackageSetting pkgSetting = mPm.mSettings.getPackageLPr(libInfo.getPackageName());
512 if (changingLib != null && changingLib.getPackageName().equals(libInfo.getPackageName())) {
518 || pkgForCodePaths.getPackageName().equals(changingLib.getPackageName())) {
611 mPm.getPackageSettingForMutation(sharedLibraryInfo.getPackageName());
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSELinuxMMACTest.java60 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoOptInToLatest()
71 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoOptInToR()
82 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoNoOptIn()
93 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoNoOptInButAlreadyLatest()
104 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoTargetingCurDevelopment()
115 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoNoOptInButAlreadyR()
126 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoOptInRButLater()
138 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoPreinstalledToSystem()
151 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoPreinstalledToSystemExt()
164 argThat(argument -> argument.packageName.equals(packageState.getPackageName())))) in getSeInfoPreinstalledToProduct()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/app/
DOverlayManagerPerfTest.java90 assertSetEnabled(sContext, overlay.getPackageName(), false); in tearDown()
94 assertSetEnabled(sContext, overlay.getPackageName(), false); in tearDown()
124 String packageName = sSmallOverlays.get(0).getPackageName(); in setEnabledWarmCache()
138 String packageName = sSmallOverlays.get(0).getPackageName(); in setEnabledColdCacheSmallOverlay()
153 String packageName = sLargeOverlays.get(0).getPackageName(); in setEnabledColdCacheLargeOverlay()
168 String packageName = sSmallOverlays.get(0).getPackageName(); in setEnabledDisable()
181 String packageName = sSmallOverlays.get(0).getPackageName(); in getStringOneSmallOverlay()
194 String packageName = sLargeOverlays.get(0).getPackageName(); in getStringOneLargeOverlay()
211 assertSetEnabled(sContext, overlay.getPackageName(), true); in getStringTenOverlays()
224 assertSetEnabled(sContext, overlay.getPackageName(), true); in getStringLargeTenOverlays()
/frameworks/base/services/tests/servicestests/src/com/android/server/camera/
DCameraServiceProxyTest.java50 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
55 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
61 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
66 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
73 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
85 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
95 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
/frameworks/base/services/core/java/com/android/server/rollback/
DAppDataRollbackHelper.java126 userId, rollbackId, packageRollbackInfo.getPackageName()); in doSnapshot()
132 packageRollbackInfo.getPackageName(), userId, rollbackId, flags); in doSnapshot()
135 + packageRollbackInfo.getPackageName() + ", userId: " + userId, ie); in doSnapshot()
153 userId, rollbackId, packageRollbackInfo.getPackageName()); in doRestoreOrWipe()
164 mInstaller.clearAppData(null, packageRollbackInfo.getPackageName(), in doRestoreOrWipe()
169 mInstaller.restoreAppDataSnapshot(packageRollbackInfo.getPackageName(), in doRestoreOrWipe()
177 + packageRollbackInfo.getPackageName() + " policy=" in doRestoreOrWipe()
193 mInstaller.destroyAppDataSnapshot(packageRollbackInfo.getPackageName(), user, in destroyAppDataSnapshot()
197 + packageRollbackInfo.getPackageName(), ie); in destroyAppDataSnapshot()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputDialogReceiverTest.java63 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled()
67 .createAndShow(eq(getContext().getPackageName()), eq(false), any(), any(), any()); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled()
75 intent.putExtra("Wrong Package Name Key", getContext().getPackageName()); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled()
100 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in launchMediaOutputBroadcastDialog_flagOff_broadcastDialogFactoryNotCalled()
114 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled()
120 .createAndShow(eq(getContext().getPackageName()), eq(true), any()); in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled()
128 intent.putExtra("Wrong Package Name Key", getContext().getPackageName()); in launchMediaOutputBroadcastDialog_WrongExtraKey_DialogBroadcastFactoryNotCalled()
153 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in unKnownAction_ExtraPackageName_FactoriesNotCalled()
154 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in unKnownAction_ExtraPackageName_FactoriesNotCalled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSensitiveNotificationProtectionControllerImpl.java99 mLogger.logProjectionStart(isSensitiveStateActive(), info.getPackageName());
103 packageUid = mPackageManager.getPackageUidAsUser(info.getPackageName(),
106 Log.w(LOG_TAG, "Package " + info.getPackageName() + " not found");
225 sessionProtectionExemptPackages.add(context.getPackageName()); in getSessionProtectionExemptPackages()
310 && mSessionProtectionExemptPackages.contains(info.getPackageName())) { in getNonExemptProjectionInfo()
311 Log.w(LOG_TAG, "Screen share protections exempt for package " + info.getPackageName()); in getNonExemptProjectionInfo()
313 } else if (info != null && canRecordSensitiveContent(info.getPackageName())) { in getNonExemptProjectionInfo()
314 Log.w(LOG_TAG, "Screen share protections exempt for package " + info.getPackageName() in getNonExemptProjectionInfo()
366 && sbn.getPackageName().equals(projection.getPackageName())) { in shouldProtectNotification()
375 && mNotificationProtectionExemptPackages.contains(sbn.getPackageName())) { in shouldProtectNotification()
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
DPlatformCompatPermissionsTest.java82 final String packageName = mContext.getPackageName(); in reportChange_noLogCompatChangePermission_throwsSecurityException()
91 final String packageName = mContext.getPackageName(); in reportChange_logCompatChangePermission_noThrow()
100 final String packageName = mContext.getPackageName(); in reportChangeByPackageName_noLogCompatChangePermission_throwsSecurityException()
109 final String packageName = mContext.getPackageName(); in reportChangeByPackageName_logCompatChangePermission_noThrow()
134 final String packageName = mContext.getPackageName(); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException()
144 final String packageName = mContext.getPackageName(); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException()
153 final String packageName = mContext.getPackageName(); in isChangeEnabled_readAndLogCompatChangeConfigPermission_noThrow()
162 final String packageName = mContext.getPackageName(); in isChangeEnabledByPackageName_noReadCompatConfigPermission_throwsSecurityException()
172 final String packageName = mContext.getPackageName(); in isChangeEnabledByPackageName_noLogompatConfigPermission_throwsSecurityException()
181 final String packageName = mContext.getPackageName(); in isChangeEnabledByPackageName_readAndLogCompatChangeConfigPermission_noThrow()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitScreenUtils.java64 public static String getPackageName(Intent intent) { in getPackageName() method in SplitScreenUtils
68 return intent.getComponent().getPackageName(); in getPackageName()
73 public static String getPackageName(PendingIntent pendingIntent) { in getPackageName() method in SplitScreenUtils
77 return getPackageName(pendingIntent.getIntent()); in getPackageName()
82 public static String getPackageName(int taskId, ShellTaskOrganizer taskOrganizer) { in getPackageName() method in SplitScreenUtils
84 return taskInfo != null ? getPackageName(taskInfo.baseIntent) : null; in getPackageName()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java145 mRealTestContext.getPackageName(), 0)); in markPackageAsInstalled()
164 ai.packageName = delegateCertInstaller.getPackageName(); in markDelegatedCertInstallerAsInstalled()
167 markPackageAsInstalled(delegateCertInstaller.getPackageName(), ai, in markDelegatedCertInstallerAsInstalled()
210 copyFromAdmin.getPackageName(), in setUpPackageManagerForFakeAdmin()
219 ai.packageName = admin.getPackageName(); in setUpPackageManagerForFakeAdmin()
223 eq(admin.getPackageName()), in setUpPackageManagerForFakeAdmin()
244 aci.packageName = admin.getPackageName(); in setUpPackageManagerForFakeAdmin()
254 doReturn(new String[] {admin.getPackageName()}).when(mServices.ipackageManager) in setUpPackageManagerForFakeAdmin()
256 doReturn(new String[] {admin.getPackageName()}).when(mServices.packageManager) in setUpPackageManagerForFakeAdmin()
259 markPackageAsInstalled(admin.getPackageName(), ai, UserHandle.getUserId(packageUid)); in setUpPackageManagerForFakeAdmin()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemAppOpsHelper.java68 callerIdentity.getPackageName(), in startOpNoThrow()
86 callerIdentity.getPackageName(), in finishOp()
102 callerIdentity.getPackageName()) == AppOpsManager.MODE_ALLOWED; in checkOpNoThrow()
117 callerIdentity.getPackageName(), in noteOp()
134 callerIdentity.getPackageName(), in noteOpNoThrow()
/frameworks/base/tests/ActivityManagerPerfTests/stub-app/src/com/android/stubs/am/
DTestService.java40 Log.i(TAG, getPackageName() + " onBind()"); in onBind()
48 Log.i(TAG, getPackageName() + " onStartCommand()"); in onStartCommand()
56 Log.i(TAG, getPackageName() + " onUnbind()"); in onUnbind()
62 b.putString(Constants.EXTRA_SOURCE_PACKAGE, getPackageName()); in onUnbind()

12345678910>>...52