Home
last modified time | relevance | path

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

123456

/frameworks/av/services/camera/libcameraservice/utils/
DCameraThreadState.cpp27 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid()
29 return IPCThreadState::self()->getCallingUid(); in getCallingUid()
34 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
36 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
41 return hardware::IPCThreadState::self()->clearCallingIdentity(); in clearCallingIdentity()
43 return IPCThreadState::self()->clearCallingIdentity(); in clearCallingIdentity()
48 hardware::IPCThreadState::self()->restoreCallingIdentity(token); in restoreCallingIdentity()
50 IPCThreadState::self()->restoreCallingIdentity(token); in restoreCallingIdentity()
/frameworks/native/libs/binder/
DIPCThreadState.cpp288 IPCThreadState* IPCThreadState::self() in self()
293 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); in self()
295 return new IPCThreadState; in self()
319 IPCThreadState* IPCThreadState::selfOrNull() in selfOrNull()
323 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); in selfOrNull()
329 void IPCThreadState::shutdown() in shutdown()
335 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(gTLS); in shutdown()
345 void IPCThreadState::disableBackgroundScheduling(bool disable) in disableBackgroundScheduling()
350 bool IPCThreadState::backgroundSchedulingDisabled() in backgroundSchedulingDisabled()
355 sp<ProcessState> IPCThreadState::process() in process()
[all …]
DBpBinder.cpp113 trackedUid = IPCThreadState::self()->getCallingUid(); in create()
165 IPCThreadState::self()->incWeakHandle(this->binderHandle(), this); in BpBinder()
278 status = IPCThreadState::self()->transact(binderHandle(), code, data, reply, flags); in transact()
314 IPCThreadState* self = IPCThreadState::self(); in linkToDeath()
351 IPCThreadState* self = IPCThreadState::self(); in unlinkToDeath()
378 IPCThreadState* self = IPCThreadState::self(); in sendObituary()
441 IPCThreadState* ipc = IPCThreadState::self(); in ~BpBinder()
474 IPCThreadState* ipc = IPCThreadState::self(); in onFirstRef()
488 IPCThreadState* ipc = IPCThreadState::self(); in onLastStrongRef()
518 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.cpp24 using ::android::IPCThreadState;
35 IPCThreadState::self()->joinThreadPool(); in ABinderProcess_joinThreadPool()
39 return IPCThreadState::self()->setupPolling(fd); in ABinderProcess_setupPolling()
43 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()
80 int64_t identity = IPCThreadState::self()->clearCallingIdentity(); in cleanupImpl()
90 IPCThreadState::self()->restoreCallingIdentity(identity); in cleanupImpl()
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp208 IPCThreadState::self()->restoreCallingWorkSource(0); in SetUp()
450 EXPECT_EQ(-EAGAIN, IPCThreadState::self()->freeze(pid, 1, 0)); in TEST_F()
451 EXPECT_EQ(-EAGAIN, IPCThreadState::self()->freeze(pid, 1, 0)); in TEST_F()
452 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, 1, 1000)); in TEST_F()
457 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->getProcessFreezeInfo(pid, &sync_received, in TEST_F()
463 EXPECT_EQ(NO_ERROR, IPCThreadState::self()->freeze(pid, 0, 0)); in TEST_F()
629 IPCThreadState::self()->flushCommands(); in TEST_F()
872 IPCThreadState::self()->flushCommands(); in TEST_F()
956 IPCThreadState::self()->clearCallingWorkSource(); in TEST_F()
957 int64_t previousWorkSource = IPCThreadState::self()->setCallingWorkSourceUid(100); in TEST_F()
[all …]
/frameworks/base/cmds/idmap2/idmap2d/
DMain.cpp31 using android::IPCThreadState;
38 IPCThreadState::disableBackgroundScheduling(true); in main()
46 IPCThreadState::self()->joinThreadPool(); in main()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DAWakeLock.cpp61 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in acquire()
66 IPCThreadState::self()->restoreCallingIdentity(token); in acquire()
91 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in release()
93 IPCThreadState::self()->restoreCallingIdentity(token); in release()
/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/include/binder/
DIPCThreadState.h31 class IPCThreadState
36 static IPCThreadState* self();
37 static IPCThreadState* selfOrNull(); // self(), but won't instantiate
166 IPCThreadState();
167 ~IPCThreadState();
/frameworks/native/libs/binder/include/binder/
DIPCThreadState.h31 class IPCThreadState
36 static IPCThreadState* self();
37 static IPCThreadState* selfOrNull(); // self(), but won't instantiate
166 IPCThreadState();
167 ~IPCThreadState();
DProcessState.h31 class IPCThreadState; variable
91 friend class IPCThreadState; variable
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_CreateDisplayTest.cpp69 int64_t oldId = IPCThreadState::self()->clearCallingIdentity(); in TEST_F()
71 IPCThreadState::self()->restoreCallingIdentity(static_cast<int64_t>(AID_GRAPHICS) << 32 | in TEST_F()
74 IPCThreadState::self()->restoreCallingIdentity(oldId); in TEST_F()
/frameworks/native/cmds/servicemanager/
Dmain.cpp33 using ::android::IPCThreadState;
45 IPCThreadState::self()->setupPolling(&binder_fd); in setupTo()
59 IPCThreadState::self()->handlePolledCommands(); in handleEvent()
129 IPCThreadState::self()->setTheContextObject(manager); in main()
/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/libs/binderthreadstate/include/binderthreadstate/
DCallerUtils.h39 const void* hwbinderSp = android::hardware::IPCThreadState::self()->getServingStackPointer(); in getCurrentServingCall()
40 const void* binderSp = android::IPCThreadState::self()->getServingStackPointer(); in getCurrentServingCall()
/frameworks/native/services/schedulerservice/
DSchedulingPolicyService.cpp33 using ::android::hardware::IPCThreadState; in isAllowed()
35 return IPCThreadState::self()->getCallingUid() == AID_CAMERASERVER; in isAllowed()
/frameworks/av/services/oboeservice/
DAAudioService.cpp71 << IPCThreadState::self()->getCallingPid() << ", uid=" in dump()
72 << IPCThreadState::self()->getCallingUid() << "\n"; in dump()
86 pid_t pid = IPCThreadState::self()->getCallingPid(); in registerClient()
119 pid_t pid = IPCThreadState::self()->getCallingPid(); in openStream()
123 legacy2aidl_uid_t_int32_t(IPCThreadState::self()->getCallingUid())); in openStream()
286 return clientPid == IPCThreadState::self()->getCallingPid() && in isCallerInService()
287 clientUid == IPCThreadState::self()->getCallingUid(); in isCallerInService()
308 const uid_t callingUserId = IPCThreadState::self()->getCallingUid(); in convertHandleToServiceStream()
/frameworks/native/services/inputflinger/host/
DInputFlinger.cpp50 const IPCThreadState* ipc = IPCThreadState::self(); in dump()
/frameworks/native/services/gpuservice/
DGpuService.cpp78 IPCThreadState* ipc = IPCThreadState::self(); in setUpdatableDriverPath()
116 IPCThreadState* ipc = IPCThreadState::self(); in doDump()
/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.cpp401 IPCThreadState* thread_state = IPCThreadState::self(); in onTransact()
954 return IPCThreadState::self()->getCallingPid(); in android_os_Binder_getCallingPid()
959 return IPCThreadState::self()->getCallingUid(); in android_os_Binder_getCallingUid()
969 return IPCThreadState::self()->clearCallingIdentity(); in android_os_Binder_clearCallingIdentity()
974 IPCThreadState::self()->restoreCallingIdentity(token); in android_os_Binder_restoreCallingIdentity()
979 IPCThreadState::self()->setStrictModePolicy(policyMask); in android_os_Binder_setThreadStrictModePolicy()
984 return IPCThreadState::self()->getStrictModePolicy(); in android_os_Binder_getThreadStrictModePolicy()
989 return IPCThreadState::self()->setCallingWorkSourceUid(workSource); in android_os_Binder_setCallingWorkSourceUid()
994 return IPCThreadState::self()->getCallingWorkSourceUid(); in android_os_Binder_getCallingWorkSourceUid()
999 return IPCThreadState::self()->clearCallingWorkSource(); in android_os_Binder_clearCallingWorkSource()
[all …]
/frameworks/av/media/utils/
DProcessInfo.cpp68 int callingPid = IPCThreadState::self()->getCallingPid(); in isValidPid()
69 int callingUid = IPCThreadState::self()->getCallingUid(); in isValidPid()

123456