Searched refs:PostalCodeUtils (Results 1 – 9 of 9) sorted by relevance
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/util/ |
D | PostalCodeUtilsTest.java | 21 import com.android.tv.common.util.PostalCodeUtils; 52 assertThat(PostalCodeUtils.matches(postcode, Locale.US.getCountry())).isTrue(); in validPostcodesUs() 59 assertThat(PostalCodeUtils.matches(postcode, Locale.UK.getCountry())).isTrue(); in validPostcodesGb() 66 assertThat(PostalCodeUtils.matches(postcode, Locale.US.getCountry())).isFalse(); in invalidPostcodesUs() 73 assertThat(PostalCodeUtils.matches(postcode, Locale.UK.getCountry())).isFalse(); in invalidPostcodesGb() 81 assertThat(PostalCodeUtils.matches(postcode, Locale.ROOT.getCountry())).isTrue(); in unsupportedRegion()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/ |
D | BaseTunerSetupActivity.java | 46 import com.android.tv.common.util.PostalCodeUtils; 113 mPreviousPostalCode = PostalCodeUtils.getLastPostalCode(this); in onCreate() 114 PostalCodeUtils.setLastPostalCode(this, null); in onCreate() 115 PostalCodeUtils.updatePostalCode(this); in onCreate() 168 String postalCode = PostalCodeUtils.getLastPostalCode(this); in executeAction() 271 if (mPreviousPostalCode != null && PostalCodeUtils.getLastPostalCode(this) == null) { in onDestroy() 272 PostalCodeUtils.setLastPostalCode(this, mPreviousPostalCode); in onDestroy()
|
D | PostalCodeFragment.java | 31 import com.android.tv.common.util.PostalCodeUtils; 82 if (postalCode != null && PostalCodeUtils.matches(postalCode, region)) { in setOnClickAction() 84 PostalCodeUtils.setLastPostalCode(getContext(), postalCodeString); in setOnClickAction() 124 int maxLength = PostalCodeUtils.getRegionMaxLength(getContext()); in onGuidedActionFocused()
|
/packages/apps/TV/src/com/android/tv/data/epg/ |
D | EpgFetcherImpl.java | 52 import com.android.tv.common.util.PostalCodeUtils; 363 if (!TextUtils.isEmpty(PostalCodeUtils.getLastPostalCode(mContext))) { in checkFetchPrerequisite() 414 postalCodeChanged = PostalCodeUtils.updatePostalCode(mContext); in prepareFetchEpg() 417 if (TextUtils.isEmpty(PostalCodeUtils.getLastPostalCode(mContext))) { in prepareFetchEpg() 422 if (TextUtils.isEmpty(PostalCodeUtils.getLastPostalCode(mContext))) { in prepareFetchEpg() 425 } catch (PostalCodeUtils.NoPostalCodeException e) { in prepareFetchEpg() 435 String lastPostalCode = PostalCodeUtils.getLastPostalCode(mContext); in prepareFetchEpg()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/data/epg/ |
D | EpgFetcherImplTest.java | 33 import com.android.tv.common.util.PostalCodeUtils; 146 PostalCodeUtils.setLastPostalCode(RuntimeEnvironment.application, "90210"); in setup()
|
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/setup/ |
D | SampleDvbTunerSetupActivity.java | 37 import com.android.tv.common.util.PostalCodeUtils; 131 String postalCode = PostalCodeUtils.getLastPostalCode(this); in executeAction()
|
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/setup/ |
D | SampleNetworkTunerSetupActivity.java | 37 import com.android.tv.common.util.PostalCodeUtils; 132 String postalCode = PostalCodeUtils.getLastPostalCode(this); in executeAction()
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | PostalCodeUtils.java | 33 public class PostalCodeUtils { class
|
D | LocationUtils.java | 156 PostalCodeUtils.updatePostalCode(sApplicationContext); in updateAddress()
|