Home
last modified time | relevance | path

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

/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DLocationTimeZoneManagerShellHelper.java172 public void setProviderModeOverride(int providerIndex, String mode) throws Exception { in setProviderModeOverride() argument
174 if (providerIndex == PRIMARY_PROVIDER_INDEX) { in setProviderModeOverride()
190 public void simulateProviderBind(int providerIndex) throws Exception { in simulateProviderBind() argument
191 sendProviderTestCommand(providerIndex, SIMULATED_PROVIDER_TEST_COMMAND_ON_BIND); in simulateProviderBind()
198 public void simulateProviderUncertain(int providerIndex) throws Exception { in simulateProviderUncertain() argument
199 sendProviderTestCommand(providerIndex, SIMULATED_PROVIDER_TEST_COMMAND_UNCERTAIN); in simulateProviderUncertain()
205 public void simulateProviderSuggestion(int providerIndex, String... zoneIds) in simulateProviderSuggestion() argument
212 sendProviderTestCommand(providerIndex, testCommand); in simulateProviderSuggestion()
216 private void sendProviderTestCommand(int providerIndex, String testCommand) throws Exception { in sendProviderTestCommand() argument
218 SHELL_COMMAND_SEND_PROVIDER_TEST_COMMAND, providerIndex, testCommand); in sendProviderTestCommand()
/cts/hostsidetests/time/host/src/android/time/cts/host/
DLocationTimeZoneManagerStatsTest.java102 int providerIndex = atom.getLocationTimeZoneProviderStateChanged().getProviderIndex(); in testAtom_locationTimeZoneProviderStateChanged()
103 return stateId(providerIndex, in testAtom_locationTimeZoneProviderStateChanged()
128 private static Set<Integer> singletonStateId(int providerIndex, in singletonStateId() argument
130 return Collections.singleton(stateId(providerIndex, state)); in singletonStateId()
134 List<StatsLog.EventMetricData> data, int providerIndex) { in extractEventsForProviderIndex() argument
140 == providerIndex; in extractEventsForProviderIndex()
146 int providerIndex, LocationTimeZoneProviderStateChanged.State providerState) {
147 return (providerIndex * PROVIDER_STATES_COUNT) + providerState.getNumber();
DBaseLocationTimeZoneManagerHostTest.java141 protected void setProviderModeOverride(int providerIndex, String mode) throws Exception { in setProviderModeOverride() argument
142 mLocationTimeZoneManagerShellHelper.setProviderModeOverride(providerIndex, mode); in setProviderModeOverride()
145 protected void simulateProviderSuggestion(int providerIndex, String... zoneIds) in simulateProviderSuggestion() argument
147 mLocationTimeZoneManagerShellHelper.simulateProviderSuggestion(providerIndex, zoneIds); in simulateProviderSuggestion()
150 protected void simulateProviderBind(int providerIndex) throws Exception { in simulateProviderBind() argument
151 mLocationTimeZoneManagerShellHelper.simulateProviderBind(providerIndex); in simulateProviderBind()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMagneticFieldMeasurementTestActivity.java107 int providerIndex = providers.size(); in testNorm() local
108 while (providerIndex > 0 && location == null) { in testNorm()
109 providerIndex--; in testNorm()
110 location = lm.getLastKnownLocation(providers.get(providerIndex)); in testNorm()