Home
last modified time | relevance | path

Searched refs:ProcessState (Results 1 – 25 of 146) sorted by relevance

123456

/frameworks/native/libs/binder/
DProcessState.cpp79 sp<ProcessState> ProcessState::self() in self()
84 sp<ProcessState> ProcessState::initWithDriver(const char* driver) in initWithDriver()
89 sp<ProcessState> ProcessState::selfOrNull() in selfOrNull()
94 [[clang::no_destroy]] static sp<ProcessState> gProcess;
101 sp<ProcessState> ProcessState::init(const char *driver, bool requireDefault) in init()
123 int ret = pthread_atfork(ProcessState::onFork, ProcessState::parentPostFork, in init()
124 ProcessState::childPostFork); in init()
128 gProcess = sp<ProcessState>::make(driver); in init()
144 sp<IBinder> ProcessState::getContextObject(const sp<IBinder>& /*caller*/) in getContextObject()
159 void ProcessState::onFork() { in onFork()
[all …]
/frameworks/native/include/binder/
DProcessState.h32 class ProcessState : public virtual RefBase {
34 static sp<ProcessState> self();
35 static sp<ProcessState> selfOrNull();
45 static sp<ProcessState> initWithDriver(const char* driver);
100 static sp<ProcessState> init(const char* defaultDriver, bool requireDefault);
107 friend class sp<ProcessState>;
109 explicit ProcessState(const char* driver);
110 ~ProcessState();
112 ProcessState(const ProcessState& o);
113 ProcessState& operator=(const ProcessState& o);
DBinderService.h74 sp<ProcessState> ps(ProcessState::self()); in joinThreadPool()
/frameworks/native/libs/binder/include/binder/
DProcessState.h32 class ProcessState : public virtual RefBase {
34 static sp<ProcessState> self();
35 static sp<ProcessState> selfOrNull();
45 static sp<ProcessState> initWithDriver(const char* driver);
100 static sp<ProcessState> init(const char* defaultDriver, bool requireDefault);
107 friend class sp<ProcessState>;
109 explicit ProcessState(const char* driver);
110 ~ProcessState();
112 ProcessState(const ProcessState& o);
113 ProcessState& operator=(const ProcessState& o);
DBinderService.h74 sp<ProcessState> ps(ProcessState::self()); in joinThreadPool()
/frameworks/native/libs/binder/ndk/
Dprocess.cpp25 using ::android::ProcessState;
28 ProcessState::self()->startThreadPool(); in ABinderProcess_startThreadPool()
29 ProcessState::self()->giveThreadPoolName(); in ABinderProcess_startThreadPool()
32 return ProcessState::self()->setThreadPoolMaxThreadCount(numThreads) == 0; in ABinderProcess_setThreadPoolMaxThreadCount()
/frameworks/av/media/audioserver/
Dmain_audioserver.cpp79 sp<ProcessState> proc(ProcessState::self()); in main()
81 ProcessState::self()->startThreadPool(); in main()
147 sp<ProcessState> proc(ProcessState::self()); in main()
176 ProcessState::self()->startThreadPool(); in main()
/frameworks/av/drm/drmserver/
Dmain_drmserver.cpp33 sp<ProcessState> proc(ProcessState::self()); in main()
37 ProcessState::self()->startThreadPool(); in main()
/frameworks/base/cmds/bootanimation/
Dbootanimation_main.cpp44 sp<ProcessState> proc(ProcessState::self()); in main()
45 ProcessState::self()->startThreadPool(); in main()
/frameworks/native/services/gpuservice/
Dmain_gpuservice.cpp34 ProcessState::self()->setThreadPoolMaxThreadCount(4); in main()
37 sp<ProcessState> ps(ProcessState::self()); in main()
/frameworks/av/camera/cameraserver/
Dmain_cameraserver.cpp33 sp<ProcessState> proc(ProcessState::self()); in main()
38 ProcessState::self()->startThreadPool(); in main()
/frameworks/av/media/mediaserver/
Dmain_mediaserver.cpp37 sp<ProcessState> proc(ProcessState::self()); in main()
44 ProcessState::self()->startThreadPool(); in main()
/frameworks/av/services/mediaextractor/
Dmain_extractorservice.cpp70 sp<ProcessState> proc(ProcessState::self()); in main()
74 ProcessState::self()->startThreadPool(); in main()
/frameworks/av/services/tuner/
Dmain_tunerservice.cpp33 sp<ProcessState> proc(ProcessState::self()); in main()
43 ProcessState::self()->startThreadPool(); in main()
/frameworks/base/cmds/idmap2/idmap2d/
DMain.cpp32 using android::ProcessState;
45 sp<ProcessState> ps(ProcessState::self()); in main()
/frameworks/native/cmds/servicemanager/
Dmain.cpp32 using ::android::ProcessState;
34 using ::android::ProcessState;
124 sp<ProcessState> ps = ProcessState::initWithDriver(driver); in main()
126 ps->setCallRestriction(ProcessState::CallRestriction::FATAL_IF_NOT_ONEWAY); in main()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java207 public final ProcessMap<ProcessState> mProcesses = new ProcessMap<>();
310 ProcessState otherProc = otherState.mProcesses.valueAt(iproc); in add()
314 ProcessState thisProc = getProcessStateLocked(pkgName, uid, vers, in add()
360 ArrayMap<String, SparseArray<ProcessState>> procMap = other.mProcesses.getMap(); in add()
362 SparseArray<ProcessState> uids = procMap.valueAt(ip); in add()
365 ProcessState otherProc = uids.valueAt(iu); in add()
369 ProcessState thisProc = mProcesses.get(name, uid); in add()
373 thisProc = new ProcessState(this, pkg, uid, vers, name); in add()
506 ArrayMap<String, SparseArray<ProcessState>> procMap = mProcesses.getMap(); in computeTotalMemoryUse()
508 SparseArray<ProcessState> uids = procMap.valueAt(iproc); in computeTotalMemoryUse()
[all …]
DUidState.java40 private ArraySet<ProcessState> mProcesses = new ArraySet<>();
173 final ProcessState proc = mProcesses.valueAt(i); in hasPackage()
190 void addProcess(ProcessState proc) { in addProcess()
194 void addProcess(ProcessState proc, long now) { in addProcess()
199 void removeProcess(ProcessState proc, long now) { in removeProcess()
/frameworks/base/services/core/java/com/android/server/am/
DProcessProfileRecord.java32 import com.android.internal.app.procstats.ProcessState;
142 private ProcessState mBaseProcessTracker;
301 ProcessState getBaseProcessTracker() { in getBaseProcessTracker()
306 void setBaseProcessTracker(ProcessState baseProcessTracker) { in setBaseProcessTracker()
314 final ProcessState origBase = getBaseProcessTracker(); in onProcessActive()
331 final ProcessState baseProcessTracker = tracker.getProcessStateLocked( in onProcessActive()
358 final ProcessState origBase = getBaseProcessTracker(); in onProcessInactive()
570 final ProcessState tracker = mBaseProcessTracker; in addPss()
583 final ProcessState tracker = mBaseProcessTracker; in reportExcessiveCpu()
595 final ProcessState tracker = mBaseProcessTracker; in reportCachedKill()
[all …]
/frameworks/av/services/mediametrics/
Dmain_mediametrics.cpp47 sp<ProcessState> processState(ProcessState::self()); in main()
/frameworks/base/cmds/incidentd/src/
Dmain.cpp40 sp<ProcessState> ps(ProcessState::self()); in main()
/frameworks/native/services/surfaceflinger/
Dmain_surfaceflinger.cpp89 ProcessState::self()->setThreadPoolMaxThreadCount(4); in main()
118 sp<ProcessState> ps(ProcessState::self()); in main()
/frameworks/native/services/vr/virtual_touchpad/
Dmain.cpp16 android::sp<android::ProcessState> ps(android::ProcessState::self()); in main()
/frameworks/native/libs/binder/rust/src/
Dstate.rs22 pub struct ProcessState; struct
24 impl ProcessState { implementation
/frameworks/av/services/mediacodec/
Dmain_codecservice.cpp46 android::ProcessState::initWithDriver("/dev/vndbinder"); in main()
47 android::ProcessState::self()->startThreadPool(); in main()

123456