Andrew Grieve 4700befb26 Add Application.getProcessName()
This information is already available to non-sandboxed processes via
ActivityManager.getRunningAppProcesses(). However, performing an IPC and
iterating processes is quite cumbersome. See other alternatives devs have tried:

https://stackoverflow.com/questions/19631894/is-there-a-way-to-get-current-process-name-in-android

My specific motivation for exposing this information more directly is to
be able to perform process-specific initialization logic in
Application.attachBaseContext():

https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java?rcl=ac2e180a1265f88dd4030bb35d69f5d0b2dc488d&l=54

Bug: 73344323
Test: Same code that's used in Chrome via reflection.
Change-Id: I83cec468458078e3fa183427a039869f74539c3d
2018-03-06 17:28:47 +00:00
2018-03-06 17:28:47 +00:00
2018-03-06 17:28:47 +00:00
2018-03-02 11:46:59 -08:00
2018-02-28 19:06:48 -08:00
2018-02-28 19:06:48 -08:00
2017-11-20 11:13:48 -08:00
2018-02-27 16:43:50 +08:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%