/frameworks/av/services/camera/libcameraservice/utils/ |
D | CameraThreadState.cpp | 25 if (hardware::IPCThreadState::self()->isServingCall()) { in getCallingUid() 26 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid() 28 return IPCThreadState::self()->getCallingUid(); in getCallingUid() 32 if (hardware::IPCThreadState::self()->isServingCall()) { in getCallingPid() 33 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid() 35 return IPCThreadState::self()->getCallingPid(); in getCallingPid() 39 if (hardware::IPCThreadState::self()->isServingCall()) { in clearCallingIdentity() 40 return hardware::IPCThreadState::self()->clearCallingIdentity(); in clearCallingIdentity() 42 return IPCThreadState::self()->clearCallingIdentity(); in clearCallingIdentity() 46 if (hardware::IPCThreadState::self()->isServingCall()) { in restoreCallingIdentity() [all …]
|
/frameworks/native/libs/binder/ |
D | IPCThreadState.cpp | 286 IPCThreadState* IPCThreadState::self() in self() 291 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); in self() 293 return new IPCThreadState; in self() 316 IPCThreadState* IPCThreadState::selfOrNull() in selfOrNull() 320 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); in selfOrNull() 326 void IPCThreadState::shutdown() in shutdown() 332 IPCThreadState* st = (IPCThreadState*)pthread_getspecific(gTLS); in shutdown() 342 void IPCThreadState::disableBackgroundScheduling(bool disable) in disableBackgroundScheduling() 347 bool IPCThreadState::backgroundSchedulingDisabled() in backgroundSchedulingDisabled() 352 sp<ProcessState> IPCThreadState::process() in process() [all …]
|
D | BpBinder.cpp | 112 trackedUid = IPCThreadState::self()->getCallingUid(); in create() 148 IPCThreadState::self()->incWeakHandle(handle, this); in BpBinder() 215 status_t status = IPCThreadState::self()->transact( in transact() 247 IPCThreadState* self = IPCThreadState::self(); in linkToDeath() 282 IPCThreadState* self = IPCThreadState::self(); in unlinkToDeath() 307 IPCThreadState* self = IPCThreadState::self(); in sendObituary() 368 IPCThreadState* ipc = IPCThreadState::self(); in ~BpBinder() 414 IPCThreadState* ipc = IPCThreadState::self(); in onFirstRef() 424 IPCThreadState* ipc = IPCThreadState::self(); in onLastStrongRef() 431 IPCThreadState* ipc = IPCThreadState::self(); in onIncStrongAttempted()
|
D | ProcessState.cpp | 67 IPCThreadState::self()->joinThreadPool(mIsMain); in threadLoop() 145 IPCThreadState* ipc = IPCThreadState::self(); in getContextObject() 241 …LOG_ALWAYS_FATAL_IF(IPCThreadState::selfOrNull(), "Call restrictions must be set before the thread… in setCallRestriction() 294 status_t status = IPCThreadState::self()->transact( in getStrongProxyForHandle()
|
/frameworks/native/libs/gui/ |
D | BufferQueueThreadState.cpp | 25 if (hardware::IPCThreadState::self()->isServingCall()) { in getCallingUid() 26 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid() 28 return IPCThreadState::self()->getCallingUid(); in getCallingUid() 32 if (hardware::IPCThreadState::self()->isServingCall()) { in getCallingPid() 33 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid() 35 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
|
/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() 80 int64_t identity = IPCThreadState::self()->clearCallingIdentity(); in cleanupImpl() 90 IPCThreadState::self()->restoreCallingIdentity(identity); in cleanupImpl()
|
D | SensorRegistrationInfo.h | 46 IPCThreadState *thread = IPCThreadState::self(); in SensorRegistrationInfo()
|
/frameworks/base/cmds/statsd/src/ |
D | StatsService.cpp | 81 uid_t uid = IPCThreadState::self()->getCallingUid(); in checkUid() 91 pid_t pid = IPCThreadState::self()->getCallingPid(); in checkDumpAndUsageStats() 92 uid_t uid = IPCThreadState::self()->getCallingUid(); in checkDumpAndUsageStats() 355 uid_t uid = IPCThreadState::self()->getCallingUid(); in command() 551 uid = IPCThreadState::self()->getCallingUid(); in cmd_trigger_broadcast() 588 uid = IPCThreadState::self()->getCallingUid(); in cmd_trigger_active_config_broadcast() 602 uid = IPCThreadState::self()->getCallingUid(); in cmd_trigger_active_config_broadcast() 645 uid = IPCThreadState::self()->getCallingUid(); in cmd_config() 728 uid = IPCThreadState::self()->getCallingUid(); in cmd_dump_report() 820 uid = IPCThreadState::self()->getCallingUid(); in cmd_log_app_breadcrumb() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | AWakeLock.cpp | 61 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in acquire() 65 IPCThreadState::self()->restoreCallingIdentity(token); in acquire() 90 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in release() 92 IPCThreadState::self()->restoreCallingIdentity(token); in release()
|
/frameworks/base/cmds/idmap2/idmap2d/ |
D | Main.cpp | 31 using android::IPCThreadState; 38 IPCThreadState::disableBackgroundScheduling(true); in main() 46 IPCThreadState::self()->joinThreadPool(); in main()
|
D | Idmap2Service.cpp | 40 using android::IPCThreadState; 81 const uid_t uid = IPCThreadState::self()->getCallingUid(); in removeIdmap() 124 const uid_t uid = IPCThreadState::self()->getCallingUid(); in createIdmap()
|
/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/libs/binder/include/binder/ |
D | IPCThreadState.h | 34 class IPCThreadState 37 static IPCThreadState* self(); 38 static IPCThreadState* selfOrNull(); // self(), but won't instantiate 148 IPCThreadState(); 149 ~IPCThreadState();
|
/frameworks/native/libs/binder/tests/ |
D | binderLibTest.cpp | 184 IPCThreadState::self()->restoreCallingWorkSource(0); in SetUp() 568 IPCThreadState::self()->flushCommands(); in TEST_F() 591 IPCThreadState::self()->flushCommands(); in TEST_F() 619 IPCThreadState::self()->flushCommands(); in TEST_F() 958 IPCThreadState::self()->clearCallingWorkSource(); in TEST_F() 959 int64_t previousWorkSource = IPCThreadState::self()->setCallingWorkSourceUid(100); in TEST_F() 964 EXPECT_EQ(true, IPCThreadState::self()->shouldPropagateWorkSource()); in TEST_F() 973 IPCThreadState::self()->setCallingWorkSourceUidWithoutPropagation(100); in TEST_F() 974 EXPECT_EQ(false, IPCThreadState::self()->shouldPropagateWorkSource()); in TEST_F() 979 EXPECT_EQ(false, IPCThreadState::self()->shouldPropagateWorkSource()); 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/libs/binder/ndk/ |
D | process.cpp | 24 using ::android::IPCThreadState; 35 IPCThreadState::self()->joinThreadPool(); in ABinderProcess_joinThreadPool()
|
/frameworks/av/services/oboeservice/ |
D | AAudioService.cpp | 62 << IPCThreadState::self()->getCallingPid() << ", uid=" in dump() 63 << IPCThreadState::self()->getCallingUid() << "\n"; in dump() 77 pid_t pid = IPCThreadState::self()->getCallingPid(); in registerClient() 108 if (mAudioClient.clientPid == IPCThreadState::self()->getCallingPid() && in openStream() 109 mAudioClient.clientUid == IPCThreadState::self()->getCallingUid()) { in openStream() 191 const uid_t callingUserId = IPCThreadState::self()->getCallingUid(); in convertHandleToServiceStream() 276 const pid_t ownerPid = IPCThreadState::self()->getCallingPid(); // TODO review in registerAudioThread()
|
/frameworks/native/services/schedulerservice/ |
D | SchedulingPolicyService.cpp | 33 using ::android::hardware::IPCThreadState; in isAllowed() 35 return IPCThreadState::self()->getCallingUid() == AID_CAMERASERVER; in isAllowed()
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHwService.cpp | 91 IPCThreadState::self()->getCallingPid(), in listModules() 92 IPCThreadState::self()->getCallingUid())) { in listModules() 115 IPCThreadState::self()->getCallingPid(), in attach() 116 IPCThreadState::self()->getCallingUid())) { in attach() 948 IPCThreadState::self()->getCallingPid(), in detach() 949 IPCThreadState::self()->getCallingUid())) { in detach() 973 IPCThreadState::self()->getCallingPid(), in loadSoundModel() 974 IPCThreadState::self()->getCallingUid())) { in loadSoundModel() 992 IPCThreadState::self()->getCallingPid(), in unloadSoundModel() 993 IPCThreadState::self()->getCallingUid())) { in unloadSoundModel() [all …]
|
/frameworks/base/core/jni/ |
D | android_util_Binder.cpp | 362 IPCThreadState* thread_state = IPCThreadState::self(); in onTransact() 870 return IPCThreadState::self()->getCallingPid(); in android_os_Binder_getCallingPid() 875 return IPCThreadState::self()->getCallingUid(); in android_os_Binder_getCallingUid() 880 return IPCThreadState::self()->isServingCall(); in android_os_Binder_isHandlingTransaction() 885 return IPCThreadState::self()->clearCallingIdentity(); in android_os_Binder_clearCallingIdentity() 899 IPCThreadState::self()->restoreCallingIdentity(token); in android_os_Binder_restoreCallingIdentity() 904 IPCThreadState::self()->setStrictModePolicy(policyMask); in android_os_Binder_setThreadStrictModePolicy() 909 return IPCThreadState::self()->getStrictModePolicy(); in android_os_Binder_getThreadStrictModePolicy() 914 return IPCThreadState::self()->setCallingWorkSourceUid(workSource); in android_os_Binder_setCallingWorkSourceUid() 919 return IPCThreadState::self()->getCallingWorkSourceUid(); in android_os_Binder_getCallingWorkSourceUid() [all …]
|
/frameworks/native/services/inputflinger/host/ |
D | InputFlinger.cpp | 50 const IPCThreadState* ipc = IPCThreadState::self(); in dump()
|
/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()
|
/frameworks/av/media/libstagefright/ |
D | CameraSource.cpp | 539 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in init() 543 IPCThreadState::self()->restoreCallingIdentity(token); in init() 724 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in startCameraRecording() 781 IPCThreadState::self()->restoreCallingIdentity(token); in startCameraRecording() 858 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in releaseCamera() 865 IPCThreadState::self()->restoreCallingIdentity(token); in releaseCamera() 891 token = IPCThreadState::self()->clearCallingIdentity(); in reset() 905 IPCThreadState::self()->restoreCallingIdentity(token); in reset() 1020 int64_t token = IPCThreadState::self()->clearCallingIdentity(); in releaseRecordingFrame() 1022 IPCThreadState::self()->restoreCallingIdentity(token); in releaseRecordingFrame() [all …]
|
/frameworks/native/services/vr/hardware_composer/ |
D | vr_composer.cpp | 11 const android::IPCThreadState* ipc = android::IPCThreadState::self(); in CheckPermission()
|