Home
last modified time | relevance | path

Searched refs:processName (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java285 private static String capitalize(String processName) { in capitalize() argument
286 char c = processName.charAt(0); in capitalize()
288 return processName; in capitalize()
290 return Character.toUpperCase(c) + processName.substring(1); in capitalize()
294 String processName = entry.mName; in getProcessName() local
295 if (processName.contains(":")) { in getProcessName()
296 return capitalize(processName.substring(processName.lastIndexOf(':') + 1)); in getProcessName()
298 if (processName.startsWith(entry.mPackage)) { in getProcessName()
299 if (processName.length() == entry.mPackage.length()) { in getProcessName()
303 if (processName.charAt(start) == '.') { in getProcessName()
[all …]
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/
DSdkSandboxShellHostTest.java199 private void waitForProcessStart(String processName) throws Exception { in waitForProcessStart() argument
203 return processDump.contains(processName); in waitForProcessStart()
205 "Process " + processName + " has not started."); in waitForProcessStart()
208 private void waitForProcessDeath(String processName) throws Exception { in waitForProcessDeath() argument
212 return !processDump.contains(processName); in waitForProcessDeath()
214 "Process " + processName + " has not died."); in waitForProcessDeath()
DSdkSandboxLifecycleHostTest.java461 private int getProcessOccurrenceCount(String processName) throws Exception { in getProcessOccurrenceCount() argument
465 int processOccurrenceIndex = processDump.indexOf(processName); in getProcessOccurrenceCount()
468 processOccurrenceIndex = processDump.indexOf(processName, processOccurrenceIndex + 1); in getProcessOccurrenceCount()
493 private int getOomScoreAdj(String processName) throws DeviceNotAvailableException { in getOomScoreAdj() argument
494 String pid = getDevice().getProcessPid(processName); in getOomScoreAdj()
500 private void waitForProcessDeath(String processName) throws Exception { in waitForProcessDeath() argument
504 return !processDump.contains(processName); in waitForProcessDeath()
506 "Process " + processName + " has not died."); in waitForProcessDeath()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaApplication.java70 final String processName = getProcessName();
71 sIsUiProcess = processName.endsWith(":PhotoPicker");
80 sIsTestProcess = processName.endsWith(".tests");
91 Log.w(TAG, "Could not load fuse_jni.so in a test (" + processName + ")", e);
/packages/modules/UprobeStats/src/
DProcess.cpp34 int getPid(const std::string &processName) { in getPid() argument
39 (cmdline == processName || in getPid()
40 (cmdline.rfind(processName + '\0', 0) == 0))) { in getPid()
DDynamicInstrumentationManager.cpp44 uid_t uid, pid_t pid, const char *processName);
87 getExecutableMethodFileOffsets(std::string &processName, std::string &fqcn, in getExecutableMethodFileOffsets() argument
143 targetProcess_create(0, 0, processName.c_str()); in getExecutableMethodFileOffsets()
DConfigResolver.cpp129 std::string processName(taskConfig.target_process_name()); in resolveProbes() local
136 processName, fqcn, methodName, fqParameters); in resolveProbes()
DProcess.h23 int getPid(const std::string &processName);
DDynamicInstrumentationManager.h32 getExecutableMethodFileOffsets(std::string &processName, std::string &fqcn,
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/
DProgramGuideJankTest.java56 @GfxMonitor(processName = Utils.LIVE_CHANNELS_PROCESS_NAME)
71 @GfxMonitor(processName = Utils.LIVE_CHANNELS_PROCESS_NAME)
85 @GfxMonitor(processName = Utils.LIVE_CHANNELS_PROCESS_NAME)
DChannelZappingJankTest.java50 @GfxMonitor(processName = Utils.LIVE_CHANNELS_PROCESS_NAME)
DMenuJankTest.java50 @GfxMonitor(processName = Utils.LIVE_CHANNELS_PROCESS_NAME)
/packages/modules/Virtualization/tests/ComposBenchmarkApp/src/java/com/android/compos/benchmark/
DComposBenchmark.java208 GetMetricsRunnable(String processName, Map<String, List<Long>> processMemory) { in GetMetricsRunnable() argument
209 this.mProcessName = processName; in GetMetricsRunnable()
233 private void updateProcessMemory(String processName, Map<String, List<Long>> processMemory) in updateProcessMemory() argument
239 if (pName.equalsIgnoreCase(processName)) { in updateProcessMemory()
/packages/modules/AdServices/sdksandbox/tests/testutils/device-side/android/app/sdksandbox/testutils/
DFakeSdkSandboxManagerLocal.java52 return clientAppInfo.processName + "_sdk_sandbox_instr"; in getSdkSandboxProcessNameForInstrumentation()
59 clientAppInfo.processName = getSdkSandboxProcessNameForInstrumentation(clientAppInfo); in getSdkSandboxApplicationInfoForInstrumentation()
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DFilesJankPerfTest.java86 @GfxMonitor(processName=DOCUMENTSUI_PACKAGE)
93 @GfxMonitor(processName=DOCUMENTSUI_PACKAGE)
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/
DCommonFixture.java47 public static final String TEST_PACKAGE_NAME = processName();
117 private static String processName() { in processName() method in CommonFixture
/packages/services/Car/cpp/watchdog/stable_server/src/
DWatchdogProcessService.h183 pid_t pid, uid_t uid, const std::string& processName, uint64_t startTimeMillis, in ClientInfo() argument
187 kProcessName(processName), in ClientInfo()
194 const std::string& processName, uint64_t startTimeMillis, in ClientInfo() argument
198 kProcessName(processName), in ClientInfo()
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.h183 pid_t pid, uid_t uid, const std::string& processName, uint64_t startTimeMillis, in ClientInfo() argument
187 kProcessName(processName), in ClientInfo()
194 const std::string& processName, uint64_t startTimeMillis, in ClientInfo() argument
198 kProcessName(processName), in ClientInfo()
/packages/services/Car/cpp/watchdog/stable_server/tests/
DWatchdogProcessServiceTest.cpp108 ProcessIdentifier constructProcessIdentifier(pid_t pid, uid_t uid, std::string processName, in constructProcessIdentifier() argument
114 processIdentifier.processName = processName; in constructProcessIdentifier()
122 Field("processName", &ProcessIdentifier::processName,
123 Eq(expected.processName)),
220 bool hasClientInfoWithProcessName(TimeoutLength timeoutLength, std::string processName) { in hasClientInfoWithProcessName() argument
223 if (clientInfo.kProcessName == processName) { in hasClientInfoWithProcessName()
957 processIdentifier.processName = "process"; in TEST_F()
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogProcessServiceTest.cpp108 ProcessIdentifier constructProcessIdentifier(pid_t pid, uid_t uid, std::string processName, in constructProcessIdentifier() argument
114 processIdentifier.processName = processName; in constructProcessIdentifier()
122 Field("processName", &ProcessIdentifier::processName,
123 Eq(expected.processName)),
220 bool hasClientInfoWithProcessName(TimeoutLength timeoutLength, std::string processName) { in hasClientInfoWithProcessName() argument
223 if (clientInfo.kProcessName == processName) { in hasClientInfoWithProcessName()
957 processIdentifier.processName = "process"; in TEST_F()
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DProcessIdentifier.aidl41 @utf8InCpp String processName = "";
/packages/modules/Nfc/NfcNci/src/com/android/nfc/
DNfcApplication.java60 isMainProcess = (getPackageName().equals(appInfo.processName)); in onCreate()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DMemoryPublisher.java287 String[] split = process.processName.split(":");
291 "MemoryPublisher found matching process " + process.processName);
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxManagerServiceUnitTest.java1195 final String processName = in testGetSdkSandboxProcessNameForInstrumentation() local
1197 assertThat(processName).isEqualTo(TEST_PACKAGE + SANDBOX_INSTR_PROCESS_NAME_SUFFIX); in testGetSdkSandboxProcessNameForInstrumentation()
1210 assertThat(sdkSandboxInfo.processName) in test_getSdkInstrumentationInfo()
1226 assertThat(sdkSandboxInfo.processName) in test_getSdkInstrumentationInfo_sdkInSandbox()
1859 assertThat(activityInfo.processName) in testRegisterActivityInterceptorCallbackOnServiceStart()
1887 assertThat(activityInfo.processName) in testRegisterActivityInterceptionWithRightComponentSuccess()
1975 activityInfo.processName = TEST_PACKAGE; in testRegisterActivityInterceptorCallbackForInstrumentationActivities()
2008 assertThat(activityInfo.processName) in testRegisterActivityInterceptorCallbackForInstrumentationActivities()
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/
DSdkSandboxUnixStreamTest.java142 .map(app -> app.processName) in getRunningProcesses()

12