Lines Matching refs:Preconditions
72 import com.android.internal.util.Preconditions;
771 Preconditions.checkArgument(provider != null, "invalid null provider"); in isProviderEnabledForUser()
800 Preconditions.checkArgument(provider != null, "invalid null provider"); in setProviderEnabledForUser()
912 Preconditions.checkArgument(provider != null, "invalid null provider"); in getLastKnownLocation()
913 Preconditions.checkArgument(lastLocationRequest != null, in getLastKnownLocation()
979 Preconditions.checkArgument(locationRequest.getProvider() != null); in getCurrentLocation()
1025 Preconditions.checkArgument(provider != null, "invalid null provider"); in getCurrentLocation()
1026 Preconditions.checkArgument(locationRequest != null, "invalid null location request"); in getCurrentLocation()
1070 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestSingleUpdate()
1109 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
1142 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestSingleUpdate()
1176 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
1274 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestLocationUpdates()
1349 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestLocationUpdates()
1377 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestLocationUpdates()
1411 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestLocationUpdates()
1482 Preconditions.checkArgument(locationRequest.getProvider() != null); in requestLocationUpdates()
1512 Preconditions.checkArgument(locationRequest.getProvider() != null); in requestLocationUpdates()
1578 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestLocationUpdates()
1579 Preconditions.checkArgument(locationRequest != null, "invalid null location request"); in requestLocationUpdates()
1589 Preconditions.checkState(transport.isRegistered()); in requestLocationUpdates()
1627 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestLocationUpdates()
1628 Preconditions.checkArgument(locationRequest != null, "invalid null location request"); in requestLocationUpdates()
1629 Preconditions.checkArgument(pendingIntent != null, "invalid null pending intent"); in requestLocationUpdates()
1632 Preconditions.checkArgument(pendingIntent.isTargetedToPackage(), in requestLocationUpdates()
1637 Preconditions.checkArgument(!pendingIntent.isImmutable(), in requestLocationUpdates()
1670 Preconditions.checkArgument(location != null, "invalid null location"); in injectLocation()
1671 Preconditions.checkArgument(location.isComplete(), in injectLocation()
1700 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestFlush()
1701 Preconditions.checkArgument(listener != null, "invalid null listener"); in requestFlush()
1707 Preconditions.checkArgument(transport != null, in requestFlush()
1734 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestFlush()
1735 Preconditions.checkArgument(pendingIntent != null, "invalid null pending intent"); in requestFlush()
1760 Preconditions.checkArgument(listener != null, "invalid null listener"); in removeUpdates()
1787 Preconditions.checkArgument(pendingIntent != null, "invalid null pending intent"); in removeUpdates()
1806 Preconditions.checkArgument(provider != null, "invalid null provider"); in hasProvider()
1857 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in getProviders()
1892 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in getBestProvider()
1916 Preconditions.checkArgument(provider != null, "invalid null provider"); in getProvider()
1956 Preconditions.checkArgument(provider != null, "invalid null provider"); in getProviderProperties()
2055 Preconditions.checkArgument(provider != null, "invalid null provider"); in sendExtraCommand()
2056 Preconditions.checkArgument(command != null, "invalid null command"); in sendExtraCommand()
2128 Preconditions.checkArgument(provider != null, "invalid null provider"); in addTestProvider()
2129 Preconditions.checkArgument(properties != null, "invalid null properties"); in addTestProvider()
2130 Preconditions.checkArgument(extraAttributionTags != null, in addTestProvider()
2153 Preconditions.checkArgument(provider != null, "invalid null provider"); in removeTestProvider()
2180 Preconditions.checkArgument(provider != null, "invalid null provider"); in setTestProviderLocation()
2181 Preconditions.checkArgument(location != null, "invalid null location"); in setTestProviderLocation()
2184 Preconditions.checkArgument(location.isComplete(), in setTestProviderLocation()
2218 Preconditions.checkArgument(provider != null, "invalid null provider"); in setTestProviderEnabled()
2288 Preconditions.checkArgument(pendingIntent != null, "invalid null pending intent"); in addProximityAlert()
2291 Preconditions.checkArgument(pendingIntent.isTargetedToPackage(), in addProximityAlert()
2296 Preconditions.checkArgument(!pendingIntent.isImmutable(), in addProximityAlert()
2330 Preconditions.checkArgument(intent != null, "invalid null pending intent"); in removeProximityAlert()
2800 Preconditions.checkArgument(measurementCorrections != null); in injectGnssMeasurementCorrections()
3229 Preconditions.checkArgument(executor != null, "illegal null executor"); in GetCurrentLocationTransport()
3230 Preconditions.checkArgument(consumer != null, "illegal null consumer"); in GetCurrentLocationTransport()
3267 Preconditions.checkArgument(listener != null, "invalid null listener"); in LocationListenerTransport()
3273 Preconditions.checkArgument(executor != null, "invalid null executor"); in setExecutor()
3366 Preconditions.checkArgument(executor != null, "invalid null executor"); in GnssStatusTransport()
3367 Preconditions.checkArgument(listener != null, "invalid null callback"); in GnssStatusTransport()
3448 Preconditions.checkArgument(executor != null, "invalid null executor"); in GnssNmeaTransport()
3449 Preconditions.checkArgument(listener != null, "invalid null listener"); in GnssNmeaTransport()
3492 Preconditions.checkArgument(executor != null, "invalid null executor"); in GnssMeasurementsTransport()
3493 Preconditions.checkArgument(listener != null, "invalid null callback"); in GnssMeasurementsTransport()
3494 Preconditions.checkArgument(request != null, "invalid null request"); in GnssMeasurementsTransport()
3546 Preconditions.checkArgument(executor != null, "invalid null executor"); in GnssAntennaInfoTransport()
3547 Preconditions.checkArgument(listener != null, "invalid null listener"); in GnssAntennaInfoTransport()
3589 Preconditions.checkArgument(executor != null, "invalid null executor"); in GnssNavigationTransport()
3590 Preconditions.checkArgument(listener != null, "invalid null callback"); in GnssNavigationTransport()
3634 Preconditions.checkArgument(executor != null, "invalid null executor"); in ProviderRequestTransport()
3635 Preconditions.checkArgument(listener != null, "invalid null callback"); in ProviderRequestTransport()
3699 Preconditions.checkArgument(userId >= 0); in recompute()