/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | PermissionUtilsTest.java | 110 final String packageName = context.getPackageName(); in testSelfPermissions() local 139 final String packageName = context.getPackageName(); in testNoIsolatedStorageIsByDefaultDenied() local 145 String packageName = TEST_APP_WITH_STORAGE_PERMS.getPackageName(); in testDefaultPermissionsOnTestAppWithStoragePerms() local 153 checkIsLegacyStorageGranted(getContext(), testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms() local 157 packageName, null)).isFalse(); in testDefaultPermissionsOnTestAppWithStoragePerms() local 159 checkPermissionAccessMtp(getContext(), TEST_APP_PID, testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms() local 162 checkPermissionWriteStorage(getContext(), TEST_APP_PID, testAppUid, packageName, in testDefaultPermissionsOnTestAppWithStoragePerms() local 172 String packageName = TEST_APP_WITHOUT_PERMS.getPackageName(); in testDefaultPermissionsOnTestAppWithoutPerms() local 180 checkPermissionManager(getContext(), TEST_APP_PID, testAppUid, packageName, in testDefaultPermissionsOnTestAppWithoutPerms() local 185 getContext(), TEST_APP_PID, testAppUid, packageName, null)) in testDefaultPermissionsOnTestAppWithoutPerms() local [all …]
|
/packages/modules/StatsD/aidl/android/os/ |
D | IStatsManagerService.aidl | 37 in String packageName); in setDataFetchOperation() 44 void removeDataFetchOperation(long configId, in String packageName); in removeDataFetchOperation() 54 long[] setActiveConfigsChangedOperation(in PendingIntent pendingIntent, in String packageName); in setActiveConfigsChangedOperation() 61 void removeActiveConfigsChangedOperation(in String packageName); in removeActiveConfigsChangedOperation() 79 in String packageName); in setBroadcastSubscriber() 88 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName); in unsetBroadcastSubscriber() 102 byte[] getMetadata(in String packageName); in getMetadata() 110 byte[] getData(in long key, in String packageName); in getData() 120 void addConfiguration(in long configId, in byte[] config, in String packageName); in addConfiguration() 128 void removeConfiguration(in long configId, in String packageName); in removeConfiguration()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | UserDeniedManager.java | 70 public boolean isDeniedOnce(@NonNull String roleName, @NonNull String packageName) { in isDeniedOnce() 80 public void setDeniedOnce(@NonNull String roleName, @NonNull String packageName) { in setDeniedOnce() 92 public boolean isDeniedAlways(@NonNull String roleName, @NonNull String packageName) { in isDeniedAlways() 102 public void setDeniedAlways(@NonNull String roleName, @NonNull String packageName) { in setDeniedAlways() 112 public void clearDenied(@NonNull String roleName, @NonNull String packageName) { in clearDenied() 122 public void clearPackageDenied(@NonNull String packageName) { in clearPackageDenied() 130 private static String getKey(@NonNull String packageName, boolean always) { in getKey() 135 private boolean isDenied(@NonNull String roleName, @NonNull String packageName, in isDenied() 141 private void setDenied(@NonNull String roleName, @NonNull String packageName, boolean always, in setDenied()
|
D | Permissions.java | 99 public static boolean grant(@NonNull String packageName, @NonNull List<String> permissions, in grant() 206 private static boolean grantSingle(@NonNull String packageName, @NonNull String permission, in grantSingle() 277 private static boolean isPermissionAndAppOpGranted(@NonNull String packageName, in isPermissionAndAppOpGranted() 333 private static boolean grantPermissionAndAppOp(@NonNull String packageName, in grantPermissionAndAppOp() 395 public static boolean revoke(@NonNull String packageName, @NonNull List<String> permissions, in revoke() 457 private static boolean revokeSingle(@NonNull String packageName, @NonNull String permission, in revokeSingle() 501 private static boolean revokePermissionAndAppOp(@NonNull String packageName, in revokePermissionAndAppOp() 559 private static PackageInfo getPackageInfo(@NonNull String packageName, in getPackageInfo() 565 private static PackageInfo getFactoryPackageInfo(@NonNull String packageName, in getFactoryPackageInfo() 571 private static PackageInfo getPackageInfo(@NonNull String packageName, int extraFlags, in getPackageInfo() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CarModeTracker.java | 48 public CarModeApp(@NonNull String packageName) { in CarModeApp() 52 public CarModeApp(int priority, @NonNull String packageName) { in CarModeApp() 56 … private CarModeApp(boolean automotiveProjection, int priority, @NonNull String packageName) { in CarModeApp() 83 public void setPackageName(String packageName) { in setPackageName() 112 public void handleEnterCarMode(@IntRange(from = 0) int priority, @NonNull String packageName) { in handleEnterCarMode() 136 public void handleExitCarMode(@IntRange(from = 0) int priority, @NonNull String packageName) { in handleExitCarMode() 156 public void handleSetAutomotiveProjection(@NonNull String packageName) { in handleSetAutomotiveProjection() 204 public void forceRemove(@NonNull String packageName) { in forceRemove()
|
D | RoleManagerAdapter.java | 52 void setTestDefaultCallRedirectionApp(String packageName); in setTestDefaultCallRedirectionApp() 67 void setTestDefaultCallScreeningApp(String packageName); in setTestDefaultCallScreeningApp() 88 void setTestDefaultDialer(String packageName); in setTestDefaultDialer() 102 void addOrRemoveTestCallCompanionApp(String packageName, boolean isAdded); in addOrRemoveTestCallCompanionApp() 116 String getApplicationLabelForPackageName(String packageName); in getApplicationLabelForPackageName()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 82 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionManager() 106 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionWriteStorage() 113 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionReadStorage() 124 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionAccessMediaLocation() 134 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionManageMedia() 140 String packageName, @Nullable String attributionTag) { in checkIsLegacyStorageGranted() 150 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionReadAudio() 160 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionWriteAudio() 171 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionReadVideo() 181 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionWriteVideo() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/ |
D | PackageUtils.java | 46 public static PackageInfo getPackageInfo(@NonNull String packageName, int extraFlags, in getPackageInfo() 65 public static boolean isSystemPackage(@NonNull String packageName, @NonNull Context context) { in isSystemPackage() 78 public static ApplicationInfo getApplicationInfo(@NonNull String packageName, in getApplicationInfo() 100 public static ApplicationInfo getApplicationInfoAsUser(@NonNull String packageName, in getApplicationInfoAsUser()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | IWifiManager.aidl | 66 …ParceledListSlice getConfiguredNetworks(String packageName, String featureId, boolean callerNetwor… in getConfiguredNetworks() 68 ParceledListSlice getPrivilegedConfiguredNetworks(String packageName, String featureId); in getPrivilegedConfiguredNetworks() 76 int addOrUpdateNetwork(in WifiConfiguration config, String packageName); in addOrUpdateNetwork() 78 …ger.AddNetworkResult addOrUpdateNetworkPrivileged(in WifiConfiguration config, String packageName); in addOrUpdateNetworkPrivileged() 80 boolean addOrUpdatePasspointConfiguration(in PasspointConfiguration config, String packageName); in addOrUpdatePasspointConfiguration() 82 boolean removePasspointConfiguration(in String fqdn, String packageName); in removePasspointConfiguration() 84 List<PasspointConfiguration> getPasspointConfigurations(in String packageName); in getPasspointConfigurations() 92 boolean removeNetwork(int netId, String packageName); in removeNetwork() 94 boolean removeNonCallerConfiguredNetworks(String packageName); in removeNonCallerConfiguredNetworks() 96 boolean enableNetwork(int netId, boolean disableOthers, String packageName); in enableNetwork() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | VoicemailPermissions.java | 107 public boolean packageHasOwnVoicemailAccess(String packageName) { in packageHasOwnVoicemailAccess() 114 public boolean packageHasReadAccess(String packageName) { in packageHasReadAccess() 119 public boolean packageHasWriteAccess(String packageName) { in packageHasWriteAccess() 124 private boolean packageHasPermission(String packageName, String permission) { in packageHasPermission() 147 private boolean packageHasCarrierPrivileges(String packageName) { in packageHasCarrierPrivileges() 153 private static boolean packageHasCarrierPrivileges(TelephonyManager tm, String packageName) { in packageHasCarrierPrivileges()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/service/ |
D | RoleControllerServiceImpl.java | 112 String packageName = currentPackageNames.get(currentPackageNamesIndex); in onGrantDefaultRoles() local 144 String packageName = packageNamesToAdd.get(packageNamesToAddIndex); in onGrantDefaultRoles() local 176 String packageName = currentPackageNames.get(currentPackageNamesIndex); in onGrantDefaultRoles() local 190 public boolean onAddRoleHolder(@NonNull String roleName, @NonNull String packageName, in onAddRoleHolder() 249 public boolean onRemoveRoleHolder(@NonNull String roleName, @NonNull String packageName, in onRemoveRoleHolder() 317 private boolean addRoleHolderInternal(@NonNull Role role, @NonNull String packageName, in addRoleHolderInternal() 324 private boolean addRoleHolderInternal(@NonNull Role role, @NonNull String packageName, in addRoleHolderInternal() 340 private boolean removeRoleHolderInternal(@NonNull Role role, @NonNull String packageName, in removeRoleHolderInternal() 368 String packageName = packageNames.get(i); in clearRoleHoldersInternal() local 412 @NonNull String packageName) { in onIsApplicationQualifiedForRole() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | BaseWifiService.java | 89 public ParceledListSlice getConfiguredNetworks(String packageName, String featureId) { in getConfiguredNetworks() 94 public ParceledListSlice getConfiguredNetworks(String packageName, String featureId, in getConfiguredNetworks() 100 public ParceledListSlice getPrivilegedConfiguredNetworks(String packageName, String featureId) { in getPrivilegedConfiguredNetworks() 123 public int addOrUpdateNetwork(WifiConfiguration config, String packageName) { in addOrUpdateNetwork() 129 String packageName) { in addOrUpdateNetworkPrivileged() 135 PasspointConfiguration config, String packageName) { in addOrUpdatePasspointConfiguration() 140 public boolean removePasspointConfiguration(String fqdn, String packageName) { in removePasspointConfiguration() 145 public List<PasspointConfiguration> getPasspointConfigurations(String packageName) { in getPasspointConfigurations() 165 public boolean removeNetwork(int netId, String packageName) { in removeNetwork() 170 public boolean removeNonCallerConfiguredNetworks(String packageName) { in removeNonCallerConfiguredNetworks() [all …]
|
/packages/modules/Permission/framework-s/java/android/app/role/ |
D | IRoleManager.aidl | 30 boolean isRoleHeld(in String roleName, in String packageName); in isRoleHeld() 34 void addRoleHolderAsUser(in String roleName, in String packageName, int flags, int userId, in addRoleHolderAsUser() 37 void removeRoleHolderAsUser(in String roleName, in String packageName, int flags, int userId, in removeRoleHolderAsUser() 54 boolean addRoleHolderFromController(in String roleName, in String packageName); in addRoleHolderFromController() 56 boolean removeRoleHolderFromController(in String roleName, in String packageName); in removeRoleHolderFromController() 58 List<String> getHeldRolesFromController(in String packageName); in getHeldRolesFromController() 62 boolean setBrowserRoleHolder(String packageName, int userId); in setBrowserRoleHolder()
|
D | IRoleController.aidl | 28 void onAddRoleHolder(in String roleName, in String packageName, int flags, in onAddRoleHolder() 31 void onRemoveRoleHolder(in String roleName, in String packageName, int flags, in onRemoveRoleHolder() 36 void isApplicationQualifiedForRole(in String roleName, in String packageName, in isApplicationQualifiedForRole() 39 void isApplicationVisibleForRole(in String roleName, in String packageName, in isApplicationVisibleForRole()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowApplicationPackageManager.java | 89 protected int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() 95 protected void deleteApplicationCacheFiles(String packageName, IPackageDataObserver observer) { in deleteApplicationCacheFiles() 111 protected ApplicationInfo getApplicationInfoAsUser(String packageName, int flags, int userId) in getApplicationInfoAsUser() 125 protected void clearPackagePreferredActivities(String packageName) { in clearPackagePreferredActivities() 132 List<ComponentName> outActivities, String packageName) { in getPreferredActivities() 162 protected boolean setDefaultBrowserPackageNameAsUser(String packageName, int userId) { in setDefaultBrowserPackageNameAsUser() 169 protected int getIntentVerificationStatusAsUser(String packageName, int userId) { in getIntentVerificationStatusAsUser() 177 protected boolean updateIntentVerificationStatusAsUser(String packageName, int status, in updateIntentVerificationStatusAsUser() 189 public void setPermissionControllerPackageName(String packageName) { in setPermissionControllerPackageName()
|
D | ShadowDevicePolicyManager.java | 54 protected boolean packageHasActiveAdmins(String packageName) { in packageHasActiveAdmins() 58 public void setPackageHasActiveAdmins(String packageName, boolean hasActiveAdmins) { in setPackageHasActiveAdmins() 67 protected boolean isUninstallInQueue(String packageName) { in isUninstallInQueue()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 97 String packageName = "android"; in androidPackagesIgnored() local 110 String packageName = mContext.getPackageName(); in selfPackageIgnored() local 123 String packageName = "test.package"; in packagesNotRequestingPermissionIgnored() local 139 String packageName = "test.package"; in unavailablePackageIgnored() local 154 String packageName = "test.package"; in loadsAppOpsExtraInfo_modeAllowed_isPermissible() local 169 String packageName = "test.package"; in loadsAppOpsExtraInfo_modeDefault_isPermissible() local 184 String packageName = "test.package"; in loadsAppOpsExtraInfo_modeIgnored_isNotPermissible() local 255 String packageName = "test.package"; in appEntryNotIncluded_extraInfoCleared() local 266 private PackageInfo createPackageInfo(String packageName, int uid) { in createPackageInfo()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/ |
D | PictureInPictureDetails.java | 94 static void setEnterPipStateForPackage(Context context, int uid, String packageName, in setEnterPipStateForPackage() 105 static boolean getEnterPipStateForPackage(Context context, int uid, String packageName) { in getEnterPipStateForPackage() 114 public static int getPreferenceSummary(Context context, int uid, String packageName) { in getPreferenceSummary() 122 void logSpecialPermissionChange(boolean newState, String packageName) { in logSpecialPermissionChange() 132 packageName, in logSpecialPermissionChange() local
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicenseProvider.java | 91 String packageName = uri.getPathSegments().get(0); in openFile() local 127 static boolean isCachedHtmlFileOutdated(Context context, String packageName) in isCachedHtmlFileOutdated() 137 static AssetManager getPackageAssetManager(PackageManager packageManager, String packageName) in getPackageAssetManager() 145 static Uri getUriForPackage(String packageName) { in getUriForPackage() 178 private static File getCachedFileDirectory(Context context, String packageName) { in getCachedFileDirectory() 182 private static File getCachedHtmlFile(Context context, String packageName) { in getCachedHtmlFile() 186 private static PackageInfo getPackageInfo(Context context, String packageName) in getPackageInfo()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/ |
D | ResolveInfoBuilder.java | 39 public ResolveInfoBuilder(String packageName) { in ResolveInfoBuilder() 43 public ResolveInfoBuilder setActivity(String packageName, String className) { in setActivity() 51 String packageName, String className, String authority, boolean isSystemApp) { in setProvider()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | ResolveInfoBuilder.java | 39 public ResolveInfoBuilder(String packageName) { in ResolveInfoBuilder() 43 public ResolveInfoBuilder setActivity(String packageName, String className) { in setActivity() 51 String packageName, String className, String authority, boolean isSystemApp) { in setProvider()
|
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/testutils/ |
D | OverlayManagerMocks.java | 45 final String packageName; field in OverlayManagerMocks.MockOverlay 49 public MockOverlay(String packageName, String targetPackage, String category) { in MockOverlay() 67 private boolean setEnabled(String packageName, boolean enable, int userId) { in setEnabled() 85 public void addOverlay(String packageName, String targetPackage, String category, in addOverlay()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsMockPackageManager.java | 54 public void addPackage(int packageUid, String packageName) { in addPackage() 60 final String packageName = mForward.remove(packageUid); in removePackage() local 73 final String packageName = mForward.get(uid); in getPackagesForUid() local 84 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() 106 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/toast/ |
D | CarToastUI.java | 67 public void showToast(int uid, String packageName, IBinder token, CharSequence text, in showToast() 86 private boolean isAllowListed(String packageName) { in isAllowListed() 90 private boolean isSystemPrivilegedOrPlatformKey(String packageName) { in isSystemPrivilegedOrPlatformKey() 99 private PackageInfo getPackageInfo(String packageName) { in getPackageInfo()
|
/packages/services/Car/car-lib/src/android/car/content/pm/ |
D | ICarPackageManager.aidl | 25 void setAppBlockingPolicy(in String packageName, in CarAppBlockingPolicy policy, int flags) = 0; in setAppBlockingPolicy() 26 boolean isActivityDistractionOptimized(in String packageName, in String className) = 1; in isActivityDistractionOptimized() 27 boolean isServiceDistractionOptimized(in String packageName, in String className) = 2; in isServiceDistractionOptimized()
|