/packages/services/Car/cpp/powerpolicy/server/src/ |
D | PowerComponentHandler.cpp | 61 setComponentStates(componentStates, mAccumulatedPolicy->enabledComponents, true); in applyPowerPolicy() 63 setComponentStates(componentStates, powerPolicy->enabledComponents, true); in applyPowerPolicy() 71 mAccumulatedPolicy->enabledComponents.clear(); in applyPowerPolicy() 76 auto setAccumulatedPolicy = [](auto& statesMap, auto& enabledComponents, in applyPowerPolicy() 80 enabledComponents.push_back(component); in applyPowerPolicy() 87 setAccumulatedPolicy(componentStates, mAccumulatedPolicy->enabledComponents, in applyPowerPolicy() 94 Result<bool> getComponentState(const T& componentId, const std::vector<T>& enabledComponents, in getComponentState() argument 100 if (findComponent(enabledComponents)) { in getComponentState() 118 return getComponentState(componentId, mAccumulatedPolicy->enabledComponents, in getPowerComponentState() 151 printComponents(mAccumulatedPolicy->enabledComponents, in dump()
|
D | PolicyManager.cpp | 208 auto* enabledComponents, in readComponents() 211 enabledComponents->push_back(componentId); in readComponents() 257 result = updateComponentState(componentId, powerState, &policy->enabledComponents, in readComponents() 294 policy->enabledComponents.push_back(component); in readOtherComponents() 480 auto ret = checkConfigurableComponents(policy->enabledComponents); in readSystemPolicyOverrides() 559 const std::vector<PowerComponent>& enabledComponents, in createPolicy() argument 565 policy->enabledComponents = enabledComponents; in createPolicy() 588 policy.policyId.c_str(), toString(policy.enabledComponents).c_str(), in toString() 644 const std::vector<std::string>& enabledComponents, in definePowerPolicy() argument 651 auto ret = stringsToComponents(enabledComponents, &policy->enabledComponents, in definePowerPolicy() [all …]
|
D | CarPowerPolicyServer.cpp | 225 const std::string& policyId, const std::vector<std::string>& enabledComponents, in notifyPowerPolicyDefinition() argument 232 return mService->notifyPowerPolicyDefinition(policyId, enabledComponents, disabledComponents); in notifyPowerPolicyDefinition() 285 const std::string& policyId, const std::vector<std::string>& enabledComponents, in notifyPowerPolicyDefinition() argument 288 [policyId, enabledComponents, in notifyPowerPolicyDefinition() 290 return service->notifyPowerPolicyDefinition(policyId, enabledComponents, in notifyPowerPolicyDefinition() 547 const std::string& policyId, const std::vector<std::string>& enabledComponents, in notifyPowerPolicyDefinition() argument 554 mPolicyManager.definePowerPolicy(policyId, enabledComponents, disabledComponents); in notifyPowerPolicyDefinition()
|
D | CarPowerPolicyServer.h | 119 const std::string& policyId, const std::vector<std::string>& enabledComponents, 145 const std::string& policyId, const std::vector<std::string>& enabledComponents, 219 const std::string& policyId, const std::vector<std::string>& enabledComponents,
|
D | PolicyManager.h | 85 const std::string& policyId, const std::vector<std::string>& enabledComponents,
|
/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | PowerComponentHandlerTest.cpp | 43 const std::vector<PowerComponent>& enabledComponents, in createPolicy() argument 49 policy->enabledComponents = enabledComponents; in createPolicy() 58 EXPECT_THAT(left->enabledComponents, UnorderedElementsAreArray(right->enabledComponents)); in assertEqual() 135 auto [policyId, enabledComponents, disabledComponents] = tc; in TEST_F() 137 createPolicy(policyId, enabledComponents, disabledComponents, {}, {}); in TEST_F()
|
D | PolicyManagerTest.cpp | 92 const std::vector<PowerComponent>& enabledComponents, in createCarPowerPolicy() argument 96 policy.enabledComponents = enabledComponents; in createCarPowerPolicy() 102 const std::string& id, const std::vector<PowerComponent>& enabledComponents, in createCarPowerPolicyWithCustomComponents() argument 108 policy.enabledComponents = enabledComponents; in createCarPowerPolicyWithCustomComponents() 356 compareComponents(a.enabledComponents, b.enabledComponents) && in isEqual() 689 for (const auto& component : systemPolicyDefault->enabledComponents) { in TEST_F()
|
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/ |
D | FakeRefactoredCarPowerPolicyDaemon.java | 113 String policyId, int[] enabledComponents, int[] disabledComponents) { in createPolicy() argument 116 policy.enabledComponents = enabledComponents; in createPolicy() 267 public void notifyPowerPolicyDefinition(String policyId, String[] enabledComponents, in notifyPowerPolicyDefinition() argument 272 policy.enabledComponents = convertIntIterableToArray( in notifyPowerPolicyDefinition() 273 PowerComponentUtil.toPowerComponents(List.of(enabledComponents), in notifyPowerPolicyDefinition() 390 policy.enabledComponents = mEnabledComponents.toArray(); in getAccumulatedPolicy() 396 int[] enabledComponents = policy.enabledComponents; in applyPolicy() local 397 for (int i = 0; i < enabledComponents.length; i++) { in applyPolicy() 398 int component = enabledComponents[i]; in applyPolicy()
|
/packages/services/Car/car-lib/src/android/car/hardware/power/ |
D | CarPowerPolicy.java | 106 @NonNull int[] enabledComponents, in CarPowerPolicy() argument 111 this.mEnabledComponents = enabledComponents; in CarPowerPolicy() 171 int[] enabledComponents = in.createIntArray(); in CarPowerPolicy() local 177 this.mEnabledComponents = enabledComponents; in CarPowerPolicy()
|
/packages/services/Car/car-lib/native/CarPowerManager/ |
D | CarPowerPolicy.cpp | 30 const std::vector<int32_t>& enabledComponents, in CarPowerPolicy() argument 33 mEnabledComponents(enabledComponents), in CarPowerPolicy()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/ |
D | NotificationListenerCheck.kt | 277 val enabledComponents: List<ComponentName> = getEnabledNotificationListeners() in getEnabledNotificationListenersAndNotifyIfNeededLocked() constant 280 removeDisabledComponentsFromNotifiedComponents(enabledComponents) in getEnabledNotificationListenersAndNotifyIfNeededLocked() 285 val unNotifiedComponents = enabledComponents.filter { it !in notifiedComponents } in getEnabledNotificationListenersAndNotifyIfNeededLocked() 302 sendIssuesToSafetyCenter(enabledComponents, sessionId) in getEnabledNotificationListenersAndNotifyIfNeededLocked() 351 enabledComponents: Collection<ComponentName> in removeDisabledComponentsFromNotifiedComponents() 355 enabledComponents.map { it.flattenToShortString() }.toSet() in removeDisabledComponentsFromNotifiedComponents() 691 val enabledComponents = getEnabledNotificationListeners() in sendIssuesToSafetyCenter() constant 696 sendIssuesToSafetyCenter(enabledComponents, sessionId, safetyEvent) in sendIssuesToSafetyCenter() 700 enabledComponents: List<ComponentName>, in sendIssuesToSafetyCenter() 704 val pendingIssues = enabledComponents.mapNotNull { createSafetySourceIssue(it, sessionId) } in sendIssuesToSafetyCenter()
|
D | AccessibilitySourceService.kt | 968 val enabledComponents = in onAccessibilityServicesStateChanged() constant 975 a11ySourceService.removeAccessibilityNotification(enabledComponents) in onAccessibilityServicesStateChanged() 976 a11ySourceService.updateServiceAsNotified(enabledComponents) in onAccessibilityServicesStateChanged()
|
/packages/services/Car/service/src/com/android/car/power/ |
D | PowerComponentHandler.java | 152 int[] enabledComponents = new int[enabledComponentsCount]; in getAccumulatedPolicy() local 159 enabledComponents[enabledIndex++] = component; in getAccumulatedPolicy() 164 return new CarPowerPolicy(mCurrentPolicyId, enabledComponents, disabledComponents); in getAccumulatedPolicy() 175 int[] enabledComponents = policy.getEnabledComponents(); in applyPowerPolicy() local 179 for (int i = 0; i < enabledComponents.length; i++) { in applyPowerPolicy() 180 int component = enabledComponents[i]; in applyPowerPolicy()
|
D | PolicyReader.java | 251 int definePowerPolicy(String policyId, String[] enabledComponents, in definePowerPolicy() argument 274 int status = parseComponents(enabledComponents, true, components); in definePowerPolicy() 386 int[] enabledComponents = powerPolicy.getEnabledComponents(); in dumpProtoPowerPolicies() local 387 for (int j = 0; j < enabledComponents.length; j++) { in dumpProtoPowerPolicies() 389 powerComponentToString(enabledComponents[j])); in dumpProtoPowerPolicies() 836 List<Integer> enabledComponents = CarServiceUtils.asList( in reconstructSystemPowerPolicy() 844 addComponent(enabledComponents, overrideEnabledComponents[i]); in reconstructSystemPowerPolicy() 847 removeComponent(enabledComponents, overrideDisabledComponents[i]); in reconstructSystemPowerPolicy() 852 CarServiceUtils.toIntArray(enabledComponents), in reconstructSystemPowerPolicy()
|
D | CarPowerManagementService.java | 2237 return new CarPowerPolicy(policy.policyId, policy.enabledComponents, in convertPowerPolicyFromDaemon() 2305 int[] enabledComponents = new int[0]; in getInitialAccumulatedPowerPolicy() local 2312 return new CarPowerPolicy(initialPolicyId, enabledComponents, disabledComponents); in getInitialAccumulatedPowerPolicy() 2319 List<String> enabledComponents = PowerComponentUtil.powerComponentsToStrings( in initializeRegisteredPowerPolicies() local 2324 enabledComponents.toArray(String[]::new), in initializeRegisteredPowerPolicies() 3410 String[] enabledComponents = new String[0]; in definePowerPolicyFromCommand() local 3419 enabledComponents = args[index + 1].split(","); in definePowerPolicyFromCommand() 3434 int status = definePowerPolicy(powerPolicyId, enabledComponents, disabledComponents); in definePowerPolicyFromCommand() 3450 public int definePowerPolicy(String powerPolicyId, String[] enabledComponents, in definePowerPolicy() argument 3456 enabledComponents, disabledComponents); in definePowerPolicy() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/ |
D | CarPowerManagerUnitTest.java | 296 mService.definePowerPolicy(definition.policyId, definition.enabledComponents, in testGetCurrentPowerPolicy() 425 private void applyInitialPolicyForTest(String policyName, String[] enabledComponents, in applyInitialPolicyForTest() argument 427 mService.definePowerPolicy(policyName, enabledComponents, disabledComponents); in applyInitialPolicyForTest() 764 public final String[] enabledComponents; field in CarPowerManagerUnitTest.PolicyDefinition 767 private PolicyDefinition(String policyId, String[] enabledComponents, in PolicyDefinition() argument 770 this.enabledComponents = enabledComponents; in PolicyDefinition()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/ |
D | AccessibilityShortcutFragment.java | 65 String enabledComponents = Settings.Secure.getString(getContext().getContentResolver(), in onCreatePreferences() local 69 boolean shortcutEnabled = !TextUtils.isEmpty(enabledComponents) in onCreatePreferences()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/accessibility/ |
D | AccessibilityShortcutState.java | 69 String enabledComponents = Settings.Secure.getString(mContext.getContentResolver(), in onCreate() local 73 boolean shortcutEnabled = !TextUtils.isEmpty(enabledComponents) in onCreate()
|
/packages/services/Car/car-lib/native/include/ |
D | CarPowerPolicy.h | 33 CarPowerPolicy(const std::string& policyId, const std::vector<int32_t>& enabledComponents,
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigrationStateManagerTest.java | 965 List<ResolveInfo> enabledComponents = new ArrayList<ResolveInfo>(); in configureMigratorDisabledPackage() local 966 when(mPackageManager.queryIntentActivities(any(), any())).thenReturn(enabledComponents); in configureMigratorDisabledPackage() 970 List<ResolveInfo> enabledComponents = new ArrayList<ResolveInfo>(); in configureMigratorEnabledPackage() local 971 enabledComponents.add(new ResolveInfo()); in configureMigratorEnabledPackage() 972 when(mPackageManager.queryIntentActivities(any(), any())).thenReturn(enabledComponents); in configureMigratorEnabledPackage()
|
/packages/services/Car/cpp/powerpolicy/aidl/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegate.aidl | 90 in @utf8InCpp String[] enabledComponents, in @utf8InCpp String[] disabledComponents); in notifyPowerPolicyDefinition() argument
|
/packages/services/Car/cpp/powerpolicy/aidl/aidl_api/android.automotive.powerpolicy.delegate/1/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegate.aidl | 40 …icyDefinition(in @utf8InCpp String policyId, in @utf8InCpp String[] enabledComponents, in @utf8InC… in notifyPowerPolicyDefinition() argument
|
/packages/services/Car/cpp/powerpolicy/aidl/aidl_api/android.automotive.powerpolicy.delegate/current/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegate.aidl | 40 …icyDefinition(in @utf8InCpp String policyId, in @utf8InCpp String[] enabledComponents, in @utf8InC… in notifyPowerPolicyDefinition() argument
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/ |
D | NotificationListenerPrivacySourceTest.kt | 83 private val enabledComponents = listOf(testComponent1, testComponent2) constant 304 enabledComponents.mapNotNull { in createExpectedSafetyCenterData()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | CarPowerManagementServiceUnitTest.java | 2849 String[] enabledComponents = new String[]{}; in setUpPowerPolicyAudioInvert() local 2854 enabledComponents = new String[]{"AUDIO"}; in setUpPowerPolicyAudioInvert() 2856 return setUpPowerPolicy(/* policyId= */ POWER_POLICY_AUDIO_INVERT, enabledComponents, in setUpPowerPolicyAudioInvert() 2865 List<Integer> enabledComponents, List<Integer> disabledComponents, in getAllEnabledAndDisabledComponents() argument 2868 List<Integer> allEnabledComponents = new ArrayList<>(enabledComponents); in getAllEnabledAndDisabledComponents() 2870 for (int i = 0; i < enabledComponents.size(); i++) { in getAllEnabledAndDisabledComponents() 2871 componentsToAdd.remove(enabledComponents.get(i)); in getAllEnabledAndDisabledComponents() 2884 private void definePowerPolicy(String policyId, Iterable<Integer> enabledComponents, in definePowerPolicy() argument 2887 powerComponentsToStrings(enabledComponents).toArray(String[]::new), in definePowerPolicy() 2892 List<Integer> enabledComponents, List<Integer> disabledComponents) { in definePowerPolicyOtherComponentsOff() argument [all …]
|