Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 22 of 22) sorted by relevance

/cts/tests/location/location_coarse/src/android/location/cts/coarse/
DLocationManagerCoarseTest.java149 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation() local
151 mManager.setTestProviderLocation(TEST_PROVIDER, loc); in testGetLastKnownLocation()
152 assertThat(mManager.getLastKnownLocation(TEST_PROVIDER)).isNearby(loc, in testGetLastKnownLocation()
171 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates() local
174 extras.putParcelable(Location.EXTRA_NO_GPS_LOCATION, new Location(loc)); in testRequestLocationUpdates()
175 loc.setExtras(extras); in testRequestLocationUpdates()
185 mManager.setTestProviderLocation(TEST_PROVIDER, loc); in testRequestLocationUpdates()
186 assertThat(capture.getNextLocation(TIMEOUT_MS)).isNearby(loc, mMaxCoarseFudgeDistanceM); in testRequestLocationUpdates()
195 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates_Passive() local
198 extras.putParcelable(Location.EXTRA_NO_GPS_LOCATION, new Location(loc)); in testRequestLocationUpdates_Passive()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DDecorInsetTestsBase.java133 int[] loc = new int[2]; in rectInWindow() local
134 view.getLocationInWindow(loc); in rectInWindow()
135 return new Rect(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight()); in rectInWindow()
DWindowInsetsAnimationSynchronicityTests.java105 int[] loc = new int[2]; in runTest() local
106 activity.mTestView.getLocationOnScreen(loc); in runTest()
107 final int center = activity.mTestView.getWidth() / 2 + loc[0]; in runTest()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java229 Location loc = createLocation(GPS_PROVIDER, mRandom); in testGetLastKnownLocation_AdasLocationSettingsOn() local
230 mManager.setTestProviderLocation(GPS_PROVIDER, loc); in testGetLastKnownLocation_AdasLocationSettingsOn()
249 .isEqualTo(loc); in testGetLastKnownLocation_AdasLocationSettingsOn()
277 Location loc = createLocation(GPS_PROVIDER, mRandom); in testGetLastKnownLocation_AdasLocationSettingsOff() local
278 mManager.setTestProviderLocation(GPS_PROVIDER, loc); in testGetLastKnownLocation_AdasLocationSettingsOff()
339 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation() local
344 mManager.setTestProviderLocation(TEST_PROVIDER, loc); in testGetCurrentLocation()
345 assertThat(capture.getLocation(TIMEOUT_MS)).isEqualTo(loc); in testGetCurrentLocation()
382 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation_FreshOldLocation() local
384 mManager.setTestProviderLocation(TEST_PROVIDER, loc); in testGetCurrentLocation_FreshOldLocation()
[all …]
/cts/tests/vr/src/android/vr/cts/
DRendererProtectedTexturesTest.java71 int loc = GLES20.glGetUniformLocation(mProgram, "protectedTexture"); in onSurfaceCreated() local
72 GLES20.glUniform1i(loc, 2); in onSurfaceCreated()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/
DTouchableInsetsProviderTest.java174 int[] loc = new int[2]; in obtainMotionEvent() local
175 view.getLocationOnScreen(loc); in obtainMotionEvent()
177 loc[0] + x, loc[1] + y, /* metaState= */ 0); in obtainMotionEvent()
/cts/apps/CameraITS/tests/scene3/
Dtest_lens_movement_reporting.py189 loc = data_af_fd[first_key]['loc']
191 if not math.isclose(loc, fd, rel_tol=_POSITION_RTOL):
211 loc = data_min_fd[last_key]['loc']
213 if not math.isclose(loc, fd, rel_tol=_POSITION_RTOL):
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java106 for (String loc : locations) { in checkDex2oatAccess()
107 File dex2oatBinary = new File(loc + "/dex2oat"); in checkDex2oatAccess()
/cts/suite/cts/utils/
Dgrapher.py72 ax.legend(loc='upper right').get_frame().set_fill(False)
/cts/tests/media/src/android/mediav2/cts/
DMuxerTest.java476 String loc = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_LOCATION); in verifyLocationInFile() local
477 assertTrue(loc != null); in verifyLocationInFile()
478 int minusIndex = loc.lastIndexOf('-'); in verifyLocationInFile()
479 int plusIndex = loc.lastIndexOf('+'); in verifyLocationInFile()
481 assertTrue("+ or - is not found or found only at the beginning [" + loc + "]", in verifyLocationInFile()
485 float latitude = Float.parseFloat(loc.substring(0, index - 1)); in verifyLocationInFile()
486 int lastIndex = loc.lastIndexOf('/', index); in verifyLocationInFile()
488 lastIndex = loc.length(); in verifyLocationInFile()
490 float longitude = Float.parseFloat(loc.substring(index, lastIndex - 1)); in verifyLocationInFile()
491 assertTrue("Incorrect latitude: " + latitude + " [" + loc + "]", in verifyLocationInFile()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DEmergencyCallOnSimCallManagerTest.java188 Location loc = LocationUtils.createLocation(TEST_PROVIDER, in testQueryLocationForEmergencyReturnLocation() local
191 mLocationManager.setTestProviderLocation(TEST_PROVIDER, loc); in testQueryLocationForEmergencyReturnLocation()
/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java823 Locale loc = Locale.forLanguageTag("en"); in testSetLocales_oneLtr() local
824 LocaleList ll = new LocaleList(loc); in testSetLocales_oneLtr()
826 assertEquals(loc, config.locale); in testSetLocales_oneLtr()
834 Locale loc = Locale.forLanguageTag("az-Arab"); in testSetLocales_oneRtl() local
835 LocaleList ll = new LocaleList(loc); in testSetLocales_oneRtl()
837 assertEquals(loc, config.locale); in testSetLocales_oneRtl()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentTransitionTest.java1046 final int[] loc = new int[2]; in getBoundsOnScreen() local
1047 view.getLocationOnScreen(loc); in getBoundsOnScreen()
1048 return new Rect(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight()); in getBoundsOnScreen()
/cts/apps/CameraITS/tests/scene1_1/
Dtest_ev_compensation_advanced.py149 pylab.legend(loc='lower right', numpoints=1, fancybox=True)
Dtest_dng_noise_model.py163 pylab.legend(loc=2)
/cts/apps/CameraITS/tests/scene1_2/
Dtest_param_shading_mode.py55 pylab.legend(loc='upper center', numpoints=1, fancybox=True)
Dtest_raw_exposure.py98 pylab.legend(loc='lower right', numpoints=1, fancybox=True)
Dtest_post_raw_sensitivity_boost.py117 pylab.legend(loc='lower right', numpoints=1, fancybox=True)
/cts/apps/CameraITS/tests/scene9/
Dtest_jpeg_quality.py201 pylab.legend(loc='upper right', numpoints=1, fancybox=True)
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java415 private static Object serializeLocation(Location loc) in serializeLocation() argument
417 return loc.toString(); in serializeLocation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java258 private static Object serializeLocation(Location loc) in serializeLocation() argument
260 return loc.toString(); in serializeLocation()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DSatelliteManagerTestOnMockService.java5223 Location loc = LocationUtils.createLocation( in setTestProviderLocation() local
5225 sLocationManager.setTestProviderLocation(TEST_PROVIDER, loc); in setTestProviderLocation()