OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:countryDetector
(Results
1 - 5
of
5
) sorted by null
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
ComprehensiveCountryDetectorTest.java
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())
[
all
...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
CountryMonitor.java
21
import android.location.
CountryDetector
;
48
final
CountryDetector
countryDetector
=
49
(
CountryDetector
) mContext.getSystemService(Context.COUNTRY_DETECTOR);
51
if (
countryDetector
!= null) country =
countryDetector
.detectCountry();
54
// Fallback to Locale if there are issues with
CountryDetector
59
countryDetector
.addCountryListener(new CountryListener() {
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
PhoneNumberTestService.java
22
import android.location.
CountryDetector
;
115
final
CountryDetector
countryDetector
=
116
(
CountryDetector
) getSystemService(Context.COUNTRY_DETECTOR);
117
return
countryDetector
.detectCountry().getCountryIso();
/packages/apps/ContactsCommon/src/com/android/contacts/common/
GeoUtil.java
21
import android.location.
CountryDetector
;
40
final
CountryDetector
detector =
41
(
CountryDetector
) context.getSystemService(Context.COUNTRY_DETECTOR);
48
// Fallback to Locale if have issues with
CountryDetector
55
final
CountryDetector
countryDetector
=
56
(
CountryDetector
) context.getSystemService(Context.COUNTRY_DETECTOR);
/frameworks/base/services/java/com/android/server/
SystemServer.java
354
CountryDetectorService
countryDetector
= null;
598
countryDetector
= new CountryDetectorService(context);
599
ServiceManager.addService(Context.COUNTRY_DETECTOR,
countryDetector
);
[
all
...]
Completed in 1226 milliseconds