Home
last modified time | relevance | path

Searched refs:multiuser_get_app_id (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DUserHandleTest.java66 EXPECT_EQ(0, multiuser_get_app_id(0)); in testSplitApp()
67 EXPECT_EQ(1000, multiuser_get_app_id(1000)); in testSplitApp()
68 EXPECT_EQ(10000, multiuser_get_app_id(10000)); in testSplitApp()
69 EXPECT_EQ(50000, multiuser_get_app_id(50000)); in testSplitApp()
70 EXPECT_EQ(0, multiuser_get_app_id(1000000)); in testSplitApp()
71 EXPECT_EQ(1000, multiuser_get_app_id(1001000)); in testSplitApp()
72 EXPECT_EQ(10000, multiuser_get_app_id(1010000)); in testSplitApp()
73 EXPECT_EQ(50000, multiuser_get_app_id(1050000)); in testSplitApp()
120 private static int multiuser_get_app_id(int uid) { in multiuser_get_app_id() method in UserHandleTest
/frameworks/av/media/utils/include/mediautils/
DServiceUtilities.h48 return multiuser_get_app_id(uid) < AID_APP_START; in isServiceUid()
66 return multiuser_get_app_id(uid) == AID_SYSTEM || uid == AID_AUDIOSERVER; in isAudioServerOrSystemServerUid()
72 return multiuser_get_app_id(uid) == AID_SYSTEM || uid == AID_AUDIOSERVER in isAudioServerOrMediaServerOrSystemServerOrRootUid()
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp709 auto appId = multiuser_get_app_id(read.uid); in onPageReadsWithUid()
761 auto appId = multiuser_get_app_id(read.uid); in traceRead()
/frameworks/native/cmds/servicemanager/
DServiceManager.cpp46 uid_t appid = multiuser_get_app_id(uid); in is_multiuser_uid_isolated()
418 if (multiuser_get_app_id(ctx.uid) >= AID_APP) { in addService()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp1316 appid_t appId = multiuser_get_app_id(uid); in isolateAppData()
1655 appid_t appId = multiuser_get_app_id(uid); in isolateJitProfile()
1945 appid_t appId = multiuser_get_app_id(uid); in SpecializeCommon()
2223 if (multiuser_get_app_id(uid) == AID_BLUETOOTH) { in CalculateCapabilities()
2231 if (multiuser_get_app_id(uid) == AID_NETWORK_STACK) { in CalculateCapabilities()
/frameworks/native/services/sensorservice/
DSensorService.h538 return multiuser_get_app_id(uid) == AID_SYSTEM || uid == AID_AUDIOSERVER; in isAudioServerOrSystemServerUid()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp1459 int32_t gid = multiuser_get_cache_gid(multiuser_get_user_id(uid), multiuser_get_app_id(uid)); in get_cache_gid()
2176 if (multiuser_get_app_id(uid) == AID_MEDIA_RW) { in freeCache()
2177 uid = (multiuser_get_app_id(p->fts_statp->st_gid) - AID_EXT_GID_START) in freeCache()
2185 multiuser_get_user_id(uid), multiuser_get_app_id(uid), uuidString)); in freeCache()
2502 int32_t user_uid = multiuser_get_app_id(s.st_uid); in collectManualStatsForUser()
2575 return ((int32_t)multiuser_get_app_id(s.st_uid) == appId); in ownsExternalStorage()
3986 CHECK_ARGUMENT_APP_ID(multiuser_get_app_id(uid)); in createFsveritySetupAuthToken()
Dutils.cpp488 int32_t user_uid = multiuser_get_app_id(uid); in calculate_tree_size()
489 int32_t user_gid = multiuser_get_app_id(gid); in calculate_tree_size()
/frameworks/av/media/libmediametrics/
DMediaMetricsItem.cpp347 uid_t appid = multiuser_get_app_id(uid); in isEnabled()
/frameworks/native/libs/ui/
DGralloc4.cpp1016 uid_t aid = multiuser_get_app_id(getuid()); in Gralloc4Allocator()
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp3587 if (multiuser_get_app_id(calling_uid) == AID_SHELL || !CalledByApi()) { in onUiIntensiveBugreportDumpsFinished()
3598 if (multiuser_get_app_id(calling_uid) == AID_SHELL || in MaybeCheckUserConsent()
3687 if (multiuser_get_app_id(calling_uid) == AID_SHELL || (options_->skip_user_consent in CopyBugreportIfUserConsented()
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp498 int32_t externalStorageAppId = multiuser_get_app_id(s.st_uid); in TEST_F()