Home | History | Annotate | Download | only in location

Lines Matching refs:country

19 import android.location.Country;
31 private Country mNotifiedCountry;
36 public void notifyLocationBasedListener(Country country) {
38 mNotifiedCountry = country;
39 mLocationBasedCountryDetector.notifyListener(country);
62 public Country detectCountry() {
75 protected Country getNetworkBasedCountry() {
80 protected Country getLastKnownLocationBasedCountry() {
85 protected Country getSimBasedCountry() {
90 protected Country getLocaleCountry() {
95 protected void runAfterDetectionAsync(final Country country, final Country detectedCountry,
97 runAfterDetection(country, detectedCountry, notifyChange, startLocationBasedDetection);
127 private Country mCountry;
129 public void onCountryDetected(Country country) {
131 mCountry = country;
138 public Country getCountry() {
144 final Country resultCountry = new Country(
145 TestCountryDetector.COUNTRY_ISO, Country.COUNTRY_SOURCE_NETWORK);
148 protected Country getNetworkBasedCountry() {
154 Country country = countryDetector.detectCountry();
155 assertTrue(sameCountry(country, resultCountry));
163 final Country resultCountry = new Country(
164 TestCountryDetector.COUNTRY_ISO, Country.COUNTRY_SOURCE_SIM);
165 final Country locationBasedCountry = new Country(
166 TestCountryDetector.COUNTRY_ISO, Country.COUNTRY_SOURCE_LOCATION);
169 protected Country getSimBasedCountry() {
175 Country country = countryDetector.detectCountry();
176 assertTrue(sameCountry(country, resultCountry));
188 final Country resultCountry = new Country(
189 TestCountryDetector.COUNTRY_ISO, Country.COUNTRY_SOURCE_LOCALE);
192 protected Country getLocaleCountry() {
198 Country country = countryDetector.detectCountry();
199 assertTrue(sameCountry(country, resultCountry));
209 final Country resultCountry = new Country(
210 TestCountryDetector.COUNTRY_ISO, Country.COUNTRY_SOURCE_SIM);
213 protected Country getSimBasedCountry() {
219 Country country = countryDetector.detectCountry();
220 assertTrue(sameCountry(country, resultCountry));
230 final Country resultCountry = new Country(
231 TestCountryDetector.COUNTRY_ISO, Country.COUNTRY_SOURCE_SIM);
234 protected Country getSimBasedCountry() {
240 Country country = countryDetector.detectCountry();
241 assertTrue(sameCountry(country, resultCountry));
256 Country country = countryDetector.detectCountry();
257 assertTrue(sameCountry(country, null));
294 private boolean sameCountry(Country country1, Country country2) {