Home
last modified time | relevance | path

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

/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DGnssDeviceInfo.java46 LocationManager locationManager = in collectDeviceInfo() local
49 if (locationManager == null) { in collectDeviceInfo()
53 collectGnssHardwareModelName(store, locationManager); in collectDeviceInfo()
55 collectGnssCapabilities(store, locationManager.getGnssCapabilities()); in collectDeviceInfo()
57 collectAccumulatedDeltaRangeMeasurements(store, locationManager); in collectDeviceInfo()
65 DeviceInfoStore store, LocationManager locationManager) throws IOException { in collectGnssHardwareModelName() argument
66 if (!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { in collectGnssHardwareModelName()
73 String gnssHardwareModelName = locationManager.getGnssHardwareModelName(); in collectGnssHardwareModelName()
135 LocationManager locationManager) throws InterruptedException, IOException { in collectAccumulatedDeltaRangeMeasurements() argument
139 locationManager.registerGnssMeasurementsCallback(mMeasurementListener); in collectAccumulatedDeltaRangeMeasurements()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21088/src/android/security/cts/CVE_2023_21088/
DPocActivity.java41 LocationManager locationManager = getSystemService(LocationManager.class); in onResume() local
44 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0 /* minTimeMs */ , in onResume()
56 locationManager.requestFlush(LocationManager.GPS_PROVIDER, pendingIntent, in onResume()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt143 val locationManager = context.getSystemService(LocationManager::class.java)!! in nativeNoteOp() constant
145 wasLocationEnabled = locationManager.isLocationEnabled in nativeNoteOp()
146 locationManager.setLocationEnabledForUser(true, myUserHandle) in nativeNoteOp()
152 val locationManager = context.getSystemService(LocationManager::class.java)!! in nativeNoteOp() constant
154 locationManager.setLocationEnabledForUser(wasLocationEnabled, myUserHandle) in nativeNoteOp()
535 val locationManager = context.createAttributionContext(TEST_ATTRIBUTION_TAG) in nativeNoteOp() constant
539 locationManager.getProviders(true).contains(LocationManager.NETWORK_PROVIDER)) in nativeNoteOp()
541 val location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER) in nativeNoteOp()
555 val locationManager = context.createAttributionContext(TEST_ATTRIBUTION_TAG) in nativeNoteOp() constant
559 locationManager.getProviders(true).contains(LocationManager.NETWORK_PROVIDER)) in nativeNoteOp()
[all …]
DForegroundModeAndActiveTest.kt81 private val locationManager = context.getSystemService(LocationManager::class.java)!! in <lambda>() constant
127 wasLocationEnabled = locationManager.isLocationEnabled in <lambda>()
128 locationManager.setLocationEnabledForUser(true, Process.myUserHandle()) in <lambda>()
591 locationManager.setLocationEnabledForUser(wasLocationEnabled, Process.myUserHandle()) in <lambda>()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DTestBase.kt79 private val locationManager = context.getSystemService(LocationManager::class.java)!! constant
169 locationWasEnabled = locationManager.isLocationEnabledForUser(userHandle) in setSystemPropertyDuration()
172 locationManager.setLocationEnabledForUser(true, userHandle) in setSystemPropertyDuration()
180 locationManager.setLocationEnabledForUser(false, userHandle) in disableLocation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestListActivity.java122 LocationManager locationManager = in handleItemClick() local
124 if (!mWifiManager.isWifiEnabled() || !locationManager.isLocationEnabled()) { in handleItemClick()
/cts/tests/tests/time/src/android/app/time/cts/
DTimeManagerTest.java314 LocationManager locationManager = mContext.getSystemService(LocationManager.class); in testLocationManagerAffectsTimeZoneCapabilities() local
315 assertNotNull(locationManager); in testLocationManagerAffectsTimeZoneCapabilities()
330 boolean locationEnabled = locationManager.isLocationEnabledForUser(userHandle); in testLocationManagerAffectsTimeZoneCapabilities()
332 locationManager.setLocationEnabledForUser(!locationEnabled, userHandle); in testLocationManagerAffectsTimeZoneCapabilities()
338 locationManager.setLocationEnabledForUser(locationEnabled, userHandle); in testLocationManagerAffectsTimeZoneCapabilities()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DNetworkingHelper.java307 final LocationManager locationManager = mContext.getSystemService(LocationManager.class); in setLocationMode() local
310 () -> wantEnabled == locationManager.isLocationEnabled()); in setLocationMode()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1306 final LocationManager locationManager = in testAccessCoarseLocationPermission() local
1311 final String bestProvider = locationManager.getBestProvider(criteria, false); in testAccessCoarseLocationPermission()
1315 locationManager.getLastKnownLocation(provider); in testAccessCoarseLocationPermission()