Home
last modified time | relevance | path

Searched refs:LocationUtils (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DLightAppPermGroupLiveData.kt30 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
47 ) : SmartUpdateMediatorLiveData<LightAppPermGroup?>(), LocationUtils.LocationListener { in <lambda>()
58 isSpecialLocation = LocationUtils.isLocationGroupAndProvider(app, in <lambda>()
60 LocationUtils.isLocationGroupAndControllerExtraPackage(app, permGroupName, packageName) in <lambda>()
120 if (LocationUtils.isLocationGroupAndProvider(userContext, permGroupName, packageName)) { in <lambda>()
121 specialLocationGrant = LocationUtils.isLocationEnabled(userContext) in <lambda>()
122 } else if (LocationUtils.isLocationGroupAndControllerExtraPackage(app, permGroupName, in <lambda>()
126 specialLocationGrant = LocationUtils.isExtraLocationControllerPackageEnabled( in <lambda>()
187 LocationUtils.addLocationListener(this) in <lambda>()
194 LocationUtils.removeLocationListener(this) in <lambda>()
DAppPermGroupUiInfoLiveData.kt34 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
57 ) : SmartAsyncMediatorLiveData<AppPermGroupUiInfo>(), LocationUtils.LocationListener { in <lambda>()
66 isSpecialLocation = LocationUtils.isLocationGroupAndProvider(app, in <lambda>()
68 LocationUtils.isLocationGroupAndControllerExtraPackage(app, permGroupName, packageName) in <lambda>()
304 if (LocationUtils.isLocationGroupAndProvider(userContext, permGroupName, packageName)) { in <lambda>()
305 return LocationUtils.isLocationEnabled(userContext) in <lambda>()
309 if (LocationUtils.isLocationGroupAndControllerExtraPackage(userContext, in <lambda>()
311 return LocationUtils.isExtraLocationControllerPackageEnabled(userContext) in <lambda>()
344 LocationUtils.addLocationListener(this) in <lambda>()
353 LocationUtils.removeLocationListener(this) in <lambda>()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DLocationFragment.java32 import com.android.tv.common.util.LocationUtils;
68 implements LocationUtils.OnUpdateAddressListener {
84 LocationUtils.removeOnUpdateAddressListener(this);
156 Address address = LocationUtils.getCurrentAddress(getActivity()); in onRequestPermissionsResult()
169 LocationUtils.removeOnUpdateAddressListener(this); in onRequestPermissionsResult()
206 LocationUtils.addOnUpdateAddressListener(this); in onResume()
214 LocationUtils.removeOnUpdateAddressListener(this); in onPause()
DPostalCodeFragment.java30 import com.android.tv.common.util.LocationUtils;
81 String region = LocationUtils.getCurrentCountry(getContext()); in setOnClickAction()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/legacy/
DAppPermissionActivity.java41 import com.android.permissioncontroller.permission.utils.LocationUtils;
129 if (LocationUtils.isLocationGroupAndProvider(this, groupName, in onCreate()
138 if (LocationUtils.isLocationGroupAndControllerExtraPackage( in onCreate()
141 LocationUtils.startLocationControllerExtraPackageSettings(this, userHandle); in onCreate()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DPermissionAppsViewModel.kt43 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
226 if (LocationUtils.isLocationGroupAndProvider( in <lambda>()
234 if (LocationUtils.isLocationGroupAndControllerExtraPackage( in <lambda>()
237 LocationUtils.startLocationControllerExtraPackageSettings(activity, user) in <lambda>()
DAppPermissionViewModel.kt52 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
492 if (LocationUtils.isLocationGroupAndProvider(context, permGroupName, packageName)) { in <lambda>()
494 LocationUtils.showLocationDialog(context, packageLabel) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionPreference.java42 import com.android.permissioncontroller.permission.utils.LocationUtils;
460 if (LocationUtils.isLocationGroupAndProvider(getContext(), mGroup.getName(), in requestChange()
462 LocationUtils.showLocationDialog(getContext(), getAppLabel()); in requestChange()
570 if (LocationUtils.isLocationGroupAndProvider(getContext(), mGroup.getName(), in showBackgroundChooserDialog()
572 LocationUtils.showLocationDialog(getContext(), getAppLabel()); in showBackgroundChooserDialog()
DPermissionControlPreference.java50 import com.android.permissioncontroller.permission.utils.LocationUtils;
243 if (LocationUtils.isLocationGroupAndProvider( in onBindViewHolder()
248 } else if (LocationUtils.isLocationGroupAndControllerExtraPackage( in onBindViewHolder()
251 LocationUtils.startLocationControllerExtraPackageSettings(mContext, mUser); in onBindViewHolder()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DCommonFeatures.java28 import com.android.tv.common.util.LocationUtils;
70 String country = LocationUtils.getCurrentCountry(context);
/packages/apps/TV/common/src/com/android/tv/common/util/
DPostalCodeUtils.java65 String postalCode = LocationUtils.getCurrentPostalCode(context); in updatePostalCode()
119 REGION_MAX_LENGTH.get(LocationUtils.getCurrentCountry(context).toUpperCase()); in getRegionMaxLength()
DLocationUtils.java41 public class LocationUtils { class
181 private LocationUtils() {} in LocationUtils() method in LocationUtils
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DLocationUtils.java43 public class LocationUtils { class
49 private static final String TAG = LocationUtils.class.getSimpleName();
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DAppPermissionsFragmentWear.java44 import com.android.permissioncontroller.permission.utils.LocationUtils;
329 if (LocationUtils.isLocationGroupAndProvider(getContext(), in createSwitchPreferenceForGroup()
331 LocationUtils.showLocationDialog( in createSwitchPreferenceForGroup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DPermissionAppsFragment.java42 import com.android.permissioncontroller.permission.utils.LocationUtils;
306 if (LocationUtils.isLocationGroupAndProvider(getContext(), mPermissionApps.getGroupName(), in onPreferenceClick()
308 LocationUtils.showLocationDialog(getContext(), app.getLabel()); in onPreferenceClick()
DAppPermissionsFragment.java59 import com.android.permissioncontroller.permission.utils.LocationUtils;
315 if (LocationUtils.isLocationGroupAndProvider(getContext(), group.getName(), in onPreferenceClick()
317 LocationUtils.showLocationDialog(getContext(), mAppPermissions.getAppLabel()); in onPreferenceClick()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java51 import com.android.permissioncontroller.permission.utils.LocationUtils;
723 if (LocationUtils.isLocationGroupAndProvider(mContext, mName, mPackageInfo.packageName)) {
724 return LocationUtils.isLocationEnabled(mContext);
728 if (LocationUtils.isLocationGroupAndControllerExtraPackage(
730 return LocationUtils.isExtraLocationControllerPackageEnabled(mContext);
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAppPermissionFragment.java56 import com.android.permissioncontroller.permission.utils.LocationUtils;
616 if (LocationUtils.isLocationGroupAndProvider(getContext(), mGroup.getName(), in requestChange()
618 LocationUtils.showLocationDialog(getContext(), in requestChange()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcherImpl.java49 import com.android.tv.common.util.LocationUtils;
343 + LocationUtils.getCurrentCountry(mContext)); in checkFetchPrerequisite()