/cts/tests/location/location_coarse/src/android/location/cts/coarse/ |
D | LocationManagerCoarseTest.java | 149 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/ |
D | DecorInsetTestsBase.java | 133 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()
|
D | WindowInsetsAnimationSynchronicityTests.java | 105 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/ |
D | LocationManagerFineTest.java | 229 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/ |
D | RendererProtectedTexturesTest.java | 71 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/ |
D | TouchableInsetsProviderTest.java | 174 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/ |
D | test_lens_movement_reporting.py | 189 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/ |
D | SELinuxTargetSdkTestBase.java | 106 for (String loc : locations) { in checkDex2oatAccess() 107 File dex2oatBinary = new File(loc + "/dex2oat"); in checkDex2oatAccess()
|
/cts/suite/cts/utils/ |
D | grapher.py | 72 ax.legend(loc='upper right').get_frame().set_fill(False)
|
/cts/tests/media/src/android/mediav2/cts/ |
D | MuxerTest.java | 476 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/ |
D | EmergencyCallOnSimCallManagerTest.java | 188 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/ |
D | ConfigurationTest.java | 823 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/ |
D | FragmentTransitionTest.java | 1046 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/ |
D | test_ev_compensation_advanced.py | 149 pylab.legend(loc='lower right', numpoints=1, fancybox=True)
|
D | test_dng_noise_model.py | 163 pylab.legend(loc=2)
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_param_shading_mode.py | 55 pylab.legend(loc='upper center', numpoints=1, fancybox=True)
|
D | test_raw_exposure.py | 98 pylab.legend(loc='lower right', numpoints=1, fancybox=True)
|
D | test_post_raw_sensitivity_boost.py | 117 pylab.legend(loc='lower right', numpoints=1, fancybox=True)
|
/cts/apps/CameraITS/tests/scene9/ |
D | test_jpeg_quality.py | 201 pylab.legend(loc='upper right', numpoints=1, fancybox=True)
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraMetadataGetter.java | 415 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/ |
D | ItsSerializer.java | 258 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/ |
D | SatelliteManagerTestOnMockService.java | 5223 Location loc = LocationUtils.createLocation( in setTestProviderLocation() local 5225 sLocationManager.setTestProviderLocation(TEST_PROVIDER, loc); in setTestProviderLocation()
|