Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 50) sorted by relevance

12

/cts/tests/tests/location/src/android/location/cts/
DLocationTest.java17 package android.location.cts;
21 import android.location.Location;
22 import android.location.SettingInjectorService;
58 Location location = new Location(l); in testConstructor() local
59 assertTestLocation(location); in testConstructor()
72 Location location = new Location("LocationProvider"); in testDump() local
73 location.dump(printer, ""); in testDump()
78 Location location = new Location(""); in testBearingTo() local
82 location.setLatitude(39.9); in testBearingTo()
83 location.setLongitude(116.4); in testBearingTo()
[all …]
DLocationManagerTest.java17 package android.location.cts;
26 import android.location.Criteria;
27 import android.location.GpsStatus;
28 import android.location.GpsStatus.Listener;
29 import android.location.GpsStatus.NmeaListener;
30 import android.location.Location;
31 import android.location.LocationListener;
32 import android.location.LocationManager;
33 import android.location.LocationProvider;
396 Location location = listener.getLocation(); in doLocationUpdatesWithLocationListener() local
[all …]
DGpsStatusTest.java17 package android.location.cts;
21 import android.location.GpsSatellite;
22 import android.location.GpsStatus;
23 import android.location.LocationManager;
DLocationProviderTest.java17 package android.location.cts;
19 import android.location.Criteria;
20 import android.location.LocationManager;
21 import android.location.LocationProvider;
DGpsSatelliteTest.java17 package android.location.cts;
21 import android.location.GpsSatellite;
22 import android.location.GpsStatus;
23 import android.location.LocationManager;
DGeocoderTest.java17 package android.location.cts;
20 import android.location.Geocoder;
DBaseMockLocationTest.java17 package android.location.cts;
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsample.rs27 static bool sub_test_RGBA_1D(rs_allocation alloc1D, float location, float lod,
30 float4 result = rsSample(alloc1D, gNearest, location, lod);
33 result = rsSample(alloc1D, gLinear, location, lod);
36 result = rsSample(alloc1D, gMipNearest, location, lod);
39 result = rsSample(alloc1D, gMipLinear, location, lod);
44 static bool sub_test_RGBA_2D(rs_allocation alloc2D, float2 location, float lod,
47 float4 result = rsSample(alloc2D, gNearest, location, lod);
50 result = rsSample(alloc2D, gLinear, location, lod);
53 result = rsSample(alloc2D, gMipNearest, location, lod);
56 result = rsSample(alloc2D, gMipLinear, location, lod);
[all …]
/cts/tests/tests/location2/src/android/location2/cts/
DLocationManagerTest.java24 import android.location.Criteria;
25 import android.location.GpsStatus.Listener;
26 import android.location.GpsStatus.NmeaListener;
27 import android.location.Location;
28 import android.location.LocationListener;
29 import android.location.LocationManager;
155 final Location location = mManager.getLastKnownLocation(providerName); in doTestGetLocationUpdates_withIntent() local
156 assertEquals(providerName, location.getProvider()); in doTestGetLocationUpdates_withIntent()
158 assertEquals(3000.0f, location.getAccuracy()); in doTestGetLocationUpdates_withIntent()
159 assertEquals(LAT, location.getLatitude(), FUDGER_DELTA); in doTestGetLocationUpdates_withIntent()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationVerifier.java17 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 …]
DLocationModeOffTestActivity.java17 package com.android.cts.verifier.location;
19 import android.location.LocationManager;
DLocationModeDeviceOnlyTestActivity.java17 package com.android.cts.verifier.location;
19 import android.location.LocationManager;
DLocationModeHighAccuracyTestActivity.java17 package com.android.cts.verifier.location;
19 import android.location.LocationManager;
DLocationModeBatterySavingTestActivity.java17 package com.android.cts.verifier.location;
19 import android.location.LocationManager;
/cts/tools/signature-tools/src/signature/io/html/
DHtmlDeltaExternalizer.java46 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/common/util/src/com/android/compatibility/common/util/
DReportLog.java46 private Result(String location, String message, double[] values, in Result() argument
48 this(location, message, values, null /*target*/, type, unit); in Result()
63 private Result(String location, String message, double[] values, in Result() argument
65 mLocation = location; in Result()
153 String message, double[] values, ResultType type, ResultUnit unit, String location) { in addValues() argument
154 mDetails.add(new Result(location, message, values, type, unit)); in addValues()
169 ResultUnit unit, String location) { in addValue() argument
170 mDetails.add(new Result(location, message, new double[] {value}, type, unit)); in addValue()
/cts/tests/tests/permission/src/android/permission/cts/
DNoLocationPermissionTest.java23 import android.location.Location;
24 import android.location.LocationListener;
25 import android.location.LocationManager;
371 Location location = new Location(TEST_PROVIDER_NAME); in testSetTestProviderLocation() local
372 location.makeComplete(); in testSetTestProviderLocation()
375 mLocationManager.setTestProviderLocation(TEST_PROVIDER_NAME, location); in testSetTestProviderLocation()
469 public void onLocationChanged(Location location) { in onLocationChanged() argument
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java165 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/tools/signature-tools/src/signature/io/impl/
DToStringExternalizer.java28 public void externalize(String location, IApiDelta delta) in externalize() argument
32 new FileOutputStream(location)); in externalize()
/cts/tests/tests/view/src/android/view/cts/
DMockLinearLayout.java38 public ViewParent invalidateChildInParent(int[] location, Rect dirty) { in invalidateChildInParent() argument
40 return super.invalidateChildInParent(location, dirty); in invalidateChildInParent()
/cts/tests/tests/widget/src/android/widget/cts/
DMockLinearLayout.java38 public ViewParent invalidateChildInParent(int[] location, Rect dirty) { in invalidateChildInParent() argument
40 return super.invalidateChildInParent(location, dirty); in invalidateChildInParent()
/cts/tests/tests/media/src/android/media/cts/
DMediaMuxerTest.java385 String location = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in verifyLocationInFile() local
386 assertNotNull("No location information found in file " + fileName, location); in verifyLocationInFile()
394 int minusIndex = location.lastIndexOf('-'); in verifyLocationInFile()
395 int plusIndex = location.lastIndexOf('+'); in verifyLocationInFile()
397 assertTrue("+ or - is not found or found only at the beginning [" + location + "]", in verifyLocationInFile()
401 float latitude = Float.parseFloat(location.substring(0, index - 1)); in verifyLocationInFile()
402 float longitude = Float.parseFloat(location.substring(index)); in verifyLocationInFile()
403 assertTrue("Incorrect latitude: " + latitude + " [" + location + "]", in verifyLocationInFile()
405 assertTrue("Incorrect longitude: " + longitude + " [" + location + "]", in verifyLocationInFile()
/cts/tests/tests/webkit/src/android/webkit/cts/
DGeolocationTest.java24 import android.location.Criteria;
25 import android.location.Location;
26 import android.location.LocationListener;
27 import android.location.LocationManager;
28 import android.location.LocationProvider;
253 Location location = new Location(mProviders.get(i)); in updateLocation() local
254 location.setLatitude(40); in updateLocation()
255 location.setLongitude(40); in updateLocation()
256 location.setAccuracy(1.0f); in updateLocation()
257 location.setTime(java.lang.System.currentTimeMillis()); in updateLocation()
[all …]
/cts/tools/signature-tools/src/signature/io/
DIApiDeltaExternalizer.java24 void externalize(String location, IApiDelta delta) throws IOException; in externalize() argument
/cts/tests/app/src/android/app/cts/
DInstrumentationTestActivity.java84 public void getLocationOnScreen(int[] location) { in getLocationOnScreen() argument
85 super.getLocationOnScreen(location); in getLocationOnScreen()
86 location[0] = location[1] = 10; in getLocationOnScreen()

12