/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | PermissionMonitor.java | 289 final int appId = app.applicationInfo != null in updateAllApps() local 291 if (appId < 0) { in updateAllApps() 294 mAllApps.add(appId); in updateAllApps() 326 final int appId = app.applicationInfo != null in makeAppIdsTrafficPerm() local 328 if (appId < 0) { in makeAppIdsTrafficPerm() 333 final int permission = appIdsPerm.get(appId) | otherNetdPerms; in makeAppIdsTrafficPerm() 334 appIdsPerm.put(appId, permission); in makeAppIdsTrafficPerm() 335 if (hasSdkSandbox(appId)) { in makeAppIdsTrafficPerm() 336 appIdsPerm.put(sProcessShim.toSdkSandboxUid(appId), permission); in makeAppIdsTrafficPerm() 361 final int appId = userAppIds.keyAt(i); in makeAppIdsTrafficPermForAllUsers() local [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | ContextMap.java | 62 public int appId; field in ContextMap.Connection 65 Connection(int connId, String address, int appId) { in Connection() argument 68 this.appId = appId; in Connection() 346 void removeConnectionsByAppId(int appId) { in removeConnectionsByAppId() argument 351 if (connection.appId == appId) { in removeConnectionsByAppId() 592 int appId = -1; in getByConnId() local 598 appId = connection.appId; in getByConnId() 603 if (appId >= 0) { in getByConnId() 604 return getById(appId); in getByConnId() 621 if (connection.address.equalsIgnoreCase(address) && connection.appId == id) { in connIdByAddress() [all …]
|
D | GattService.java | 3231 for (Integer appId : mClientMap.getAllAppsIds()) { in unregAll() 3233 Log.d(TAG, "unreg:" + appId); in unregAll() 3235 unregisterClient(appId, attributionSource); in unregAll() 4651 for (Integer appId : mScannerMap.getAllAppsIds()) { in dumpRegisterId() 4652 println(sb, " app_if: " + appId + ", appName: " + mScannerMap.getById(appId).name); in dumpRegisterId() 4655 for (Integer appId : mClientMap.getAllAppsIds()) { in dumpRegisterId() 4656 println(sb, " app_if: " + appId + ", appName: " + mClientMap.getById(appId).name); in dumpRegisterId() 4659 for (Integer appId : mServerMap.getAllAppsIds()) { in dumpRegisterId() 4660 println(sb, " app_if: " + appId + ", appName: " + mServerMap.getById(appId).name); in dumpRegisterId()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 567 for (final int appId : (int[]) args[1]) { in BpfMapMonitor() 568 mAppIdsTrafficPermission.put(appId, permission); in BpfMapMonitor() 575 for (final int appId : appIds) { in expectTrafficPerm() 576 if (mAppIdsTrafficPermission.get(appId, DOES_NOT_EXIST) == DOES_NOT_EXIST) { in expectTrafficPerm() 577 fail("appId " + appId + " does not exist."); in expectTrafficPerm() 579 if (mAppIdsTrafficPermission.get(appId) != permission) { in expectTrafficPerm() 580 fail("appId " + appId + " has wrong permission: " in expectTrafficPerm() 581 + mAppIdsTrafficPermission.get(appId)); in expectTrafficPerm() 583 if (hasSdkSandbox(appId)) { in expectTrafficPerm() 584 int sdkSandboxAppId = mProcessShim.toSdkSandboxUid(appId); in expectTrafficPerm() [all …]
|
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/ |
D | XmlDoc.java | 63 public Optional<String> get(String node, String key, @Nullable String appId) { in get() argument 64 Map<String, String> paramsMap = mNodesMap.get(combineKeyWithAppId(node, appId)); in get() 68 private String combineKeyWithAppId(String node, @Nullable String appId) { in combineKeyWithAppId() argument 69 return APPLICATION.equals(node) && !TextUtils.isEmpty(appId) ? node + "_" + appId : node; in combineKeyWithAppId()
|
D | MetricsLogger.java | 44 public void write(int appId, int appResult) { in write() argument 50 appId, in write()
|
/packages/modules/Connectivity/netd/ |
D | BpfHandler.cpp | 121 uint32_t appId = uid % PER_USER_RANGE; in hasUpdateDeviceStatsPermission() local 122 auto permission = mUidPermissionMap.readValue(appId); in hasUpdateDeviceStatsPermission() 126 return ((appId == AID_ROOT) || (appId == AID_SYSTEM) || (appId == AID_DNS)); in hasUpdateDeviceStatsPermission()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/ |
D | ValidationHelper.java | 46 public static boolean isAppIdValid(@AppIdInt int appId) { in isAppIdValid() argument 47 return !(appId / UserHandle.PER_USER_RANGE != 0 || appId < 0); in isAppIdValid()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/appsearchtypes/ |
D | ContactPoint.java | 148 public Builder addAppId(@NonNull String appId) { in addAppId() argument 149 Objects.requireNonNull(appId); in addAppId() 150 mAppIds.add(appId); in addAppId()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | SystemShellRoleBehavior.java | 42 int appId = UserHandle.getAppId(uid); in isPackageQualified() local 43 return appId == Process.SHELL_UID; in isPackageQualified()
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/appsearchtypes/ |
D | ContactPointTest.java | 49 for (String appId : appIds) { in testBuilder() 50 contactPointBuilder.addAppId(appId); in testBuilder()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | AndroidUtils.kt | 78 fun UserHandle.getUid(appId: Int): Int { in getUid() 79 return identifier * 100000 + (appId % 100000) in getUid()
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/fakes/android/bluetooth/ |
D | IBluetoothGatt.java | 53 void registerClient(ParcelUuid appId, IBluetoothGattCallback callback); in registerClient() argument 93 void registerServer(ParcelUuid appId, IBluetoothGattServerCallback callback); in registerServer() argument
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | VendorServiceControllerTest.java | 243 int appId = 123; in packageChanged_attemptsRebind() local 245 packageIntent.putExtra(Intent.EXTRA_UID, UserHandle.getUid(FG_USER_ID, appId)); in packageChanged_attemptsRebind() 281 int appId = 123; in packageRemoved_unbindsTheService() local 283 packageIntent.putExtra(Intent.EXTRA_UID, UserHandle.getUid(FG_USER_ID, appId)); in packageRemoved_unbindsTheService()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsAccess.java | 125 final int appId = UserHandle.getAppId(callingUid); in checkAccessLevel() local 132 || appId == Process.SYSTEM_UID || isNetworkStack) { in checkAccessLevel()
|
/packages/services/Car/cpp/evs/manager/1.1/ |
D | Enumerator.cpp | 97 const auto appId = ipc->getCallingUid() % AID_USER_OFFSET; in processHasPermissionsForEvs() local 98 if (AID_AUTOMOTIVE_EVS != appId && AID_ROOT != appId && AID_SYSTEM != appId) { in processHasPermissionsForEvs() 101 << ", appId = " << appId; in processHasPermissionsForEvs()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | InstalledAppListerTest.java | 176 public static boolean checkAppFound(List<UserAppInfo> mInstalledAppList, String appId, in checkAppFound() argument 179 if (appId.equals(info.appInfo.packageName) && (info.userInfo.id == userId)) { in checkAppFound()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | PersonBuilderHelper.java | 179 public PersonBuilderHelper addAppIdToPerson(@NonNull String label, @NonNull String appId) { in addAppIdToPerson() argument 181 .addAppId(Objects.requireNonNull(appId)); in addAppIdToPerson()
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | DictionaryBackupAgent.java | 169 int appId = cursor.getInt(COLUMN_APPID); in getDictionary() local 173 String out = name + SEPARATOR + frequency + SEPARATOR + locale + SEPARATOR + appId in getDictionary()
|
/packages/modules/Connectivity/service/native/ |
D | TrafficController.cpp | 117 uint32_t appId = uid % PER_USER_RANGE; in hasUpdateDeviceStatsPermission() local 118 return ((appId == AID_ROOT) || (appId == AID_SYSTEM) || in hasUpdateDeviceStatsPermission() 119 mPrivilegedUser.find(appId) != mPrivilegedUser.end()); in hasUpdateDeviceStatsPermission()
|
/packages/modules/Connectivity/bpf_progs/ |
D | netd.c | 438 uint32_t appId = (gid_uid & 0xffffffff) % AID_USER_OFFSET; // == PER_USER_RANGE == 100000 variable 439 uint8_t* permissions = bpf_uid_permission_map_lookup_elem(&appId);
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | PackageInfoHandler.java | 228 int appId = UserHandle.getAppId(uid); in getPackageInfo() local 229 packageInfo.uidType = appId >= Process.FIRST_APPLICATION_UID ? UidType.APPLICATION : in getPackageInfo()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/ |
D | GattServiceTest.java | 681 int appId = 1; in unregAll() local 683 appIds.add(appId); in unregAll() 687 verify(mClientMap).remove(appId); in unregAll()
|
/packages/modules/Bluetooth/system/binder/android/bluetooth/ |
D | IBluetoothGatt.aidl | 102 …void registerClient(in ParcelUuid appId, in IBluetoothGattCallback callback, boolean eatt_support,… in registerClient() argument 151 …void registerServer(in ParcelUuid appId, in IBluetoothGattServerCallback callback, boolean eatt_su… in registerServer() argument
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/bluetooth/ |
D | IBluetoothGattImpl.java | 92 public void registerClient(ParcelUuid appId, final IBluetoothGattCallback callback) { in registerClient() argument 428 public void registerServer(ParcelUuid appId, final IBluetoothGattServerCallback callback) { in registerServer() argument
|