summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-03-28 13:41:28 +0000
committerNarayan Kamath <narayan@google.com>2014-04-03 12:29:44 +0000
commit162ea0e9e8f3c293b7572bfff2671a5af5244032 (patch)
treeca27f1f3c91592ccb523efc3ea576089a16930ed /include/binder
parentb1a8c016371282a3cd3b113e6b2c0310372babf2 (diff)
downloadframeworks_native-162ea0e9e8f3c293b7572bfff2671a5af5244032.zip
frameworks_native-162ea0e9e8f3c293b7572bfff2671a5af5244032.tar.gz
frameworks_native-162ea0e9e8f3c293b7572bfff2671a5af5244032.tar.bz2
Remove global variables from ProcessState.
These weren't really being used and they make it very hard to reason about who looks at command line arguments. Processes started via app_process (this includes all zygote forks and the system_server) can get information about command line arguments from the AndroidRuntime class, which is available via a call to AndroidRuntime::getRuntime. bug: 13647418 Change-Id: I6f92680c3619a68c6d4b0995db4cdc9adc788e36
Diffstat (limited to 'include/binder')
-rw-r--r--include/binder/ProcessState.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/binder/ProcessState.h b/include/binder/ProcessState.h
index e63a0d0..3bc978d 100644
--- a/include/binder/ProcessState.h
+++ b/include/binder/ProcessState.h
@@ -27,11 +27,6 @@
// ---------------------------------------------------------------------------
namespace android {
-// Global variables
-extern int mArgC;
-extern const char* const* mArgV;
-extern int mArgLen;
-
class IPCThreadState;
class ProcessState : public virtual RefBase
@@ -62,12 +57,6 @@ public:
wp<IBinder> getWeakProxyForHandle(int32_t handle);
void expungeHandle(int32_t handle, IBinder* binder);
- void setArgs(int argc, const char* const argv[]);
- int getArgC() const;
- const char* const* getArgV() const;
-
- void setArgV0(const char* txt);
-
void spawnPooledThread(bool isMain);
status_t setThreadPoolMaxThreadCount(size_t maxThreads);