/frameworks/native/libs/binder/ |
D | IPCThreadState.cpp | 294 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 …]
|
D | BpBinder.cpp | 171 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/ |
D | BufferQueueThreadState.cpp | 30 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/ |
D | process.cpp | 22 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/ |
D | BatteryService.cpp | 61 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/ |
D | AttributionAndPermissionUtils.cpp | 55 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/ |
D | TunerFilter.cpp | 35 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/ |
D | AWakeLock.cpp | 63 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/ |
D | Main.cpp | 31 using android::IPCThreadState; 39 IPCThreadState::disableBackgroundScheduling(true); in main() 48 IPCThreadState::self()->joinThreadPool(); in main()
|
/frameworks/av/services/medialog/ |
D | MediaLogService.cpp | 57 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/ |
D | main.cpp | 30 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/ |
D | IPCThreadState.h | 36 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/ |
D | IPCThreadState.h | 36 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/ |
D | test.cpp | 85 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/ |
D | binderLibTest.cpp | 258 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/ |
D | looper.cpp | 26 using android::IPCThreadState; 59 IPCThreadState::self()->flushCommands(); in ALooper_pollOnce() 70 IPCThreadState::self()->flushCommands(); in ALooper_pollAll()
|
/frameworks/native/services/vr/virtual_touchpad/ |
D | VirtualTouchpadService.cpp | 103 const android::IPCThreadState* ipc = android::IPCThreadState::self(); in dump() 133 const android::IPCThreadState* ipc = android::IPCThreadState::self(); in CheckTouchPermission()
|
/frameworks/native/services/gpuservice/ |
D | GpuService.cpp | 110 IPCThreadState* ipc = IPCThreadState::self(); in toggleAngleAsSystemDriver() 133 IPCThreadState* ipc = IPCThreadState::self(); in setUpdatableDriverPath() 172 IPCThreadState* ipc = IPCThreadState::self(); in doDump()
|
/frameworks/native/services/schedulerservice/ |
D | SchedulingPolicyService.cpp | 33 using ::android::hardware::IPCThreadState; in isAllowed() 35 return IPCThreadState::self()->getCallingUid() == AID_CAMERASERVER; in isAllowed()
|
/frameworks/native/libs/binderthreadstate/include/binderthreadstate/ |
D | CallerUtils.h | 39 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/ |
D | TestServiceFuzzer.cpp | 53 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/ |
D | AAudioService.cpp | 71 << 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/ |
D | android_util_Binder.cpp | 401 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/ |
D | ValidatedAttributionSourceState.cpp | 32 attr.pid = ::android::IPCThreadState::self()->getCallingPid(); in createFromBinderContext() 33 attr.uid = ::android::IPCThreadState::self()->getCallingUid(); in createFromBinderContext()
|
/frameworks/base/cmds/app_process/ |
D | app_main.cpp | 88 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()
|