Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DLightAppPermGroupLiveData.kt31 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
50 ) : SmartUpdateMediatorLiveData<LightAppPermGroup?>(), LocationUtils.LocationListener { in <lambda>()
62 LocationUtils.isLocationGroupAndProvider(app, permGroupName, packageName) || in <lambda>()
63 LocationUtils.isLocationGroupAndControllerExtraPackage( in <lambda>()
127 if (LocationUtils.isLocationGroupAndProvider(userContext, permGroupName, packageName)) { in <lambda>()
128 specialLocationGrant = LocationUtils.isLocationEnabled(userContext) in <lambda>()
130 LocationUtils.isLocationGroupAndControllerExtraPackage(app, permGroupName, packageName) in <lambda>()
135 LocationUtils.isExtraLocationControllerPackageEnabled(userContext) in <lambda>()
202 LocationUtils.addLocationListener(this) in <lambda>()
209 LocationUtils.removeLocationListener(this) in <lambda>()
DAppPermGroupUiInfoLiveData.kt35 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
59 ) : SmartAsyncMediatorLiveData<AppPermGroupUiInfo>(), LocationUtils.LocationListener { in <lambda>()
70 LocationUtils.isLocationGroupAndProvider(app, permGroupName, packageName) || in <lambda>()
71 LocationUtils.isLocationGroupAndControllerExtraPackage( in <lambda>()
341 if (LocationUtils.isLocationGroupAndProvider(userContext, permGroupName, packageName)) { in <lambda>()
342 return LocationUtils.isLocationEnabled(userContext) in <lambda>()
347 LocationUtils.isLocationGroupAndControllerExtraPackage( in <lambda>()
353 return LocationUtils.isExtraLocationControllerPackageEnabled(userContext) in <lambda>()
387 LocationUtils.addLocationListener(this) in <lambda>()
396 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.java43 import com.android.permissioncontroller.permission.utils.LocationUtils;
133 if (LocationUtils.isLocationGroupAndProvider(this, groupName, in onCreate()
142 if (LocationUtils.isLocationGroupAndControllerExtraPackage( in onCreate()
145 LocationUtils.startLocationControllerExtraPackageSettings(this, userHandle); in onCreate()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DPermissionAppsViewModel.kt61 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
127 blocked = !LocationUtils.isLocationEnabled(app.getApplicationContext()) in <lambda>()
141 LocationUtils.addLocationListener(locListener) in <lambda>()
150 LocationUtils.removeLocationListener(locListener) in <lambda>()
318 if (LocationUtils.isLocationGroupAndProvider(activity, groupName, packageName)) { in <lambda>()
326 LocationUtils.isLocationGroupAndControllerExtraPackage(activity, groupName, packageName) in <lambda>()
329 LocationUtils.startLocationControllerExtraPackageSettings(activity, user) in <lambda>()
DAppPermissionViewModel.kt85 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
258 !LocationUtils.isLocationEnabled(app.getApplicationContext()) in <lambda>()
284 LocationUtils.addLocationListener(mainLocListener) in <lambda>()
286 LocationUtils.isAutomotiveLocationBypassAllowlistedPackage( in <lambda>()
291 LocationUtils.addAutomotiveLocationBypassListener(locBypassListener) in <lambda>()
301 LocationUtils.removeLocationListener(mainLocListener) in <lambda>()
303 LocationUtils.isAutomotiveLocationBypassAllowlistedPackage( in <lambda>()
308 LocationUtils.removeAutomotiveLocationBypassListener(locBypassListener) in <lambda>()
915 if (LocationUtils.isLocationGroupAndProvider(context, permGroupName, packageName)) { in <lambda>()
917 LocationUtils.showLocationDialog(context, packageLabel) in <lambda>()
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterQsViewModel.kt51 import com.android.permissioncontroller.permission.utils.LocationUtils
173 LocationUtils.LocationListener {
211 LocationUtils.addLocationListener(this) in onActive()
219 LocationUtils.removeLocationListener(this) in onInactive()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionControlPreference.java49 import com.android.permissioncontroller.permission.utils.LocationUtils;
216 if (LocationUtils.isLocationGroupAndProvider( in onBindViewHolder()
221 } else if (LocationUtils.isLocationGroupAndControllerExtraPackage( in onBindViewHolder()
224 LocationUtils.startLocationControllerExtraPackageSettings(mContext, mUser); in onBindViewHolder()
DPermissionPreference.java43 import com.android.permissioncontroller.permission.utils.LocationUtils;
373 if (LocationUtils.isLocationGroupAndProvider(getContext(), mGroup.getPermGroupName(), in requestChange()
375 LocationUtils.showLocationDialog(getContext(), getAppLabel()); in requestChange()
459 if (LocationUtils.isLocationGroupAndProvider(getContext(), mGroup.getPermGroupName(), in showBackgroundChooserDialog()
461 LocationUtils.showLocationDialog(getContext(), getAppLabel()); in showBackgroundChooserDialog()
/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/ui/wear/
DWearAppPermissionGroupsHelper.kt47 import com.android.permissioncontroller.permission.utils.LocationUtils in <lambda>()
312 if (LocationUtils.isLocationGroupAndProvider(context, permGroupName, packageName)) { in <lambda>()
317 LocationUtils.isLocationGroupAndControllerExtraPackage( in <lambda>()
324 LocationUtils.startLocationControllerExtraPackageSettings(context, user) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DLocationUtils.java51 public class LocationUtils { class
57 private static final String TAG = LocationUtils.class.getSimpleName();
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DPermissionAppsFragment.java46 import com.android.permissioncontroller.permission.utils.LocationUtils;
327 if (LocationUtils.isLocationGroupAndProvider(getContext(), mPermissionApps.getGroupName(), in onPreferenceClick()
329 LocationUtils.showLocationDialog(getContext(), app.getLabel()); in onPreferenceClick()
DAppPermissionsFragment.java63 import com.android.permissioncontroller.permission.utils.LocationUtils;
336 if (LocationUtils.isLocationGroupAndProvider(getContext(), group.getName(), in onPreferenceClick()
338 LocationUtils.showLocationDialog(getContext(), mAppPermissions.getAppLabel()); in onPreferenceClick()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java61 import com.android.permissioncontroller.permission.utils.LocationUtils;
774 if (LocationUtils.isLocationGroupAndProvider(mContext, mName, mPackageInfo.packageName)) {
775 return LocationUtils.isLocationEnabled(mContext) && !asOneTime;
779 if (LocationUtils.isLocationGroupAndControllerExtraPackage(
781 return LocationUtils.isExtraLocationControllerPackageEnabled(mContext) && !asOneTime;
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAppPermissionFragment.java70 import com.android.permissioncontroller.permission.utils.LocationUtils;
180 LocationUtils.getAutomotiveLocationBypassAllowlist(requireContext()); in onCreate()
324 isRequiredApp && LocationUtils.isAutomotiveLocationBypassEnabled( in setSensorStatus()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcherImpl.java49 import com.android.tv.common.util.LocationUtils;
343 + LocationUtils.getCurrentCountry(mContext)); in checkFetchPrerequisite()