/cts/tests/tests/location/src/android/location/cts/ |
D | LocationTest.java | 17 package android.location.cts; 20 import android.location.Location; 48 Location location = new Location(l); in testConstructor() local 49 assertTestLocation(location); in testConstructor() 62 Location location = new Location("LocationProvider"); in testDump() local 63 location.dump(printer, ""); in testDump() 68 Location location = new Location(""); in testBearingTo() local 72 location.setLatitude(39.9); in testBearingTo() 73 location.setLongitude(116.4); in testBearingTo() 77 assertEquals(-128.66, location.bearingTo(dest), DELTA); in testBearingTo() [all …]
|
D | LocationManagerTest.java | 17 package android.location.cts; 27 import android.location.Criteria; 28 import android.location.GpsStatus; 29 import android.location.GpsStatus.Listener; 30 import android.location.Location; 31 import android.location.LocationListener; 32 import android.location.LocationManager; 33 import android.location.LocationProvider; 385 Location location = listener.getLocation(); in doLocationUpdatesWithLocationListener() local 386 assertEquals(providerName, location.getProvider()); in doLocationUpdatesWithLocationListener() [all …]
|
D | GpsStatusTest.java | 17 package android.location.cts; 21 import android.location.GpsSatellite; 22 import android.location.GpsStatus; 23 import android.location.LocationManager;
|
D | LocationProviderTest.java | 17 package android.location.cts; 21 import android.location.Criteria; 22 import android.location.LocationManager; 23 import android.location.LocationProvider;
|
D | GpsSatelliteTest.java | 17 package android.location.cts; 21 import android.location.GpsSatellite; 22 import android.location.GpsStatus; 23 import android.location.LocationManager;
|
D | GeocoderTest.java | 17 package android.location.cts; 20 import android.location.Geocoder;
|
/cts/tests/tests/location2/src/android/location2/cts/ |
D | LocationManagerTest.java | 26 import android.location.Criteria; 27 import android.location.GpsStatus; 28 import android.location.GpsStatus.Listener; 29 import android.location.Location; 30 import android.location.LocationListener; 31 import android.location.LocationManager; 32 import android.location.LocationProvider; 152 final Location location = mManager.getLastKnownLocation(providerName); in doTestGetLocationUpdates_withIntent() local 153 assertEquals(providerName, location.getProvider()); in doTestGetLocationUpdates_withIntent() 155 assertEquals(3000.0f, location.getAccuracy()); in doTestGetLocationUpdates_withIntent() [all …]
|
/cts/tests/src/android/renderscript/cts/ |
D | sample.rs | 62 static bool sub_test_RGBA_1D(rs_allocation alloc1D, float location, float lod, 65 float4 result = rsSample(alloc1D, gNearest, location, lod); 68 result = rsSample(alloc1D, gLinear, location, lod); 71 result = rsSample(alloc1D, gMipNearest, location, lod); 74 result = rsSample(alloc1D, gMipLinear, location, lod); 79 static bool sub_test_RGBA_2D(rs_allocation alloc2D, float2 location, float lod, 82 float4 result = rsSample(alloc2D, gNearest, location, lod); 85 result = rsSample(alloc2D, gLinear, location, lod); 88 result = rsSample(alloc2D, gMipNearest, location, lod); 91 result = rsSample(alloc2D, gMipLinear, location, lod); [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | LocationVerifier.java | 17 package com.android.cts.verifier.location; 19 import android.location.Location; 20 import android.location.LocationListener; 21 import android.location.LocationManager; 78 public void onLocationChanged(Location location) { in onLocationChanged() argument 85 long timestamp = location.getTime(); in onLocationChanged() 93 if (location.isFromMockProvider() != mIsMockProvider) { in onLocationChanged() 96 location.isFromMockProvider()); in onLocationChanged() 158 public void onLocationChanged(Location location) { in onLocationChanged() argument 160 if (!location.getProvider().equals(mProvider)) return; in onLocationChanged() [all …]
|
D | LocationModeOffTestActivity.java | 17 package com.android.cts.verifier.location; 19 import android.location.LocationManager;
|
D | LocationModeDeviceOnlyTestActivity.java | 17 package com.android.cts.verifier.location; 19 import android.location.LocationManager;
|
D | LocationModeHighAccuracyTestActivity.java | 17 package com.android.cts.verifier.location; 19 import android.location.LocationManager;
|
D | LocationModeBatterySavingTestActivity.java | 17 package com.android.cts.verifier.location; 19 import android.location.LocationManager;
|
D | GpsTestActivity.java | 17 package com.android.cts.verifier.location; 25 import android.location.LocationManager;
|
/cts/tools/signature-tools/src/signature/io/html/ |
D | HtmlDeltaExternalizer.java | 46 public void externalize(String location, IApiDelta apiDelta) in externalize() argument 48 if (!location.endsWith(File.separator)) { in externalize() 49 location += File.separator; in externalize() 52 File directory = new File(location); in externalize() 57 copyStyleSheet(location); in externalize() 70 writeToFile(location + OVERVIEW_PAGE_NAME, content.toString()); in externalize() 77 File file = new File(location + DELTA_FOLDER); in externalize() 88 String packageOverviewFileName = location + DELTA_FOLDER in externalize() 100 String classOverviewFileName = location + DELTA_FOLDER in externalize()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoLocationPermissionTest.java | 22 import android.location.Location; 23 import android.location.LocationListener; 24 import android.location.LocationManager; 358 Location location = new Location(TEST_PROVIDER_NAME); in testSetTestProviderLocation() local 359 location.makeComplete(); in testSetTestProviderLocation() 362 mLocationManager.setTestProviderLocation(TEST_PROVIDER_NAME, location); in testSetTestProviderLocation() 456 public void onLocationChanged(Location location) { in onLocationChanged() argument
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | NinePatchTest.java | 165 Rect location = new Rect(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in testGetTransparentRegion() local 166 Region region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() 175 location = new Rect(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in testGetTransparentRegion() 176 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() 181 location = new Rect(0, 0, mBitmap.getWidth() * 2, mBitmap.getHeight() * 2); in testGetTransparentRegion() 182 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() 193 location = new Rect(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in testGetTransparentRegion() 194 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() 199 location = new Rect(0, 0, mBitmap.getWidth() * 2, mBitmap.getHeight() * 2); in testGetTransparentRegion() 200 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | GeolocationTest.java | 22 import android.location.Criteria; 23 import android.location.Location; 24 import android.location.LocationListener; 25 import android.location.LocationManager; 26 import android.location.LocationProvider; 239 Location location = new Location(mProviders.get(i)); in updateLocation() local 240 location.setLatitude(40); in updateLocation() 241 location.setLongitude(40); in updateLocation() 242 location.setAccuracy(1.0f); in updateLocation() 243 location.setTime(java.lang.System.currentTimeMillis()); in updateLocation() [all …]
|
/cts/tests/src/android/widget/cts/ |
D | MockLinearLayout.java | 38 public ViewParent invalidateChildInParent(int[] location, Rect dirty) { in invalidateChildInParent() argument 40 return super.invalidateChildInParent(location, dirty); in invalidateChildInParent()
|
/cts/tools/signature-tools/src/signature/io/impl/ |
D | ToStringExternalizer.java | 28 public void externalize(String location, IApiDelta delta) in externalize() argument 32 new FileOutputStream(location)); in externalize()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaMuxerTest.java | 369 String location = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in verifyLocationInFile() local 370 assertNotNull("No location information found in file " + fileName, location); in verifyLocationInFile() 377 int index = location.lastIndexOf('-'); in verifyLocationInFile() 379 index = location.lastIndexOf('+'); in verifyLocationInFile() 383 float latitude = Float.parseFloat(location.substring(0, index - 1)); in verifyLocationInFile() 384 float longitude = Float.parseFloat(location.substring(index)); in verifyLocationInFile()
|
D | MediaRecorderTest.java | 255 String location = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in checkLocationInFile() local 256 if (location == null) { in checkLocationInFile() 264 Log.v(TAG, "location: " + location); in checkLocationInFile() 268 int index = location.lastIndexOf('-'); in checkLocationInFile() 270 index = location.lastIndexOf('+'); in checkLocationInFile() 274 float latitude = Float.parseFloat(location.substring(0, index - 1)); in checkLocationInFile() 275 float longitude = Float.parseFloat(location.substring(index)); in checkLocationInFile()
|
/cts/tests/src/android/app/cts/ |
D | InstrumentationTestActivity.java | 84 public void getLocationOnScreen(int[] location) { in getLocationOnScreen() argument 85 super.getLocationOnScreen(location); in getLocationOnScreen() 86 location[0] = location[1] = 10; in getLocationOnScreen()
|
/cts/tools/signature-tools/src/signature/io/ |
D | IApiDeltaExternalizer.java | 24 void externalize(String location, IApiDelta delta) throws IOException; in externalize() argument
|
/cts/apps/CtsVerifier/ |
D | proguard.flags | 9 -keepclasseswithmembers class * extends com.android.cts.verifier.location.LocationModeTestActivity
|