Searched refs:policyId (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/car/src/android/car/cts/ |
D | CarPowerManagerTest.java | 87 String policyId = "audio_on_wifi_off"; in testApplyNewPowerPolicy() local 89 definePowerPolicy(policyId, "AUDIO", "WIFI"); in testApplyNewPowerPolicy() 95 applyPowerPolicy(policyId); in testApplyNewPowerPolicy() 99 assertWithMessage("Current power policy ID").that(policy.getPolicyId()).isEqualTo(policyId); in testApplyNewPowerPolicy() 102 .isEqualTo(policyId); in testApplyNewPowerPolicy() 107 .that(listenerWifi.getCurrentPolicyId(LISTENER_WAIT_TIME_MS)).isEqualTo(policyId); in testApplyNewPowerPolicy() 123 private static void definePowerPolicy(String policyId, String enabledComponents, in definePowerPolicy() argument 125 String command = "cmd car_service define-power-policy " + policyId; in definePowerPolicy() 135 private static void applyPowerPolicy(String policyId) throws Exception { in applyPowerPolicy() argument 137 "cmd car_service apply-power-policy %s", policyId); in applyPowerPolicy()
|
/cts/hostsidetests/car/app/src/android/car/cts/app/ |
D | PowerPolicyTestCommand.java | 108 String policyId = cpp.getPolicyId(); in execute() local 109 if (policyId == null) { in execute() 110 policyId = NO_POLICY; in execute() 119 mTestClient.printfResult("%s (", policyId); in execute() 123 Log.d(TAG, "dump power policy " + policyId); in execute()
|
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/ |
D | PowerPolicyDef.java | 38 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()
|
D | PowerPolicyTestHelper.java | 94 public void checkRegisteredPolicy(String policyId) { in checkRegisteredPolicy() argument 97 if (def.getPolicyId().equals(policyId)) { in checkRegisteredPolicy()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | PowerPolicyHostTest.java | 271 private void applyPowerPolicy(String policyId) throws Exception { in applyPowerPolicy() argument 272 executeCommand("cmd car_service apply-power-policy %s", policyId); in applyPowerPolicy()
|