Home
last modified time | relevance | path

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

12345678910>>...40

/ohos5.0/base/location/frameworks/base_module/source/
H A Dlocation.cpp51 Location::Location(Location& location) in Location() argument
53 latitude_ = location.GetLatitude(); in Location()
55 altitude_ = location.GetAltitude(); in Location()
56 accuracy_ = location.GetAccuracy(); in Location()
57 speed_ = location.GetSpeed(); in Location()
61 floorNo_ = location.GetFloorNo(); in Location()
73 uuid_ = location.GetUuid(); in Location()
118 return location; in UnmarshallingShared()
125 return location; in Unmarshalling()
186 if (location == nullptr) { in LocationEqual()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_inout_common.h24 layout(location = 0) in vec3 inPosition;
25 layout(location = 1) in vec3 inNormal;
26 layout(location = 2) in vec2 inUv0;
27 layout(location = 3) in vec2 inUv1;
28 layout(location = 4) in vec4 inTangent;
29 layout(location = 5) in uvec4 inIndex;
30 layout(location = 6) in CORE_RELAXEDP vec4 inWeight;
31 layout(location = 7) in CORE_RELAXEDP vec4 inColor;
50 layout(location = 5) in CORE_RELAXEDP vec4 inColor;
55 layout(location = 0) in vec3 inPosition;
[all …]
/ohos5.0/docs/en/application-dev/device/location/
H A Dlocation-guidelines.md5 You can call location APIs in OpenHarmony to obtain the real-time location or last known location a…
7location of the device is recommended for location-sensitive services. If you want to lower power …
11 … lists the APIs used to obtain the device location information. For details, see (../../reference/…
15 **Table 2** APIs for obtaining device location information
48 4. Obtain the current location of the device. It is mainly used in scenarios such as viewing of the…
49 - Method 1: Obtain the latest location in the system cache.<br>
52location is expected, your application can first obtain the cached location and then compare the …
58 let location = geoLocationManager.getLastLocation();
64 - Method 2: Obtain the current location.<br>
99 - Set the location scenario by using **locationScenario**.<br>
[all …]
H A Dlocation-kit-intro.md7 …the location awareness capability offered by OpenHarmony, mobile devices will be able to obtain re…
9 Your application can call location-specific APIs to obtain the location information of a mobile dev…
13location of a mobile device with its coordinates, and uses location technologies such as Global Na…
15 These advanced location technologies make it possible to obtain the accurate location of the mobile…
18 …A coordinate describes a location on the earth using the longitude and latitude in reference to th…
21location algorithm offered by the device chip to compute the location information provided by the …
24 …Base station positioning estimates the current location of a mobile device based on the location o…
27location of a mobile device based on the locations of WLANs and Bluetooth devices that can be disc…
32 …ate a location request to the system and stop the location request when the service scenario ends.…
34location function only after the user has granted the required permission and turned on the locati…
[all …]
/ohos5.0/base/location/services/location_locator/locator/source/
H A Dfusion_controller.cpp67 if (location == nullptr) { in chooseBestLocation()
71 return std::make_unique<Location>(*location); in chooseBestLocation()
73 if (location->GetLocationSourceType() == LocationSourceType::INDOOR_TYPE) { in chooseBestLocation()
78 return std::make_unique<Location>(*location); in chooseBestLocation()
79 } else if (location->GetLocationSourceType() == LocationSourceType::GNSS_TYPE || in chooseBestLocation()
80 location->GetLocationSourceType() == LocationSourceType::RTK_TYPE) { in chooseBestLocation()
81 if (location->GetSpeed() >= MAX_INDOOR_LOCATION_SPEED) { in chooseBestLocation()
82 return std::make_unique<Location>(*location); in chooseBestLocation()
94 return std::make_unique<Location>(*location); in chooseBestLocation()
101 ((location->GetTimeSinceBoot() / NANOS_PER_MILLI - in CheckIfLastIndoorLocationValid()
[all …]
H A Dreport_manager.cpp83 if (request->GetUuid() == location->GetUuid() || location->GetIsFromMock()) { in OnReportLocation()
112 if (location == nullptr) { in UpdateLocationByRequest()
116 location->SetIsSystemApp(0); in UpdateLocationByRequest()
118 location->SetIsSystemApp(1); in UpdateLocationByRequest()
126 if (location == nullptr || in ProcessRequestForReport()
209 reportStruct.location = *location; in ExecuteReportProcess()
223 if (location == nullptr) { in GetPermittedLocation()
291 if (location == nullptr) { in ResultCheck()
328 double deltaDis = CommonUtils::CalDistance(location->GetLatitude(), location->GetLongitude(), in ResultCheck()
348 UpdateLastLocation(location); in UpdateCacheLocation()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-location-kit/
H A D_location.md6 Provides APIs for querying the location switch status, and starting and stopping location.
18 …ocation_8h.md) | Defines APIs for querying the location switch status, and starting and stopping l…
141 Enumerates error codes of the location service.
152 Defines the source of location information.
163 Enumerates use scenes in a location request.
214 Defines the source of location information.
232 Enumerates use scenes in a location request.
287 Checks whether the location switch is enabled.
338 **LOCATION_SWITCH_OFF**: The location function fails to be started because the location switch is d…
417 Obtains basic location information.
[all …]
H A Doh__location__type_8h.md6 Defines common attributes of the location service.
26 …n_BasicInfo](_location___basic_info.md) | Defines the struct for the basic location information. |
33 …_ResultCode](_location.md#location_resultcode) | Enumerates error codes of the location service. |
34 …ocation_UseScene](_location.md#location_usescene) | Enumerates use scenes in a location request. |
36 …tion_SourceType](_location.md#location_sourcetype) | Defines the source of location information. |
37 …cInfo](_location.md#location_basicinfo) | Defines the struct for the basic location information. |
38 …) [Location_Info](_location.md#location_info) | Defines the struct for the location information. |
39 …Info](_location.md#location_info) \*location, void \*userData) | Defines the callback for receivin…
57 …tbasicinfo) ([Location_Info](_location.md#location_info) \*location) | Obtains basic location info…
58 …tion.md#location_info) \*location, char \*additionalInfo, uint32_t length) | Obtains the additiona…
[all …]
/ohos5.0/base/location/frameworks/native/location_ndk/source/
H A Dlocation_info_callback_host.cpp41 OnLocationReport(location); in OnRemoteRequest()
57 location_info.latitude = location->GetLatitude(); in OnLocationReport()
58 location_info.longitude = location->GetLongitude(); in OnLocationReport()
59 location_info.altitude = location->GetAltitude(); in OnLocationReport()
60 location_info.accuracy = location->GetAccuracy(); in OnLocationReport()
61 location_info.speed = location->GetSpeed(); in OnLocationReport()
62 location_info.direction = location->GetDirection(); in OnLocationReport()
63 location_info.timeForFix = location->GetTimeStamp(); in OnLocationReport()
64 location_info.timeSinceBoot = location->GetTimeSinceBoot(); in OnLocationReport()
66 auto additionMap = location->GetAdditionsMap(); in OnLocationReport()
[all …]
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/graphic/
H A Drender_program.cpp29 GLint location = glGetUniformLocation(program_, name.c_str()); in SetUniform() local
31 glUniform1f(location, value); in SetUniform()
38 GLint location = glGetUniformLocation(program_, name.c_str()); in SetUniform() local
40 glUniform1i(location, value); in SetUniform()
47 GLint location = glGetUniformLocation(program_, name.c_str()); in SetUniform() local
49 glUniform1ui(location, value); in SetUniform()
56 GLint location = glGetUniformLocation(program_, name.c_str()); in SetUniform() local
78 int location = glGetAttribLocation(program_, name.c_str()); in GetAttributeLocation() local
79 return location; in GetAttributeLocation()
84 int location = glGetUniformLocation(program_, name.c_str()); in GetUniformLocation() local
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_gnss_v1_0/dump_ast_target/
H A Ddump.txt2 package ohos.hdi.location.gnss.v1_0;
4 import ohos.hdi.location.gnss.v1_0.GnssTypes;
5 import ohos.hdi.location.gnss.v1_0.IGnssCallback;
9 [in] ohos.hdi.location.gnss.v1_0.GnssConfigPara para);
39 package ohos.hdi.location.gnss.v1_0;
41 import ohos.hdi.location.gnss.v1_0.GnssTypes;
45 [in] ohos.hdi.location.gnss.v1_0.LocationInfo location);
72 package ohos.hdi.location.gnss.v1_0;
196 ohos.hdi.location.gnss.v1_0.GnssRefInfoType type;
197 ohos.hdi.location.gnss.v1_0.GnssRefTime time;
[all …]
/ohos5.0/docs/en/readme/
H A Dlocation.md7 …the location awareness capability offered by OpenHarmony, mobile devices will be able to obtain re…
9 Your application can call location-specific APIs to obtain the location information of a mobile dev…
38 /base/location # Source code of the location subsystem
54location function only after the user has granted the permission and turned on the function. If th…
56location information is considered sensitive, your application still needs to obtain the location
64 **Table 1** APIs for obtaining device location information
105 **Obtaining the device location information:**
195 var locationChange = (location) => {
200 5. Start device location.
206 6. (Optional) Stop device location.
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_agnss_v1_0/dump_ast_target/
H A Ddump.txt2 package ohos.hdi.location.agnss.v1_0;
4 import ohos.hdi.location.agnss.v1_0.AGnssTypes;
5 import ohos.hdi.location.agnss.v1_0.IAGnssCallback;
23 package ohos.hdi.location.agnss.v1_0;
25 import ohos.hdi.location.agnss.v1_0.AGnssTypes;
39 package ohos.hdi.location.agnss.v1_0;
72 ohos.hdi.location.agnss.v1_0.CellIdType type;
89 ohos.hdi.location.agnss.v1_0.SubscriberSetIdType type;
98 ohos.hdi.location.agnss.v1_0.AGnssRefInfoType type;
99 ohos.hdi.location.agnss.v1_0.AGnssRefCellId cellId;
[all …]
/ohos5.0/base/location/test/location_locator/source/
H A Dreport_manager_test.cpp89 location->ReadFromParcel(parcel); in MockLocation()
90 return location; in MockLocation()
123 auto location = MockLocation(); variable
181 auto location = MockLocation(); variable
213 location->ReadFromParcel(parcel);
249 location->ReadFromParcel(parcel);
279 location->SetUuid("35279");
436 auto location = MockLocation(); variable
471 location->SetUuid("35279");
491 location->SetUuid("35279");
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_lpfence_geofence_v1_0/dump_ast_target/
H A Ddump.txt2 package ohos.hdi.location.lpfence.geofence.v1_0;
4 import ohos.hdi.location.lpfence.geofence.v1_0.IGeofenceCallback;
5 import ohos.hdi.location.lpfence.geofence.v1_0.GeofenceTypes;
37 package ohos.hdi.location.lpfence.geofence.v1_0;
39 import ohos.hdi.location.lpfence.geofence.v1_0.GeofenceTypes;
50 [in] ohos.hdi.location.lpfence.geofence.v1_0.GeoLocationInfo location,
62 [in] ohos.hdi.location.lpfence.geofence.v1_0.GeoLocationInfo location);
69 package ohos.hdi.location.lpfence.geofence.v1_0;
110 ohos.hdi.location.lpfence.geofence.v1_0.Point point;
120 ohos.hdi.location.lpfence.geofence.v1_0.Point[] points;
[all …]
/ohos5.0/base/location/
H A DREADME.en.md16 …the location awareness capability offered by OpenHarmony, mobile devices will be able to obtain re…
18 Your application can call location-specific APIs to obtain the location information of a mobile dev…
22location of a mobile device with its coordinates, and uses location technologies such as Global Na…
26 …A coordinate describes a location on the earth using the longitude and latitude in reference to th…
30location algorithm offered by the device chip to compute the location information provided by the …
34 …Base station positioning estimates the current location of a mobile device based on the location o…
38location of a mobile device based on the locations of WLANs and Bluetooth devices that can be disc…
49 /base/location # Source code directory structure:
54 ├── services # Directory of SA codes for location services
60location function only after the user has granted the permission and turned on the function. If th…
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.1/
H A Dchangelogs-wifiManager.md9 …getCandidateConfigs(): Array<WifiDeviceConfig>; | The location permission is required.|The locatio…
10 …** getDeviceConfigs(): Array<WifiDeviceConfig>;| The location permission is required.| The locatio…
11 … Array<StationInfo>;| 1. The location permission is required. <br>2. The physical MAC address is r…
12 …etCurrentP2pGroup(): Promise<WifiP2pGroupInfo>;| The location permission is required.| The locatio…
13 …k: AsyncCallback<WifiP2pGroupInfo>): **void**; | The location permission is required.| The locatio…
14 …se<WifiP2pDevice[]>;| 1. The location permission is required. <br>2. The physical MAC address is r…
15 …ck: AsyncCallback<WifiP2pDevice[]>): **void**;| The location permission is required.| 1. The locat…
16 …* p2pConnect(config: WifiP2PConfig): **void**; | The location permission is required.| The locatio…
17 …**function** startDiscoverDevices(): **void**; | The location permission is required.| The locatio…
18 …tP2pGroups(): Promise<Array<WifiP2pGroupInfo>>;| The location permission is required.| The locatio…
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_geofence_v1_0/dump_ast_target/
H A Ddump.txt2 package ohos.hdi.location.geofence.v1_0;
4 import ohos.hdi.location.geofence.v1_0.GeofenceTypes;
5 import ohos.hdi.location.geofence.v1_0.IGeofenceCallback;
12 [in] ohos.hdi.location.geofence.v1_0.GeofenceInfo fence,
13 [in] ohos.hdi.location.geofence.v1_0.GeofenceEvent monitorEvent);
21 package ohos.hdi.location.geofence.v1_0;
23 import ohos.hdi.location.geofence.v1_0.GeofenceTypes;
31 [in] ohos.hdi.location.geofence.v1_0.LocationInfo location,
32 [in] ohos.hdi.location.geofence.v1_0.GeofenceEvent event,
37 [in] ohos.hdi.location.geofence.v1_0.GeofenceOperateType type,
[all …]
/ohos5.0/base/location/services/etc/
H A DBUILD.gn18 ":location.para",
19 ":location.para.dac",
24 ohos_prebuilt_etc("location.para") {
25 source = "./param/location.para"
26 part_name = "location"
27 subsystem_name = "location"
32 source = "./param/location.para.dac"
33 part_name = "location"
34 subsystem_name = "location"
40 part_name = "location"
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_lpfence_cellfence_v1_0/dump_ast_target/
H A Ddump.txt2 package ohos.hdi.location.lpfence.cellfence.v1_0;
4 import ohos.hdi.location.lpfence.cellfence.v1_0.ICellfenceCallback;
5 import ohos.hdi.location.lpfence.cellfence.v1_0.CellfenceTypes;
9 [in] ohos.hdi.location.lpfence.cellfence.v1_0.ICellfenceCallback callbackObj);
15 [in] ohos.hdi.location.lpfence.cellfence.v1_0.CellfenceRequest[] cellfence);
25 package ohos.hdi.location.lpfence.cellfence.v1_0;
27 import ohos.hdi.location.lpfence.cellfence.v1_0.CellfenceTypes;
31 [in] ohos.hdi.location.lpfence.cellfence.v1_0.CellfenceStatus fences);
34 [in] ohos.hdi.location.lpfence.cellfence.v1_0.CellfenceSize size);
41 package ohos.hdi.location.lpfence.cellfence.v1_0;
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/native/fileio/
H A Dfileio_native.cpp36 bool CheckLocation(const std::string &location) in CheckLocation() argument
38 if (!std::all_of(location.begin(), location.end(), ::isdigit)) { in CheckLocation()
41 int fileLocation = atoi(location.c_str()); in CheckLocation()
66 std::string location = std::string(value.get(), static_cast<size_t>(size)); in GetLocationFromPath() local
67 if (!CheckLocation(location)) { in GetLocationFromPath()
68 HILOGE("Invalid location from getxattr, location: %{public}s", location.c_str()); in GetLocationFromPath()
71 defaultLocation = static_cast<Location>(atoi(location.c_str())); in GetLocationFromPath()
76 __attribute__((visibility("default"))) int GetFileLocation(char *uri, int uriLength, int *location) in GetFileLocation() argument
78 if (uri == nullptr || location == nullptr || uriLength <= 0 || uriLength > PATH_MAX) { in GetFileLocation()
85 *location = ret; in GetFileLocation()
/ohos5.0/base/location/frameworks/location_common/common/source/
H A Drequest.cpp193 if (lastLocation_ == nullptr || location == nullptr) { in SetLastLocation()
196 lastLocation_->SetLatitude(location->GetLatitude()); in SetLastLocation()
197 lastLocation_->SetLongitude(location->GetLongitude()); in SetLastLocation()
198 lastLocation_->SetAltitude(location->GetAltitude()); in SetLastLocation()
199 lastLocation_->SetAccuracy(location->GetAccuracy()); in SetLastLocation()
200 lastLocation_->SetSpeed(location->GetSpeed()); in SetLastLocation()
201 lastLocation_->SetDirection(location->GetDirection()); in SetLastLocation()
217 bestLocation_->SetLatitude(location->GetLatitude()); in SetBestLocation()
219 bestLocation_->SetAltitude(location->GetAltitude()); in SetBestLocation()
220 bestLocation_->SetAccuracy(location->GetAccuracy()); in SetBestLocation()
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_lpfence_cellbatching_v1_0/dump_ast_target/
H A Ddump.txt1 …ility/idl_tool/test/hdi_unittest/location_lpfence_cellbatching_v1_0/foo/location/lpfence/cellbatch…
2 package ohos.hdi.location.lpfence.cellbatching.v1_0;
4 import ohos.hdi.location.lpfence.cellbatching.v1_0.CellbatchingTypes;
8 [in] ohos.hdi.location.lpfence.cellbatching.v1_0.CellTrajectoryData[] data);
15 package ohos.hdi.location.lpfence.cellbatching.v1_0;
17 import ohos.hdi.location.lpfence.cellbatching.v1_0.ICellbatchingCallback;
18 import ohos.hdi.location.lpfence.cellbatching.v1_0.CellbatchingTypes;
22 [in] ohos.hdi.location.lpfence.cellbatching.v1_0.ICellbatchingCallback callbackObj);
25 [in] ohos.hdi.location.lpfence.cellbatching.v1_0.ICellbatchingCallback callbackObj);
28 [in] ohos.hdi.location.lpfence.cellbatching.v1_0.CellbatchingRequest req);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/include/
H A Dgl32_entries.in335 CALL_HOOK_API(glUniform1f, location, v0)
338 CALL_HOOK_API(glUniform1fv, location, count, value)
341 CALL_HOOK_API(glUniform1i, location, v0)
344 CALL_HOOK_API(glUniform1iv, location, count, value)
347 CALL_HOOK_API(glUniform2f, location, v0, v1)
353 CALL_HOOK_API(glUniform2i, location, v0, v1)
359 CALL_HOOK_API(glUniform3f, location, v0, v1, v2)
365 CALL_HOOK_API(glUniform3i, location, v0, v1, v2)
572 CALL_HOOK_API(glUniform1ui, location, v0)
575 CALL_HOOK_API(glUniform2ui, location, v0, v1)
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_lpfence_wififence_v1_0/dump_ast_target/
H A Ddump.txt1 …/ability/idl_tool/test/hdi_unittest/location_lpfence_wififence_v1_0/foo/location/lpfence/wififence…
2 package ohos.hdi.location.lpfence.wififence.v1_0;
4 import ohos.hdi.location.lpfence.wififence.v1_0.IWififenceCallback;
5 import ohos.hdi.location.lpfence.wififence.v1_0.WififenceTypes;
9 [in] ohos.hdi.location.lpfence.wififence.v1_0.IWififenceCallback callbackObj);
12 [in] ohos.hdi.location.lpfence.wififence.v1_0.IWififenceCallback callbackObj);
15 [in] ohos.hdi.location.lpfence.wififence.v1_0.WififenceRequest[] wififence);
28 package ohos.hdi.location.lpfence.wififence.v1_0;
30 import ohos.hdi.location.lpfence.wififence.v1_0.WififenceTypes;
39 [in] ohos.hdi.location.lpfence.wififence.v1_0.WififenceSize size);
[all …]

12345678910>>...40