Home
last modified time | relevance | path

Searched refs:policyGroup (Results 1 – 4 of 4) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/activities/
DDevicePolicyGroupViewHolderTest.java79 DevicePolicyGroup policyGroup = new DevicePolicyGroup.Builder() in bind_bindsIdsToItemView() local
84 mDevicePolicyGroupViewHolder.bind(policyGroup, MAX_ITEM_VIEWS, TEST_PROVIDER_NAME); in bind_bindsIdsToItemView()
95 DevicePolicyGroup policyGroup = new DevicePolicyGroup.Builder() in bind_makesItemGroupFocusableButChildrenNotFocusable() local
101 mDevicePolicyGroupViewHolder.bind(policyGroup, MAX_ITEM_VIEWS, TEST_PROVIDER_NAME); in bind_makesItemGroupFocusableButChildrenNotFocusable()
112 DevicePolicyGroup policyGroup = new DevicePolicyGroup.Builder() in bind_bindsIdWithProviderNameToView() local
117 mDevicePolicyGroupViewHolder.bind(policyGroup, MAX_ITEM_VIEWS, TEST_PROVIDER_NAME); in bind_bindsIdWithProviderNameToView()
126 DevicePolicyGroup policyGroup = new DevicePolicyGroup.Builder() in bind_bindsIdWithProviderNameAndUrlToView() local
131 mDevicePolicyGroupViewHolder.bind(policyGroup, MAX_ITEM_VIEWS, TEST_PROVIDER_NAME); in bind_bindsIdWithProviderNameAndUrlToView()
148 DevicePolicyGroup policyGroup = policyGroupBuilder.build(); in bind_policyAtMaxItems_allItemViewsVisible() local
150 mDevicePolicyGroupViewHolder.bind(policyGroup, MAX_ITEM_VIEWS, TEST_PROVIDER_NAME); in bind_policyAtMaxItems_allItemViewsVisible()
[all …]
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.cpp371 PolicyGroup policyGroup; in readPolicyGroup() local
392 policyGroup.emplace(powerState, policyId); in readPolicyGroup()
405 if (policyGroup.count(powerState) > 0) { in readPolicyGroup()
411 return policyGroup; in readPolicyGroup()
444 const auto& policyGroup = readPolicyGroup(pPolicyGroup, registeredPowerPolicies); in readPolicyGroups() local
445 if (!policyGroup.ok()) { in readPolicyGroups()
446 return Error() << policyGroup.error(); in readPolicyGroups()
448 policyGroups.groups.emplace(policyGroupId, *policyGroup); in readPolicyGroups()
627 PolicyGroup policyGroup = mPolicyGroups.at(groupIdToUse); in getDefaultPowerPolicyForState() local
629 if (policyGroup.count(key) == 0) { in getDefaultPowerPolicyForState()
[all …]
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeRefactoredCarPowerPolicyDaemon.java169 SparseArray<CarPowerPolicy> policyGroup = new SparseArray<>(); in createPolicyGroup() local
170 policyGroup.put(PowerState.WAIT_FOR_VHAL, mPolicies.get(waitForVhalPolicyId)); in createPolicyGroup()
171 policyGroup.put(PowerState.ON, mPolicies.get(onPolicyId)); in createPolicyGroup()
172 return policyGroup; in createPolicyGroup()
296 SparseArray<CarPowerPolicy> policyGroup = new SparseArray<>(); in notifyPowerPolicyGroupDefinition() local
297 policyGroup.put(PowerState.WAIT_FOR_VHAL, mPolicies.get(waitForVhalPolicyId)); in notifyPowerPolicyGroupDefinition()
298 policyGroup.put(PowerState.ON, mPolicies.get(onPolicyId)); in notifyPowerPolicyGroupDefinition()
299 mPowerPolicyGroups.put(policyGroupId, policyGroup); in notifyPowerPolicyGroupDefinition()
/packages/services/Car/service/src/com/android/car/power/
DPolicyReader.java750 SparseArray<String> policyGroup = new SparseArray<>(); in parsePolicyGroup() local
771 policyGroup.put(powerState, id); in parsePolicyGroup()
792 return policyGroup; in parsePolicyGroup()