Home
last modified time | relevance | path

Searched refs:IPCThreadState (Results 1 – 25 of 144) sorted by relevance

123456

/frameworks/native/libs/gui/
DBufferQueueThreadState.cpp30 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid()
32 return IPCThreadState::self()->getCallingUid(); in getCallingUid()
34 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid()
41 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
43 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
45 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
/frameworks/native/libs/binder/
DIPCThreadState.cpp340 IPCThreadState* IPCThreadState::self() in self()
345 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); in self()
347 return new IPCThreadState; in self()
371 IPCThreadState* IPCThreadState::selfOrNull() in selfOrNull()
375 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); in selfOrNull()
381 void IPCThreadState::shutdown() in shutdown()
387 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(gTLS); in shutdown()
397 void IPCThreadState::disableBackgroundScheduling(bool disable) in disableBackgroundScheduling()
402 bool IPCThreadState::backgroundSchedulingDisabled() in backgroundSchedulingDisabled()
407 status_t IPCThreadState::clearLastError() in clearLastError()
[all …]
DBpBinder.cpp165 trackedUid = IPCThreadState::self()->getCallingUid(); in create()
264 IPCThreadState::self()->incWeakHandle(this->binderHandle(), this); in BpBinder()
402 status = IPCThreadState::self()->transact(binderHandle(), code, data, reply, flags); in transact()
465 IPCThreadState* self = IPCThreadState::self(); in linkToDeath()
509 IPCThreadState* self = IPCThreadState::self(); in unlinkToDeath()
543 IPCThreadState* self = IPCThreadState::self(); in sendObituary()
589 IPCThreadState* self = IPCThreadState::self(); in addFrozenStateChangeCallback()
604 IPCThreadState::self()->removeFrozenStateChangeCallback(binderHandle(), in addFrozenStateChangeCallback()
637 IPCThreadState::self()->removeFrozenStateChangeCallback(binderHandle(), in removeFrozenStateChangeCallback()
738 IPCThreadState* ipc = IPCThreadState::self(); in ~BpBinder()
[all …]
/frameworks/native/libs/binder/ndk/
Dprocess.cpp22 using ::android::IPCThreadState;
36 IPCThreadState::self()->joinThreadPool(); in ABinderProcess_joinThreadPool()
40 IPCThreadState::disableBackgroundScheduling(disable); in ABinderProcess_disableBackgroundScheduling()
44 return IPCThreadState::self()->setupPolling(fd); in ABinderProcess_setupPolling()
48 return IPCThreadState::self()->handlePolledCommands(); in ABinderProcess_handlePolledCommands()
/frameworks/native/services/sensorservice/
DBatteryService.cpp61 int64_t identity = IPCThreadState::self()->clearCallingIdentity(); in enableSensorImpl()
63 IPCThreadState::self()->restoreCallingIdentity(identity); in enableSensorImpl()
70 int64_t identity = IPCThreadState::self()->clearCallingIdentity(); in disableSensorImpl()
72 IPCThreadState::self()->restoreCallingIdentity(identity); in disableSensorImpl()
79 int64_t identity = IPCThreadState::self()->clearCallingIdentity(); in noteWakeupSensorEventImpl()
81 IPCThreadState::self()->restoreCallingIdentity(identity); in noteWakeupSensorEventImpl()
/frameworks/av/services/tuner/
DTunerFilter.cpp35 using ::android::IPCThreadState;
64 IPCThreadState* ipc = IPCThreadState::self(); in getQueueDesc()
194 IPCThreadState* ipc = IPCThreadState::self(); in start()
213 IPCThreadState* ipc = IPCThreadState::self(); in stop()
231 IPCThreadState* ipc = IPCThreadState::self(); in flush()
246 IPCThreadState* ipc = IPCThreadState::self(); in close()
284 IPCThreadState* ipc = IPCThreadState::self(); in acquireSharedFilterToken()
/frameworks/base/cmds/idmap2/idmap2d/
DMain.cpp31 using android::IPCThreadState;
39 IPCThreadState::disableBackgroundScheduling(true); in main()
48 IPCThreadState::self()->joinThreadPool(); in main()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DAWakeLock.cpp63 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in acquire()
73 IPCThreadState::self()->restoreCallingIdentity(token); in acquire()
99 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in release()
101 IPCThreadState::self()->restoreCallingIdentity(token); in release()
/frameworks/native/cmds/servicemanager/
Dmain.cpp50 using ::android::IPCThreadState;
65 IPCThreadState::self()->setupPolling(&cb->mBinderFd); in setupTo()
76 IPCThreadState::self()->handlePolledCommands(); in handleEvent()
165 IPCThreadState::self()->disableBackgroundScheduling(true); in main()
173 IPCThreadState::self()->setTheContextObject(manager); in main()
DAccess.cpp37 CHECK_EQ(nullptr, IPCThreadState::self()->getServingStackPointer()) in getPidcon()
115 IPCThreadState* ipc = IPCThreadState::self(); in getCallingContext()
/frameworks/native/libs/binderthreadstate/
Dtest.cpp85 const void* hwbinderSp = android::hardware::IPCThreadState::self()->getServingStackPointer(); in getStackPointerDebugInfo()
86 const void* binderSp = android::IPCThreadState::self()->getServingStackPointer(); in getStackPointerDebugInfo()
169 EXPECT_EQ(nullptr, android::IPCThreadState::selfOrNull()); in TEST()
170 EXPECT_EQ(nullptr, android::hardware::IPCThreadState::selfOrNull()); in TEST()
174 EXPECT_EQ(nullptr, android::IPCThreadState::selfOrNull()); in TEST()
175 EXPECT_EQ(nullptr, android::hardware::IPCThreadState::selfOrNull()); in TEST()
222 android::IPCThreadState::self()->joinThreadPool(true); in server()
/frameworks/base/native/android/
Dlooper.cpp26 using android::IPCThreadState;
59 IPCThreadState::self()->flushCommands(); in ALooper_pollOnce()
70 IPCThreadState::self()->flushCommands(); in ALooper_pollAll()
/frameworks/native/include/binder/
DIPCThreadState.h36 class IPCThreadState {
40 LIBBINDER_EXPORTED static IPCThreadState* self();
41 LIBBINDER_EXPORTED static IPCThreadState* selfOrNull(); // self(), but won't instantiate
215 IPCThreadState();
216 ~IPCThreadState();
/frameworks/native/libs/binder/include/binder/
DIPCThreadState.h36 class IPCThreadState {
40 LIBBINDER_EXPORTED static IPCThreadState* self();
41 LIBBINDER_EXPORTED static IPCThreadState* selfOrNull(); // self(), but won't instantiate
215 IPCThreadState();
216 ~IPCThreadState();
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp304 IPCThreadState::self()->restoreCallingWorkSource(0); in SetUp()
358 return IPCThreadState::self()->freeze(getpid(), false, 0) == NO_ERROR; in checkFreezeSupport()
384 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, true, 1000)); in freezeProcess()
388 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, false, 0)); in unfreezeProcess()
652 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, false, 0)); in TEST_F()
653 EXPECT_EQ(-EAGAIN, IPCThreadState::self()->freeze(pid, true, 0)); in TEST_F()
657 auto ret = IPCThreadState::self()->freeze(pid, true, 0); in TEST_F()
661 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, true, 1000)); in TEST_F()
666 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->getProcessFreezeInfo(pid, &sync_received, in TEST_F()
672 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, false, 0)); in TEST_F()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_am_Freezer.cpp40 jint retVal = IPCThreadState::freeze(pid, freeze, timeout_ms); in freezeBinder()
51 int error = IPCThreadState::getProcessFreezeInfo(pid, &syncReceived, &asyncReceived); in getBinderFreezeInfo()
95 int error = IPCThreadState::getProcessFreezeInfo(pid, &syncReceived, &asyncReceived); in isFreezerSupported()
/frameworks/native/services/schedulerservice/
DSchedulingPolicyService.cpp33 using ::android::hardware::IPCThreadState; in isAllowed()
35 return IPCThreadState::self()->getCallingUid() == AID_CAMERASERVER; in isAllowed()
/frameworks/native/libs/binderthreadstate/include/binderthreadstate/
DCallerUtils.h39 auto* hwState = android::hardware::IPCThreadState::selfOrNull(); in getCurrentServingCall()
40 auto* state = android::IPCThreadState::selfOrNull(); in getCurrentServingCall()
/frameworks/native/services/gpuservice/
DGpuService.cpp117 IPCThreadState* ipc = IPCThreadState::self(); in toggleAngleAsSystemDriver()
159 IPCThreadState* ipc = IPCThreadState::self(); in setUpdatableDriverPath()
202 IPCThreadState* ipc = IPCThreadState::self(); in doDump()
/frameworks/native/libs/binder/tests/parcel_fuzzer/test_fuzzer/
DTestServiceFuzzer.cpp53 if (IPCThreadState::self()->getCallingUid() == getuid()) { in onData()
59 if (IPCThreadState::self()->getCallingUid() == AID_SYSTEM) { in onData()
65 if (IPCThreadState::self()->getCallingUid() == AID_ROOT) { in onData()
/frameworks/av/services/camera/libcameraservice/utils/
DAttributionAndPermissionUtils.cpp90 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid()
92 return IPCThreadState::self()->getCallingUid(); in getCallingUid()
97 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
99 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
104 return hardware::IPCThreadState::self()->clearCallingIdentity(); in clearCallingIdentity()
106 return IPCThreadState::self()->clearCallingIdentity(); in clearCallingIdentity()
111 hardware::IPCThreadState::self()->restoreCallingIdentity(token); in restoreCallingIdentity()
113 IPCThreadState::self()->restoreCallingIdentity(token); in restoreCallingIdentity()
/frameworks/av/services/oboeservice/
DAAudioService.cpp71 << IPCThreadState::self()->getCallingPid() << ", uid=" in dump()
72 << IPCThreadState::self()->getCallingUid() << "\n"; in dump()
86 const pid_t pid = IPCThreadState::self()->getCallingPid(); in registerClient()
119 const pid_t pid = IPCThreadState::self()->getCallingPid(); in openStream()
123 legacy2aidl_uid_t_int32_t(IPCThreadState::self()->getCallingUid())); in openStream()
304 return clientPid == IPCThreadState::self()->getCallingPid() && in isCallerInService()
305 clientUid == IPCThreadState::self()->getCallingUid(); in isCallerInService()
326 const uid_t callingUserId = IPCThreadState::self()->getCallingUid(); in convertHandleToServiceStream()
/frameworks/av/media/libaudiopermission/
DValidatedAttributionSourceState.cpp32 attr.pid = ::android::IPCThreadState::self()->getCallingPid(); in createFromBinderContext()
33 attr.uid = ::android::IPCThreadState::self()->getCallingUid(); in createFromBinderContext()
/frameworks/base/cmds/app_process/
Dapp_main.cpp88 IPCThreadState::self()->stopProcess(); in onStarted()
89 hardware::IPCThreadState::self()->stopProcess(); in onStarted()
103 IPCThreadState::self()->stopProcess(); in onExit()
104 hardware::IPCThreadState::self()->stopProcess(); in onExit()
/frameworks/base/core/jni/
Dandroid_util_Binder.cpp402 IPCThreadState* thread_state = IPCThreadState::self(); in onTransact()
414 auto state = IPCThreadState::self(); in onTransact()
1157 return IPCThreadState::self()->getCallingPid(); in android_os_Binder_getCallingPid()
1162 return IPCThreadState::self()->getCallingUid(); in android_os_Binder_getCallingUid()
1171 return IPCThreadState::self()->clearCallingIdentity(); in android_os_Binder_clearCallingIdentity()
1176 IPCThreadState::self()->restoreCallingIdentity(token); in android_os_Binder_restoreCallingIdentity()
1180 return IPCThreadState::self()->hasExplicitIdentity(); in android_os_Binder_hasExplicitIdentity()
1185 IPCThreadState::self()->setStrictModePolicy(policyMask); in android_os_Binder_setThreadStrictModePolicy()
1190 return IPCThreadState::self()->getStrictModePolicy(); in android_os_Binder_getThreadStrictModePolicy()
1195 return IPCThreadState::self()->setCallingWorkSourceUid(workSource); in android_os_Binder_setCallingWorkSourceUid()
[all …]

123456