Home
last modified time | relevance | path

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

123456

/frameworks/native/libs/binder/
DIPCThreadState.cpp294 IPCThreadState* IPCThreadState::self() in self()
299 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); in self()
301 return new IPCThreadState; in self()
325 IPCThreadState* IPCThreadState::selfOrNull() in selfOrNull()
329 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); in selfOrNull()
335 void IPCThreadState::shutdown() in shutdown()
341 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(gTLS); in shutdown()
351 void IPCThreadState::disableBackgroundScheduling(bool disable) in disableBackgroundScheduling()
356 bool IPCThreadState::backgroundSchedulingDisabled() in backgroundSchedulingDisabled()
361 status_t IPCThreadState::clearLastError() in clearLastError()
[all …]
DBpBinder.cpp171 trackedUid = IPCThreadState::self()->getCallingUid(); in create()
260 IPCThreadState::self()->incWeakHandle(this->binderHandle(), this); in BpBinder()
398 status = IPCThreadState::self()->transact(binderHandle(), code, data, reply, flags); in transact()
459 IPCThreadState* self = IPCThreadState::self(); in linkToDeath()
503 IPCThreadState* self = IPCThreadState::self(); in unlinkToDeath()
537 IPCThreadState* self = IPCThreadState::self(); in sendObituary()
615 IPCThreadState* ipc = IPCThreadState::self(); in ~BpBinder()
656 IPCThreadState* ipc = IPCThreadState::self(); in onFirstRef()
675 IPCThreadState* ipc = IPCThreadState::self(); in onLastStrongRef()
712 IPCThreadState* ipc = IPCThreadState::self(); in onIncStrongAttempted()
/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/ndk/
Dprocess.cpp22 using ::android::IPCThreadState;
36 IPCThreadState::self()->joinThreadPool(); in ABinderProcess_joinThreadPool()
40 return IPCThreadState::self()->setupPolling(fd); in ABinderProcess_setupPolling()
44 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/camera/libcameraservice/utils/
DAttributionAndPermissionUtils.cpp55 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid()
57 return IPCThreadState::self()->getCallingUid(); in getCallingUid()
62 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
64 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
69 return hardware::IPCThreadState::self()->clearCallingIdentity(); in clearCallingIdentity()
71 return IPCThreadState::self()->clearCallingIdentity(); in clearCallingIdentity()
76 hardware::IPCThreadState::self()->restoreCallingIdentity(token); in restoreCallingIdentity()
78 IPCThreadState::self()->restoreCallingIdentity(token); in restoreCallingIdentity()
/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/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/base/cmds/idmap2/idmap2d/
DMain.cpp31 using android::IPCThreadState;
39 IPCThreadState::disableBackgroundScheduling(true); in main()
48 IPCThreadState::self()->joinThreadPool(); in main()
/frameworks/av/services/medialog/
DMediaLogService.cpp57 if (!isAudioServerOrMediaServerUid(IPCThreadState::self()->getCallingUid()) || shared == 0 || in registerWriter()
71 if (!isAudioServerOrMediaServerUid(IPCThreadState::self()->getCallingUid()) || shared == 0) { in unregisterWriter()
100 if (!(isAudioServerOrMediaServerUid(IPCThreadState::self()->getCallingUid()) in dump()
103 IPCThreadState::self()->getCallingPid(), in dump()
104 IPCThreadState::self()->getCallingUid()); in dump()
/frameworks/native/cmds/servicemanager/
Dmain.cpp30 using ::android::IPCThreadState;
45 IPCThreadState::self()->setupPolling(&cb->mBinderFd); in setupTo()
56 IPCThreadState::self()->handlePolledCommands(); in handleEvent()
141 IPCThreadState::self()->disableBackgroundScheduling(true); in main()
148 IPCThreadState::self()->setTheContextObject(manager); in main()
/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
210 IPCThreadState();
211 ~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
210 IPCThreadState();
211 ~IPCThreadState();
/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/native/libs/binder/tests/
DbinderLibTest.cpp258 IPCThreadState::self()->restoreCallingWorkSource(0); in SetUp()
539 int ret = IPCThreadState::self()->freeze(pid, false, 0); in TEST_F()
546 EXPECT_EQ(-EAGAIN, IPCThreadState::self()->freeze(pid, true, 0)); in TEST_F()
550 auto ret = IPCThreadState::self()->freeze(pid, true, 0); in TEST_F()
554 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, true, 1000)); in TEST_F()
559 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->getProcessFreezeInfo(pid, &sync_received, in TEST_F()
565 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, false, 0)); in TEST_F()
733 IPCThreadState::self()->flushCommands(); in TEST_F()
976 IPCThreadState::self()->flushCommands(); in TEST_F()
1060 IPCThreadState::self()->clearCallingWorkSource(); in TEST_F()
[all …]
/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/services/vr/virtual_touchpad/
DVirtualTouchpadService.cpp103 const android::IPCThreadState* ipc = android::IPCThreadState::self(); in dump()
133 const android::IPCThreadState* ipc = android::IPCThreadState::self(); in CheckTouchPermission()
/frameworks/native/services/gpuservice/
DGpuService.cpp110 IPCThreadState* ipc = IPCThreadState::self(); in toggleAngleAsSystemDriver()
133 IPCThreadState* ipc = IPCThreadState::self(); in setUpdatableDriverPath()
172 IPCThreadState* ipc = IPCThreadState::self(); in doDump()
/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/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/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/base/core/jni/
Dandroid_util_Binder.cpp401 IPCThreadState* thread_state = IPCThreadState::self(); in onTransact()
413 auto state = IPCThreadState::self(); in onTransact()
1022 return IPCThreadState::self()->getCallingPid(); in android_os_Binder_getCallingPid()
1027 return IPCThreadState::self()->getCallingUid(); in android_os_Binder_getCallingUid()
1036 return IPCThreadState::self()->clearCallingIdentity(); in android_os_Binder_clearCallingIdentity()
1041 IPCThreadState::self()->restoreCallingIdentity(token); in android_os_Binder_restoreCallingIdentity()
1045 return IPCThreadState::self()->hasExplicitIdentity(); in android_os_Binder_hasExplicitIdentity()
1050 IPCThreadState::self()->setStrictModePolicy(policyMask); in android_os_Binder_setThreadStrictModePolicy()
1055 return IPCThreadState::self()->getStrictModePolicy(); in android_os_Binder_getThreadStrictModePolicy()
1060 return IPCThreadState::self()->setCallingWorkSourceUid(workSource); in android_os_Binder_setCallingWorkSourceUid()
[all …]
/frameworks/av/services/audiopolicy/permission/
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()

123456