Home
last modified time | relevance | path

Searched refs:PostalCodeUtils (Results 1 – 9 of 9) sorted by relevance

/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/util/
DPostalCodeUtilsTest.java21 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/
DBaseTunerSetupActivity.java46 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()
DPostalCodeFragment.java31 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/
DEpgFetcherImpl.java52 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/
DEpgFetcherImplTest.java33 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/
DSampleDvbTunerSetupActivity.java37 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/
DSampleNetworkTunerSetupActivity.java37 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/
DPostalCodeUtils.java33 public class PostalCodeUtils { class
DLocationUtils.java156 PostalCodeUtils.updatePostalCode(sApplicationContext); in updateAddress()