Home
last modified time | relevance | path

Searched refs:appId (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java51 public int appId; field in ContextMap.Connection
54 Connection(int connId, String address, int appId) { in Connection() argument
57 this.appId = appId; in Connection()
290 void removeConnectionsByAppId(int appId) { in removeConnectionsByAppId() argument
295 if (connection.appId == appId) { in removeConnectionsByAppId()
407 int appId = -1; in getByConnId() local
413 appId = connection.appId; in getByConnId()
418 if (appId >= 0) { in getByConnId()
419 return getById(appId); in getByConnId()
436 if (connection.address.equalsIgnoreCase(address) && connection.appId == id) { in connIdByAddress()
[all …]
DGattService.java2474 for (Integer appId : mClientMap.getAllAppsIds()) { in unregAll()
2476 Log.d(TAG, "unreg:" + appId); in unregAll()
2478 unregisterClient(appId, attributionSource); in unregAll()
3815 for (Integer appId : mScannerMap.getAllAppsIds()) { in dumpRegisterId()
3816 println(sb, " app_if: " + appId + ", appName: " + mScannerMap.getById(appId).name); in dumpRegisterId()
3819 for (Integer appId : mClientMap.getAllAppsIds()) { in dumpRegisterId()
3820 println(sb, " app_if: " + appId + ", appName: " + mClientMap.getById(appId).name); in dumpRegisterId()
3823 for (Integer appId : mServerMap.getAllAppsIds()) { in dumpRegisterId()
3824 println(sb, " app_if: " + appId + ", appName: " + mServerMap.getById(appId).name); in dumpRegisterId()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java476 final int appId = UserHandle.getAppId(uid); in onPackageAdded() local
477 final Boolean permission = highestPermissionForUid(mApps.get(appId), packageName); in onPackageAdded()
478 if (permission != mApps.get(appId)) { in onPackageAdded()
479 mApps.put(appId, permission); in onPackageAdded()
482 apps.put(appId, permission); in onPackageAdded()
497 mAllApps.add(appId); in onPackageAdded()
554 final int appId = UserHandle.getAppId(uid); in onPackageRemoved() local
555 if (permission == mApps.get(appId)) { in onPackageRemoved()
559 mApps.put(appId, permission); in onPackageRemoved()
560 apps.put(appId, permission); in onPackageRemoved()
[all …]
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DXmlDoc.java63 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()
/packages/services/Car/cpp/evs/manager/1.1/
DEnumerator.cpp128 const auto appId = ipc->getCallingUid() % AID_USER_OFFSET; in checkPermission() local
130 if (AID_AUTOMOTIVE_EVS != appId && AID_ROOT != appId && AID_SYSTEM != appId) { in checkPermission()
132 if (AID_AUTOMOTIVE_EVS != appId && AID_SYSTEM != appId) { in checkPermission()
137 << ", appId = " << appId; in checkPermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DSystemShellRoleBehavior.java42 int appId = UserHandle.getAppId(uid); in isPackageQualified() local
43 return appId == Process.SHELL_UID; in isPackageQualified()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DAndroidUtils.kt78 fun UserHandle.getUid(appId: Int): Int { in getUid()
79 return identifier * 100000 + (appId % 100000) in getUid()
/packages/services/Car/service/src/com/android/car/watchdog/
DPackageInfoHandler.java125 int appId = UserHandle.getAppId(uid); in getPackageInfo() local
126 packageInfo.uidType = appId >= Process.FIRST_APPLICATION_UID ? UidType.APPLICATION : in getPackageInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DInstalledAppListerTest.java176 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/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java169 int appId = cursor.getInt(COLUMN_APPID); in getDictionary() local
173 String out = name + SEPARATOR + frequency + SEPARATOR + locale + SEPARATOR + appId in getDictionary()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/
DImsEntitlementPollingService.java369 private void writeStateLogByApps(int appId, int appResult) { in writeStateLogByApps() argument
375 appId, in writeStateLogByApps()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java219 int appId = 987; in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated() local
223 packageIntent.putExtra(Intent.EXTRA_UID, UserHandle.getUid(userId, appId)); in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java3063 int appId = 674; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local
3070 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3073 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3153 int appId = 674; in testHandleUserSwitchRemovesOldUserPrivateNetworks() local
3158 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3161 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3228 int appId = 674; in testHandleUserSwitchRemovesOldUserEphemeralNetworks() local
3295 int appId = 674; in testHandleUserSwitchWithNoOldUserPrivateNetworks() local
3300 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchWithNoOldUserPrivateNetworks()
3342 int appId = 674; in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore() local
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DBackend.java264 native void nativeSetSourceInfo(String appName, String version, String appId); in nativeSetSourceInfo() argument
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DVpnTest.java1255 Integer appId = packages.get(appName); in setMockedPackages()
1256 if (appId == null) throw new PackageManager.NameNotFoundException(appName); in setMockedPackages()
1257 return UserHandle.getUid(userId, appId); in setMockedPackages()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java1439 private static int getUid(int appId) { in getUid() argument
1440 return UserHandle.getUid(UserHandle.myUserId(), appId); in getUid()