Home | History | Annotate | Download | only in location

Lines Matching refs:countryDetector

146         TestCountryDetector countryDetector = new TestCountryDetector() {
153 countryDetector.setCountryListener(listener);
154 Country country = countryDetector.detectCountry();
157 assertFalse(countryDetector.locationBasedDetectorStarted());
158 assertFalse(countryDetector.locationRefreshStarted());
159 countryDetector.stop();
167 TestCountryDetector countryDetector = new TestCountryDetector() {
174 countryDetector.setCountryListener(listener);
175 Country country = countryDetector.detectCountry();
177 assertTrue(countryDetector.locationBasedDetectorStarted());
178 countryDetector.notifyLocationBasedListener(locationBasedCountry);
181 assertTrue(countryDetector.locationBasedDetectorStopped());
182 assertTrue(countryDetector.locationRefreshStarted());
183 countryDetector.stop();
184 assertTrue(countryDetector.locationRefreshCancelled());
190 TestCountryDetector countryDetector = new TestCountryDetector() {
197 countryDetector.setCountryListener(listener);
198 Country country = countryDetector.detectCountry();
201 assertTrue(countryDetector.locationBasedDetectorStarted());
202 assertTrue(countryDetector.locationRefreshStarted());
203 countryDetector.stop();
204 assertTrue(countryDetector.locationRefreshCancelled());
211 TestCountryDetector countryDetector = new TestCountryDetector() {
218 countryDetector.setCountryListener(listener);
219 Country country = countryDetector.detectCountry();
221 assertTrue(countryDetector.locationBasedDetectorStarted());
222 countryDetector.stop();
224 assertTrue(countryDetector.locationBasedDetectorStopped());
226 assertTrue(countryDetector.locationRefreshCancelled());
232 TestCountryDetector countryDetector = new TestCountryDetector() {
239 countryDetector.setCountryListener(listener);
240 Country country = countryDetector.detectCountry();
242 assertTrue(countryDetector.locationBasedDetectorStarted());
243 countryDetector.notifyLocationBasedListener(null);
246 assertTrue(countryDetector.locationBasedDetectorStopped());
247 assertTrue(countryDetector.locationRefreshStarted());
248 countryDetector.stop();
249 assertTrue(countryDetector.locationRefreshCancelled());
253 TestCountryDetector countryDetector = new TestCountryDetector();
255 countryDetector.setCountryListener(listener);
256 Country country = countryDetector.detectCountry();
258 assertTrue(countryDetector.locationBasedDetectorStarted());
259 countryDetector.notifyLocationBasedListener(null);
262 assertTrue(countryDetector.locationBasedDetectorStopped());
263 assertTrue(countryDetector.locationRefreshStarted());
264 countryDetector.stop();
265 assertTrue(countryDetector.locationRefreshCancelled());
269 TestCountryDetector countryDetector = new TestCountryDetector();
271 countryDetector.setCountryListener(listener);
272 assertTrue(countryDetector.isPhoneStateListenerAdded());
273 assertTrue(countryDetector.locationBasedDetectorStarted());
274 countryDetector.setCountryListener(null);
275 assertFalse(countryDetector.isPhoneStateListenerAdded());
276 assertTrue(countryDetector.locationBasedDetectorStopped());
280 TestCountryDetector countryDetector = new TestCountryDetector() {
287 countryDetector.setCountryListener(listener);
288 assertTrue(countryDetector.isPhoneStateListenerAdded());
289 assertFalse(countryDetector.locationBasedDetectorStarted());
290 countryDetector.setCountryListener(null);
291 assertFalse(countryDetector.isPhoneStateListenerAdded());