Home
last modified time | relevance | path

Searched refs:locations (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/location/java/android/location/
DLocationResult.java45 public static @NonNull LocationResult create(@NonNull List<Location> locations) { in create() argument
46 Preconditions.checkArgument(!locations.isEmpty()); in create()
47 ArrayList<Location> locationsCopy = new ArrayList<>(locations.size()); in create()
48 for (Location location : locations) { in create()
58 public static @NonNull LocationResult create(@NonNull Location... locations) { in create() argument
59 Preconditions.checkArgument(locations.length > 0); in create()
60 ArrayList<Location> locationsCopy = new ArrayList<>(locations.length); in create()
61 for (Location location : locations) { in create()
72 public static @NonNull LocationResult wrap(@NonNull List<Location> locations) { in wrap() argument
73 Preconditions.checkArgument(!locations.isEmpty()); in wrap()
[all …]
DLocationListener.java60 default void onLocationChanged(@NonNull List<Location> locations) { in onLocationChanged() argument
61 final int size = locations.size(); in onLocationChanged()
63 onLocationChanged(locations.get(i)); in onLocationChanged()
/frameworks/base/services/core/jni/gnss/
DGnssBatchingCallback.cpp43 const std::vector<android::hardware::gnss::GnssLocation>& locations) { in gnssLocationBatchCb() argument
44 GnssBatchingCallbackUtil::gnssLocationBatchCbImpl(hidl_vec<GnssLocationAidl>(locations)); in gnssLocationBatchCb()
49 const hidl_vec<GnssLocation_V1_0>& locations) { in gnssLocationBatchCb() argument
50 return GnssBatchingCallbackUtil::gnssLocationBatchCbImpl(locations); in gnssLocationBatchCb()
54 const hidl_vec<GnssLocation_V2_0>& locations) { in gnssLocationBatchCb() argument
55 return GnssBatchingCallbackUtil::gnssLocationBatchCbImpl(locations); in gnssLocationBatchCb()
DGnssBatchingCallback.h50 const std::vector<android::hardware::gnss::GnssLocation>& locations) override;
57 const hardware::hidl_vec<hardware::gnss::V1_0::GnssLocation>& locations) override;
64 const hardware::hidl_vec<hardware::gnss::V2_0::GnssLocation>& locations) override;
99 static hardware::Return<void> gnssLocationBatchCbImpl(const hardware::hidl_vec<T>& locations);
107 const hardware::hidl_vec<T>& locations) { in gnssLocationBatchCbImpl() argument
110 jobjectArray jLocations = env->NewObjectArray(locations.size(), class_location, nullptr); in gnssLocationBatchCbImpl()
112 for (uint16_t i = 0; i < locations.size(); ++i) { in gnssLocationBatchCbImpl()
113 jobject jLocation = translateGnssLocation(env, locations[i]); in gnssLocationBatchCbImpl()
/frameworks/base/location/java/android/location/provider/
DLocationProviderBase.java224 public void reportLocations(@NonNull List<Location> locations) { in reportLocations() argument
230 manager.onReportLocations(stripExtras(locations)); in reportLocations()
278 private static List<Location> stripExtras(List<Location> locations) { in stripExtras() argument
279 List<Location> mapped = locations; in stripExtras()
280 final int size = locations.size(); in stripExtras()
282 for (Location location : locations) { in stripExtras()
284 if (mapped != locations) { in stripExtras()
289 for (Location copiedLocation : locations) { in stripExtras()
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java269 public void reportLocations(@NonNull List<Location> locations) { in reportLocations() argument
273 manager.onReportLocations(stripExtras(locations)); in reportLocations()
430 private static List<Location> stripExtras(List<Location> locations) { in stripExtras() argument
431 List<Location> mapped = locations; in stripExtras()
432 final int size = locations.size(); in stripExtras()
434 for (Location location : locations) { in stripExtras()
436 if (mapped != locations) { in stripExtras()
441 for (Location copiedLocation : locations) { in stripExtras()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
DLocationUtils.java49 Location[] locations = new Location[numLocations]; in createLocationResult() local
51 locations[i] = createLocation(provider, random); in createLocationResult()
53 return LocationResult.create(Arrays.asList(locations)); in createLocationResult()
/frameworks/base/services/core/xsd/vts/
DValidateDefaultPermissions.cpp53 std::vector<const char*> locations = {"/vendor/etc/default-permissions", in TEST() local
56 for (const char* dir_path : locations) { in TEST()
/frameworks/rs/tests/java_api/ComputePerf/
DAndroid.bp50 cmd: "for f in $(locations src/**/*.rscript); do " +
52 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
53 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/RsCameraDemo/
DAndroid.bp49 cmd: "for f in $(locations src/**/*.rscript); do " +
51 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
52 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/SampleTest/
DAndroid.bp50 cmd: "for f in $(locations src/**/*.rscript); do " +
52 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
53 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/VrDemo/
DAndroid.bp49 cmd: "for f in $(locations src/**/*.rscript); do " +
51 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
52 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/ComputeBenchmark/
DAndroid.bp50 cmd: "for f in $(locations src/**/*.rscript); do " +
52 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
53 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/MathErr/
DAndroid.bp50 cmd: "for f in $(locations src/**/*.rscript); do " +
52 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
53 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/LivePreview/
DAndroid.bp49 cmd: "for f in $(locations src/**/*.rscript); do " +
51 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
52 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/ImageProcessing_jb/
DAndroid.bp55 cmd: "for f in $(locations src/**/*.rscript); do " +
57 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
58 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/ScriptGroupTest/
DAndroid.bp50 cmd: "for f in $(locations src/**/*.rscript); do " +
53 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
54 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/SSHealingBrush/
DAndroid.bp50 cmd: "for f in $(locations src/**/*.rscript); do " +
53 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
54 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/Refocus/
DAndroid.bp56 cmd: "for f in $(locations src/**/*.rscript); do " +
59 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
60 … " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/HealingBrush/
DAndroid.bp53 cmd: "for f in $(locations src/**/*.rscript); do " +
56 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
57 … " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/RsNbody/
DAndroid.bp50 cmd: "for f in $(locations src/**/*.rscript); do " +
53 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
54 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/RSTest_CompatLib/
DAndroid.bp58 cmd: "for f in $(locations :RSUnitTests_rscript_supportlibsrc_gen); do " +
61 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
62 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/base/tests/CanvasCompare/
DAndroid.bp56 cmd: "for f in $(locations src/**/*.rscript); do " +
58 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
59 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/LatencyBenchmark/
DAndroid.bp50 cmd: "for f in $(locations src/**/*.rscript); do " +
53 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
54 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
/frameworks/rs/tests/java_api/RsTest/
DAndroid.bp55 cmd: "for f in $(locations :RSUnitTests_rscript_srcs); do " +
57 " -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
58 " -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +

123