Home
last modified time | relevance | path

Searched refs:mUidPolicy (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/media/module/libmediatranscoding/tests/
DTranscodingSessionController_tests.cpp297 mUidPolicy.reset(new TestUidPolicy()); in SetUp()
314 mUidPolicy, mResourcePolicy, mThermalPolicy, &config)); in SetUp()
315 mUidPolicy->setCallback(mController); in SetUp()
414 std::shared_ptr<TestUidPolicy> mUidPolicy; member in android::TranscodingSessionControllerTest
430 mUidPolicy->setTop(UID(1)); in TEST_F()
463 mUidPolicy->setTop(UID(0)); in TEST_F()
531 mUidPolicy->setTop(UID(1)); in TEST_F()
617 mUidPolicy->setTop(UID(1)); in TEST_F()
669 mUidPolicy->setTop(UID(1)); in TEST_F()
713 mUidPolicy->setTop(UID(1)); in TEST_F()
[all …]
/frameworks/av/media/module/service.mediatranscoding/
DMediaTranscodingService.cpp49 : mUidPolicy(new TranscodingUidPolicy()), in MediaTranscodingService()
67 mUidPolicy, mResourcePolicy, mThermalPolicy, &config)); in MediaTranscodingService()
87 mUidPolicy, mResourcePolicy, mThermalPolicy, &config)); in MediaTranscodingService()
90 mUidPolicy->setCallback(mSessionController); in MediaTranscodingService()
DMediaTranscodingService.h63 std::shared_ptr<UidPolicyInterface> mUidPolicy; variable
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp292 mUidPolicy = uidPolicy; in onFirstRef()
358 mUidPolicy->unregisterSelf(); in ~AudioPolicyService()
361 mUidPolicy.clear(); in ~AudioPolicyService()
832 mUidPolicy->dumpInternals(fd); in dumpInternals()
896 bool isA11yOnTop = mUidPolicy->isA11yOnTop(); in updateUidStates_l()
903 && mUidPolicy->isRttEnabled(); in updateUidStates_l()
921 app_state_t appState = apmStatFromAmState(mUidPolicy->getUidState(currentUid)); in updateUidStates_l()
928 bool isAccessibility = mUidPolicy->isA11yUid(currentUid); in updateUidStates_l()
932 bool isAssistant = mUidPolicy->isAssistantUid(currentUid); in updateUidStates_l()
933 bool isActiveAssistant = mUidPolicy->isActiveAssistantUid(currentUid); in updateUidStates_l()
[all …]
DAudioPolicyInterfaceImpl.cpp2108 mUidPolicy->setAssistantUids(uids); in setAssistantServicesUids()
2118 mUidPolicy->setActiveAssistantUids(activeUids); in setActiveAssistantServicesUids()
2128 mUidPolicy->setA11yUids(uids); in setA11yServicesUids()
2136 mUidPolicy->setCurrentImeUid(uid); in setCurrentImeUid()
2246 mUidPolicy->setRttEnabled(enabled); in setRttEnabled()
DAudioPolicyService.h1048 sp<UidPolicy> mUidPolicy GUARDED_BY(mMutex);
/frameworks/av/media/module/libmediatranscoding/
DTranscodingSessionController.cpp335 mUidPolicy(uidPolicy), in TranscodingSessionController()
579 mUidPolicy->registerMonitorUid(clientUid); in addUidToSession_l()
580 if (mUidPolicy->isUidOnTop(clientUid)) { in addUidToSession_l()
588 if (mUidPolicy->isUidOnTop(clientUid)) { in addUidToSession_l()
635 mUidPolicy->unregisterMonitorUid(uid); in removeSession_l()
642 std::unordered_set<uid_t> topUids = mUidPolicy->getTopUids(); in removeSession_l()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraOfflineSessionClient.cpp267 sCameraService->mUidPolicy->registerMonitorUid(mClientUid, /*openCamera*/true); in startCameraOps()
291 sCameraService->mUidPolicy->unregisterMonitorUid(mClientUid, /*closeCamera*/true); in finishCameraOps()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java621 @GuardedBy("mUidRulesFirstLock") final SparseIntArray mUidPolicy = new SparseIntArray(); field in NetworkPolicyManagerService
2721 mUidPolicy.clear();
2884 final int policy = mUidPolicy.get(uid, POLICY_NONE);
3034 for (int i = 0; i < mUidPolicy.size(); i++) {
3035 final int uid = mUidPolicy.keyAt(i);
3036 final int policy = mUidPolicy.valueAt(i);
3084 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE);
3105 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE);
3124 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE);
3168 mUidPolicy.delete(uid);
[all …]
/frameworks/av/media/module/libmediatranscoding/include/media/
DTranscodingSessionController.h170 std::shared_ptr<UidPolicyInterface> mUidPolicy; variable
/frameworks/native/services/sensorservice/
DSensorService.cpp166 mUidPolicy = new UidPolicy(this); in SensorService()
497 mUidPolicy->registerSelf(); in onFirstRef()
574 mUidPolicy->unregisterSelf(); in ~SensorService()
984 mUidPolicy->addOverrideUid(uid, active); in handleSetUidState()
1005 mUidPolicy->removeOverrideUid(uid); in handleResetUidState()
1026 if (mUidPolicy->isUidActive(uid)) { in handleGetUidState()
2629 return mUidPolicy->isUidActive(uid); in isUidActive()
DSensorService.h588 sp<UidPolicy> mUidPolicy; variable
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp228 mUidPolicy = new UidPolicy(this); in onFirstRef()
229 mUidPolicy->registerSelf(); in onFirstRef()
350 mUidPolicy->unregisterSelf(); in ~CameraService()
1793 if (!mUidPolicy->isUidActive(callingUid, clientName)) { in validateClientPermissionsLocked()
1794 int32_t procState = mUidPolicy->getProcState(callingUid); in validateClientPermissionsLocked()
3135 mUidPolicy->registerSelf(); in notifySystemEvent()
3418 mUidPolicy->registerMonitorUid(clientUid, /*openCamera*/false); in addListenerHelper()
3510 mUidPolicy->unregisterMonitorUid((*it)->getListenerUid(), /*closeCamera*/false); in removeListener()
4272 bool isUidActive = sCameraService->mUidPolicy->isUidActive(mClientUid, in handleAppOpMode()
4335 sCameraService->mUidPolicy->registerMonitorUid(mClientUid, /*openCamera*/true); in startCameraOps()
[all …]
DCameraService.h927 sp<UidPolicy> mUidPolicy; variable