Home
last modified time | relevance | path

Searched refs:policyId (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/car/src/android/car/cts/
DCarPowerManagerTest.java127 String policyId = "audio_on_wifi_off"; in testApplyNewPowerPolicy() local
129 definePowerPolicy(policyId, "AUDIO", "WIFI"); in testApplyNewPowerPolicy()
136 mCarPowerManager.applyPowerPolicy(policyId); in testApplyNewPowerPolicy()
140 expectWithMessage("Current power policy ID").that(policy.getPolicyId()).isEqualTo(policyId); in testApplyNewPowerPolicy()
148 .isEqualTo(policyId); in testApplyNewPowerPolicy()
154 .that(listenerWifi.getCurrentPolicyId(LISTENER_WAIT_TIME_MS)).isEqualTo(policyId); in testApplyNewPowerPolicy()
381 private static void definePowerPolicy(String policyId, String enabledComponents, in definePowerPolicy() argument
383 String command = "cmd car_service define-power-policy " + policyId; in definePowerPolicy()
394 private static void applyPowerPolicyForced(String policyId) throws Exception { in applyPowerPolicyForced() argument
395 executeShellCommand("cmd car_service apply-power-policy %s", policyId); in applyPowerPolicyForced()
/cts/hostsidetests/car/app/src/android/car/cts/app/
DPowerPolicyTestCommand.java95 String policyId = cpp.getPolicyId(); in execute() local
96 if (policyId == null) { in execute()
97 policyId = NO_POLICY; in execute()
106 mTestClient.printfResult("%s (", policyId); in execute()
110 Log.d(TAG, "dump power policy " + policyId); in execute()
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DPowerPolicyDef.java38 private PowerPolicyDef(String policyId, PowerComponent[] enables, PowerComponent[] disables) { in PowerPolicyDef() argument
39 mPolicyId = policyId; in PowerPolicyDef()
99 String policyId = hasPolicyId in parse() local
135 return new PowerPolicyDef(policyId, enabledComps, disabledComps); in parse()
150 String policyId = component + "_disable"; in createWithComponentOff() local
152 return new PowerPolicyDef(policyId, enables, disables); in createWithComponentOff()
DPowerPolicyGroups.java133 String policyId = policyMapping.getDefaultPolicyId(); in parseProto() local
135 waitForVhalPolicy = policyId; in parseProto()
137 onPolicy = policyId; in parseProto()
140 + "state: " + state + "\npolicyId: " + policyId in parseProto()
/cts/hostsidetests/car/src/android/car/cts/
DPowerPolicyHostTest.java269 private void applyPowerPolicy(String policyId) throws Exception { in applyPowerPolicy() argument
270 executeCommand("cmd car_service apply-power-policy %s", policyId); in applyPowerPolicy()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiManagerTest.java6197 int policyId = uniqueIds ? i + 2 : 5; in fillQosPolicyParamsList() local
6199 policyId, QosPolicyParams.DIRECTION_DOWNLINK) in fillQosPolicyParamsList()
6340 final int policyId = 5; in testQosPolicyParamsBuilder() local
6364 () -> new QosPolicyParams.Builder(policyId, direction) in testQosPolicyParamsBuilder()
6370 new QosPolicyParams.Builder(policyId, QosPolicyParams.DIRECTION_DOWNLINK) in testQosPolicyParamsBuilder()
6385 assertEquals(policyId, downlinkParams.getPolicyId()); in testQosPolicyParamsBuilder()
6407 new QosPolicyParams.Builder(policyId, QosPolicyParams.DIRECTION_UPLINK) in testQosPolicyParamsBuilder()
6416 assertEquals(policyId, uplinkParams.getPolicyId()); in testQosPolicyParamsBuilder()