Searched refs:location1 (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/base/debug/ |
D | task_annotator_unittest.cc | 139 const Location location1 = FROM_HERE; in TEST_F() local 153 location2.program_counter(), location1.program_counter()}), in TEST_F() 161 location1.program_counter(), location0.program_counter()}), in TEST_F() 166 ExpectedTrace({location2.program_counter(), location1.program_counter(), in TEST_F() 172 ExpectedTrace({location1.program_counter(), location0.program_counter()}), in TEST_F() 176 Unretained(this), loop.task_runner(), location1, location2, in TEST_F() 180 Unretained(this), loop.task_runner(), location0, location1, in TEST_F() 283 const Location location1 = FROM_HERE; in TEST_F() local 320 location2.program_counter(), location1.program_counter()}), in TEST_F() 326 location1.program_counter(), location0.program_counter()}), in TEST_F() [all …]
|
/external/clang/bindings/python/tests/cindex/ |
D | test_location.py | 86 location1 = SourceLocation.from_position(tu, file, 1, 1) 89 range1 = SourceRange.from_locations(location1, location2) 90 range2 = SourceRange.from_locations(location1, location2) 94 range3 = SourceRange.from_locations(location1, location3)
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLocationManagerTest.java | 418 Location location1 = new Location(GPS_PROVIDER); in simulateLocation_shouldNotNotifyListenerIfLessThanFastestInterval() local 419 location1.setTime(time); in simulateLocation_shouldNotNotifyListenerIfLessThanFastestInterval() 424 shadowLocationManager.simulateLocation(location1); in simulateLocation_shouldNotNotifyListenerIfLessThanFastestInterval() 426 assertThat(listener.location.getTime()).isEqualTo(location1.getTime()); in simulateLocation_shouldNotNotifyListenerIfLessThanFastestInterval() 434 Location location1 = new Location(GPS_PROVIDER); in simulateLocation_shouldNotNotifyListenerIfLessThanMinimumDistance() local 435 location1.setLatitude(1); in simulateLocation_shouldNotNotifyListenerIfLessThanMinimumDistance() 436 location1.setLongitude(2); in simulateLocation_shouldNotNotifyListenerIfLessThanMinimumDistance() 437 location1.setTime(0); in simulateLocation_shouldNotNotifyListenerIfLessThanMinimumDistance() 444 shadowLocationManager.simulateLocation(location1); in simulateLocation_shouldNotNotifyListenerIfLessThanMinimumDistance()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLocationManager.java | 470 private static float distanceBetween(Location location1, Location location2) { in distanceBetween() argument 472 double latDifference = Math.toRadians(location2.getLatitude() - location1.getLatitude()); in distanceBetween() 473 double lonDifference = Math.toRadians(location2.getLongitude() - location1.getLongitude()); in distanceBetween() 475 …Math.cos(Math.toRadians(location1.getLatitude())) * Math.cos(Math.toRadians(location2.getLatitude(… in distanceBetween()
|