/frameworks/base/core/tests/coretests/src/android/os/ |
D | ProcessTest.java | 27 assertEquals(android.os.Process.SYSTEM_UID, Process.getUidForName("system")); in testProcessGetUidFromName() 28 assertEquals(Process.BLUETOOTH_UID, Process.getUidForName("bluetooth")); in testProcessGetUidFromName() 29 assertEquals(Process.FIRST_APPLICATION_UID, Process.getUidForName("u0_a0")); in testProcessGetUidFromName() 30 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system")); in testProcessGetUidFromName() 31 assertEquals(UserHandle.getUid(2, Process.FIRST_ISOLATED_UID), in testProcessGetUidFromName() 32 Process.getUidForName("u2_i0")); in testProcessGetUidFromName() 33 assertEquals(UserHandle.getUid(3, Process.FIRST_APPLICATION_UID + 100), in testProcessGetUidFromName() 34 Process.getUidForName("u3_a100")); in testProcessGetUidFromName() 39 assertEquals(-1, Process.getUidForName("u2a_foo")); in testProcessGetUidFromNameFailure() 40 assertEquals(-1, Process.getUidForName("u1_abcdef")); in testProcessGetUidFromNameFailure() [all …]
|
D | BinderThreadPriorityTest.java | 77 mSavedPriority = Process.getThreadPriority(Process.myTid()); in setUp() 78 Process.setThreadPriority(mSavedPriority); // To realign priority & cgroup, if needed in setUp() 87 Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); in tearDown() 88 Process.setThreadPriority(mSavedPriority); in tearDown() 89 assertEquals(mSavedPriority, Process.getThreadPriority(Process.myTid())); in tearDown() 97 String fn = "/proc/" + Process.myPid() + "/task/" + Process.myTid() + "/cgroup"; in getSchedulerGroup() 116 Process.setThreadPriority(prio); in testPassPriorityToService() 119 assertEquals(prio, Process.getThreadPriority(Process.myTid())); in testPassPriorityToService() 133 assertEquals(expected, Process.getThreadPriority(Process.myTid())); in testCallBackFromServiceWithPriority() 138 assertEquals(mSavedPriority, Process.getThreadPriority(Process.myTid())); in testCallBackFromServiceWithPriority()
|
D | SetPersistentVrThreadTest.java | 94 vr_thread = Process.myTid(); in testSetPersistentVrThreadAPISuccess() 98 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 103 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 113 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 119 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 130 vr_thread = Process.myTid(); in testSetPersistentVrThreadAPIFailure() 132 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPIFailure() 144 vr_thread = Process.myTid(); in testSetVrThreadAPIFailsInPersistentMode() 148 policy = (int) Process.getThreadScheduler(vr_thread); in testSetVrThreadAPIFailsInPersistentMode() 155 policy = (int) Process.getThreadScheduler(vr_thread); in testSetVrThreadAPIFailsInPersistentMode() [all …]
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | SchedulingPolicyService.java | 23 import android.os.Process; 71 int[] nativePids = Process.getPidsForCommands(MEDIA_PROCESS_NAMES); in SchedulingPolicyService() 93 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) { in requestPriority() 96 if (Binder.getCallingUid() != Process.BLUETOOTH_UID) { in requestPriority() 99 Process.setThreadGroup(tid, !isForApp ? in requestPriority() 100 Process.THREAD_GROUP_AUDIO_SYS : Process.THREAD_GROUP_RT_APP); in requestPriority() 108 Process.setThreadScheduler(tid, Process.SCHED_FIFO | Process.SCHED_RESET_ON_FORK, in requestPriority() 120 if (Binder.getCallingPid() != Process.myPid() && in requestCpusetBoost() 121 Binder.getCallingUid() != Process.MEDIA_UID) { in requestCpusetBoost() 125 int[] nativePids = Process.getPidsForCommands(MEDIA_PROCESS_NAMES); in requestCpusetBoost() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelWakelockReader.java | 18 import android.os.Process; 46 Process.PROC_TAB_TERM|Process.PROC_OUT_STRING| // 0: name 47 Process.PROC_QUOTES, 48 Process.PROC_TAB_TERM|Process.PROC_OUT_LONG, // 1: count 49 Process.PROC_TAB_TERM, 50 Process.PROC_TAB_TERM, 51 Process.PROC_TAB_TERM, 52 Process.PROC_TAB_TERM|Process.PROC_OUT_LONG, // 5: totalTime 56 Process.PROC_TAB_TERM|Process.PROC_OUT_STRING, // 0: name 57 Process.PROC_TAB_TERM|Process.PROC_COMBINE| [all …]
|
D | ProcTimeInStateReader.java | 20 import android.os.Process; 72 Process.PROC_OUT_LONG | Process.PROC_SPACE_TERM, 73 Process.PROC_NEWLINE_TERM 80 Process.PROC_SPACE_TERM, 81 Process.PROC_OUT_LONG | Process.PROC_NEWLINE_TERM 88 Collections.singletonList(Process.PROC_NEWLINE_TERM); 124 final boolean readSuccess = Process.readProcFile( in getUsageTimesMillis() 195 final boolean readSuccess = Process.parseProcLine( in initializeTimeInStateFormat()
|
D | RuntimeInit.java | 28 import android.os.Process; 105 if (mApplicationObject == null && (Process.SYSTEM_UID == Process.myUid())) { in uncaughtException() 108 logUncaught(t.getName(), ActivityThread.currentProcessName(), Process.myPid(), e); in uncaughtException() 169 Process.killProcess(Process.myPid()); in uncaughtException() 224 Process.THREAD_PRIORITY_LOWEST, // 1 (MIN_PRIORITY) 225 Process.THREAD_PRIORITY_BACKGROUND + 6, 226 Process.THREAD_PRIORITY_BACKGROUND + 3, 227 Process.THREAD_PRIORITY_BACKGROUND, 228 Process.THREAD_PRIORITY_DEFAULT, // 5 (NORM_PRIORITY) 229 Process.THREAD_PRIORITY_DEFAULT - 2, [all …]
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 117 public static final int AID_ROOT = android.os.Process.ROOT_UID; 120 public static final int AID_APP_START = android.os.Process.FIRST_APPLICATION_UID; 123 public static final int AID_APP_END = android.os.Process.LAST_APPLICATION_UID; 126 public static final int AID_SHARED_GID_START = android.os.Process.FIRST_SHARED_APPLICATION_GID; 129 public static final int AID_CACHE_GID_START = android.os.Process.FIRST_APPLICATION_CACHE_GID; 163 return Process.isIsolated(uid); in isIsolated() 179 return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID; in isApp() 192 return appId < Process.FIRST_APPLICATION_UID; in isCore() 265 return getUid(userId, Process.SHARED_USER_GID); in getUserGid() 290 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid() [all …]
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
D | PsParser.cpp | 36 …Table table(PsProto::Process::_FIELD_NAMES, PsProto::Process::_FIELD_IDS, PsProto::Process::_FIELD… in Parse() 38 …const int pcyValues[] = {PsProto::Process::POLICY_FG, PsProto::Process::POLICY_BG, PsProto::Proces… in Parse() 41 …Process::STATE_D, PsProto::Process::STATE_R, PsProto::Process::STATE_S, PsProto::Process::STATE_T,… in Parse()
|
/frameworks/base/core/proto/android/app/ |
D | enums.proto | 48 // Process state that is unknown to this proto file (i.e. is not mapped 53 // Process is a persistent system process. 55 // Process is a persistent system process and is doing UI. 57 // Process is hosting the current top activities. Note that this covers 60 // Process is bound to a TOP app. 62 // Process is hosting a foreground service. 64 // Process is hosting a service bound by the system or another foreground app. 66 // Process is important to the user, and something they are aware of. 68 // Process is important to the user, but not something they are aware of. 70 // Process is in the background transient so we will try to keep running. [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | ThreadPriorityBoosterTest.java | 19 import static android.os.Process.getThreadPriority; 20 import static android.os.Process.myTid; 21 import static android.os.Process.setThreadPriority; 25 import android.os.Process; 40 private static final int PRIORITY_BOOST = Process.THREAD_PRIORITY_FOREGROUND; 41 private static final int PRIORITY_BOOST_MORE = Process.THREAD_PRIORITY_DISPLAY; 49 final int origPriority = Process.THREAD_PRIORITY_DEFAULT; in testThreadPriorityBooster()
|
/frameworks/base/cmds/incident_helper/tests/ |
D | PsParser_test.cpp | 58 PsProto::Process* record1 = expected.add_processes(); in TEST_F() 73 record1->set_pcy(PsProto::Process::POLICY_FG); in TEST_F() 77 PsProto::Process* record2 = expected.add_processes(); in TEST_F() 92 record2->set_pcy(PsProto::Process::POLICY_FG); in TEST_F() 96 PsProto::Process* record3 = expected.add_processes(); in TEST_F() 111 record3->set_pcy(PsProto::Process::POLICY_FG); in TEST_F() 115 PsProto::Process* record4 = expected.add_processes(); in TEST_F() 130 record4->set_pcy(PsProto::Process::POLICY_FG); in TEST_F() 134 PsProto::Process* record5 = expected.add_processes(); in TEST_F() 149 record5->set_pcy(PsProto::Process::POLICY_TA); in TEST_F() [all …]
|
D | ProcrankParser_test.cpp | 57 ProcrankProto::Process* process1 = expected.add_processes(); in TEST_F() 69 ProcrankProto::Process* process2 = expected.add_processes(); in TEST_F() 81 ProcrankProto::Process* total = expected.mutable_summary()->mutable_total(); in TEST_F() 109 ProcrankProto::Process* process1 = expected.add_processes(); in TEST_F() 117 ProcrankProto::Process* process2 = expected.add_processes(); in TEST_F() 125 ProcrankProto::Process* total = expected.mutable_summary()->mutable_total(); in TEST_F()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SliceManagerServiceTest.java | 40 import android.os.Process; 119 when(mContextSpy.checkPermission("perm1", Process.myPid(), Process.myUid())) in testCheckAutoGrantPermissions() 121 when(mContextSpy.checkPermission("perm2", Process.myPid(), Process.myUid())) in testCheckAutoGrantPermissions() 124 mContext.getPackageName(), Process.myPid(), in testCheckAutoGrantPermissions() 125 Process.myUid(), testPerms); in testCheckAutoGrantPermissions() 127 verify(mContextSpy).checkPermission(eq("perm1"), eq(Process.myPid()), eq(Process.myUid())); in testCheckAutoGrantPermissions() 128 verify(mContextSpy).checkPermission(eq("perm2"), eq(Process.myPid()), eq(Process.myUid())); in testCheckAutoGrantPermissions()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiKeyStore.java | 21 import android.os.Process; 101 ret = mKeyStore.importKey(privKeyName, privKeyData, Process.WIFI_UID, in installKeys() 111 mKeyStore.delete(privKeyName, Process.WIFI_UID); in installKeys() 134 mKeyStore.delete(privKeyName, Process.WIFI_UID); in installKeys() 135 mKeyStore.delete(userCertName, Process.WIFI_UID); in installKeys() 139 mKeyStore.delete(Credentials.CA_CERTIFICATE + addedAlias, Process.WIFI_UID); in installKeys() 149 mKeyStore.delete(Credentials.CA_CERTIFICATE + oldAlias, Process.WIFI_UID); in installKeys() 190 return mKeyStore.put(name, certData, Process.WIFI_UID, KeyStore.FLAG_NONE); in putCertsInKeyStore() 207 return mKeyStore.importKey(name, privKeyData, Process.WIFI_UID, KeyStore.FLAG_NONE); in putKeyInKeyStore() 217 return mKeyStore.delete(name, Process.WIFI_UID); in removeEntryFromKeyStore() [all …]
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 25 import android.os.Process; 196 return checkPermissionForDataDelivery(context, permission, Process.myPid(), in checkSelfPermissionForDataDelivery() 197 Process.myUid(), context.getPackageName()); in checkSelfPermissionForDataDelivery() 231 return checkPermissionForPreflight(context, permission, Process.myPid(), in checkSelfPermissionForPreflight() 232 Process.myUid(), context.getPackageName()); in checkSelfPermissionForPreflight() 264 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermissionForDataDelivery() 302 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermissionForPreflight() 336 String packageName = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermissionForDataDelivery() 371 String packageName = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermissionForPreflight()
|
/frameworks/base/services/core/java/com/android/server/ |
D | UiThread.java | 21 import android.os.Process; 36 super("android.ui", Process.THREAD_PRIORITY_FOREGROUND, false /*allowIo*/); in UiThread() 42 Process.setThreadGroup(Process.myTid(), Process.THREAD_GROUP_TOP_APP); in run()
|
/frameworks/base/core/java/android/service/textservice/ |
D | SpellCheckerService.java | 28 import android.os.Process; 255 int pri = Process.getThreadPriority(Process.myTid()); in onGetSuggestionsMultiple() 257 Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); in onGetSuggestionsMultiple() 263 Process.setThreadPriority(pri); in onGetSuggestionsMultiple() 278 int pri = Process.getThreadPriority(Process.myTid()); in onCancel() 280 Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); in onCancel() 283 Process.setThreadPriority(pri); in onCancel() 289 int pri = Process.getThreadPriority(Process.myTid()); in onClose() 291 Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); in onClose() 294 Process.setThreadPriority(pri); in onClose()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewZygote.java | 22 import android.os.Process; 112 Process.killProcess(sZygote.getPid()); in stopZygoteLocked() 130 sZygote = Process.ZYGOTE_PROCESS.startChildZygote( in connectToZygoteIfNeededLocked() 133 Process.WEBVIEW_ZYGOTE_UID, in connectToZygoteIfNeededLocked() 134 Process.WEBVIEW_ZYGOTE_UID, in connectToZygoteIfNeededLocked() 141 Process.FIRST_ISOLATED_UID, in connectToZygoteIfNeededLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest7.java | 30 import android.os.Process; 87 mInjectedCallingUid = Process.SYSTEM_UID; in testNonShell() 97 mInjectedCallingUid = Process.ROOT_UID; in testRoot() 106 mInjectedCallingUid = Process.SHELL_UID; in testRestConfig() 115 mInjectedCallingUid = Process.SHELL_UID; in testOverrideConfig() 132 mInjectedCallingUid = Process.SHELL_UID; in testResetThrottling() 153 mInjectedCallingUid = Process.SHELL_UID; in testResetThrottling_user_not_running() 184 mInjectedCallingUid = Process.SHELL_UID; in testResetThrottling_user_running() 205 mInjectedCallingUid = Process.SHELL_UID; in testResetAllThrottling() 236 mInjectedCallingUid = Process.SHELL_UID; in testLauncherCommands() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiKeyStoreTest.java | 33 import android.os.Process; 102 verify(mKeyStore).delete(Credentials.USER_PRIVATE_KEY + USER_CERT_ALIAS, Process.WIFI_UID); in testRemoveKeysForAppInstalledCerts() 103 verify(mKeyStore).delete(Credentials.USER_CERTIFICATE + USER_CERT_ALIAS, Process.WIFI_UID); in testRemoveKeysForAppInstalledCerts() 105 Process.WIFI_UID); in testRemoveKeysForAppInstalledCerts() 107 Process.WIFI_UID); in testRemoveKeysForAppInstalledCerts() 121 verify(mKeyStore).delete(Credentials.USER_PRIVATE_KEY + USER_CERT_ALIAS, Process.WIFI_UID); in testRemoveKeysForMixedInstalledCerts1() 122 verify(mKeyStore).delete(Credentials.USER_CERTIFICATE + USER_CERT_ALIAS, Process.WIFI_UID); in testRemoveKeysForMixedInstalledCerts1() 138 Process.WIFI_UID); in testRemoveKeysForMixedInstalledCerts2() 140 Process.WIFI_UID); in testRemoveKeysForMixedInstalledCerts2()
|
/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/ |
D | IsolatedTestService.java | 21 import android.os.Process; 29 Log.d(TAG, "onCreate called. myUid=" + Process.myUid()); in onCreate() 34 Log.d(TAG, "onBind called. myUid=" + Process.myUid()); in onBind() 40 Log.d(TAG, "onDestroy called. myUid=" + Process.myUid()); in onDestroy()
|
D | TestService.java | 28 import android.os.Process; 53 Log.d(TAG, "onCreate called. myUid=" + Process.myUid()); in onCreate() 58 Log.d(TAG, "onStartCommand called. myUid=" + Process.myUid()); in onStartCommand() 68 Log.d(TAG, "onBind called. myUid=" + Process.myUid()); in onBind() 74 Log.d(TAG, "onDestroy called. myUid=" + Process.myUid()); in onDestroy() 87 Log.d(TAG, "Starting foreground. myUid=" + Process.myUid()); in startForeground() 145 Log.d(TAG, "Overlay displayed, myUid=" + Process.myUid());
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsNotedWatcherTest.java | 23 import android.os.Process; 59 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps() 61 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps() 68 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps() 72 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps()
|
/frameworks/base/core/java/android/net/ |
D | TrafficStats.java | 333 setThreadStatsUid(android.os.Process.myUid()); in setThreadStatsUidSelf() 474 final int uid = android.os.Process.myUid(); in incrementOperationCount() 780 final int callingUid = android.os.Process.myUid(); in getUidTxBytes() 781 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidTxBytes() 813 final int callingUid = android.os.Process.myUid(); in getUidRxBytes() 814 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidRxBytes() 846 final int callingUid = android.os.Process.myUid(); in getUidTxPackets() 847 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidTxPackets() 879 final int callingUid = android.os.Process.myUid(); in getUidRxPackets() 880 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidRxPackets() [all …]
|