/base/location/test/location_gnss/source/ |
H A D | gnss_event_callback_test.cpp | 79 LocationInfo locationInfo; in HWTEST_F() local 80 locationInfo.latitude = 1.0; in HWTEST_F() 81 locationInfo.longitude = 2.0; in HWTEST_F() 82 locationInfo.altitude = 1.0; in HWTEST_F() 83 locationInfo.horizontalAccuracy = 1.0; in HWTEST_F() 84 locationInfo.speed = 1.0; in HWTEST_F() 85 locationInfo.bearing= 1.0; in HWTEST_F() 86 locationInfo.timeForFix = 1000000000; in HWTEST_F() 87 locationInfo.timeSinceBoot = 1000000000; in HWTEST_F() 88 gnssCallback->ReportLocation(locationInfo); in HWTEST_F() 193 LocationInfo locationInfo; HWTEST_F() local 237 LocationInfo locationInfo; HWTEST_F() local [all...] |
H A D | gnss_ability_test.cpp | 904 LocationInfo locationInfo; in HWTEST_F() local 905 locationInfo.latitude = 1.0; in HWTEST_F() 906 locationInfo.longitude = 2.0; in HWTEST_F() 907 locationInfo.altitude = 1.0; in HWTEST_F() 908 locationInfo.horizontalAccuracy = 1.0; in HWTEST_F() 909 locationInfo.speed = 1.0; in HWTEST_F() 910 locationInfo.bearing= 1.0; in HWTEST_F() 911 locationInfo.timeForFix = 1000000000; in HWTEST_F() 912 locationInfo.timeSinceBoot = 1000000000; in HWTEST_F() 913 gnssCallback->ReportLocation(locationInfo); in HWTEST_F() 924 LocationInfo locationInfo; HWTEST_F() local 1047 LocationInfo locationInfo; HWTEST_F() local 1091 LocationInfo locationInfo; HWTEST_F() local [all...] |
/base/msdp/device_status/intention/cooperate/plugin/src/ |
H A D | mouse_location.cpp | 191 LocationInfo locationInfo { in OnRemoteMouseLocation() 198 ReportMouseLocationToListener(notice.networkId, locationInfo, pid); in OnRemoteMouseLocation() 211 LocationInfo locationInfo; in ProcessData() local 212 TransferToLocationInfo(pointerEvent, locationInfo); in ProcessData() 215 ReportMouseLocationToListener(localNetworkId_, locationInfo, pid); in ProcessData() 223 SyncLocationToRemote(networkId, locationInfo); in ProcessData() 227 void MouseLocation::SyncLocationToRemote(const std::string &remoteNetworkId, const LocationInfo &locationInfo) in SyncLocationToRemote() argument 234 .displayX = locationInfo.displayX, in SyncLocationToRemote() 235 .displayY = locationInfo.displayY, in SyncLocationToRemote() 236 .displayWidth = locationInfo in SyncLocationToRemote() 324 ReportMouseLocationToListener(const std::string &networkId, const LocationInfo &locationInfo, int32_t pid) ReportMouseLocationToListener() argument 344 TransferToLocationInfo(std::shared_ptr<MMI::PointerEvent> pointerEvent, LocationInfo &locationInfo) TransferToLocationInfo() argument [all...] |
/base/msdp/device_status/intention/cooperate/plugin/include/ |
H A D | mouse_location.h | 64 void ReportMouseLocationToListener(const std::string &networkId, const LocationInfo &locationInfo, int32_t pid); 65 void TransferToLocationInfo(std::shared_ptr<MMI::PointerEvent> pointerEvent, LocationInfo &locationInfo); 66 void SyncLocationToRemote(const std::string &remoteNetworkId, const LocationInfo &locationInfo);
|
/base/web/webview/ohos_adapter/location_adapter/src/ |
H A D | location_callback_adapter_impl.cpp | 69 std::shared_ptr<LocationInfo> locationInfo = in OnLocationReport() local 72 locationCallbackAdapter_->OnLocationReport(locationInfo); in OnLocationReport()
|
/base/security/security_component_manager/frameworks/inner_api/security_component/test/unittest/src/ |
H A D | sec_comp_register_callback_test.cpp | 136 std::string locationInfo = jsonRes.dump(); in HWTEST_F() local 137 g_probe.mockComponentInfo = locationInfo; in HWTEST_F() 141 ASSERT_EQ(SC_OK, RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scId)); in HWTEST_F() 157 std::string locationInfo = jsonRes.dump(); in HWTEST_F() local 158 g_probe.mockComponentInfo = locationInfo; in HWTEST_F() 164 RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scId)); in HWTEST_F() 168 RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scId)); in HWTEST_F() 184 std::string locationInfo = jsonRes.dump(); in HWTEST_F() local 185 g_probe.mockComponentInfo = locationInfo; in HWTEST_F() 189 ASSERT_EQ(SC_OK, RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scI in HWTEST_F() 438 std::string locationInfo = jsonRes.dump(); HWTEST_F() local 628 std::string locationInfo = jsonRes.dump(); HWTEST_F() local [all...] |
H A D | sec_comp_kit_test.cpp | 191 std::string locationInfo = jsonRes.dump(); in HWTEST_F() local 196 SecCompKit::RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scId)); in HWTEST_F() 200 SecCompKit::RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scId)); in HWTEST_F()
|
/base/location/frameworks/js/napi/source/ |
H A D | napi_util.cpp | 104 void LocationToJs(const napi_env& env, const std::unique_ptr<Location>& locationInfo, napi_value& result) in LocationToJs() argument 106 SetValueDouble(env, "latitude", locationInfo->GetLatitude(), result); in LocationToJs() 107 SetValueDouble(env, "longitude", locationInfo->GetLongitude(), result); in LocationToJs() 108 SetValueDouble(env, "altitude", locationInfo->GetAltitude(), result); in LocationToJs() 109 SetValueDouble(env, "accuracy", locationInfo->GetAccuracy(), result); in LocationToJs() 110 SetValueDouble(env, "speed", locationInfo->GetSpeed(), result); in LocationToJs() 111 SetValueInt64(env, "timeStamp", locationInfo->GetTimeStamp(), result); in LocationToJs() 112 SetValueDouble(env, "direction", locationInfo->GetDirection(), result); in LocationToJs() 113 SetValueInt64(env, "timeSinceBoot", locationInfo->GetTimeSinceBoot(), result); in LocationToJs() 115 uint32_t additionSize = static_cast<uint32_t>(locationInfo in LocationToJs() 167 SystemLocationToJs(const napi_env& env, const std::unique_ptr<Location>& locationInfo, napi_value& result) SystemLocationToJs() argument [all...] |
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
H A D | sec_comp_service_mock_test.cpp | 274 std::string locationInfo = jsonRes.dump(); in HWTEST_F() local 282 EXPECT_EQ(SC_OK, secCompService_->RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scId)); in HWTEST_F() 298 secCompService_->ReportSecurityComponentClickEvent(scId, locationInfo, clickInfo1, nullptr, nullptr)); in HWTEST_F()
|
H A D | sec_comp_service_test.cpp | 253 std::string locationInfo = jsonRes.dump(); in HWTEST_F() local 264 secCompService_->RegisterSecurityComponent(LOCATION_COMPONENT, locationInfo, scId)); in HWTEST_F() 277 secCompService_->ReportSecurityComponentClickEvent(scId, locationInfo, touch, nullptr, nullptr)); in HWTEST_F()
|
/base/location/frameworks/js/napi/include/ |
H A D | napi_util.h | 42 void LocationToJs(const napi_env& env, const std::unique_ptr<Location>& locationInfo, napi_value& result); 45 void SystemLocationToJs(const napi_env& env, const std::unique_ptr<Location>& locationInfo, napi_value& result);
|
/base/web/webview/test/unittest/ohos_adapter/location_proxy_adapter_test/ |
H A D | location_proxy_adapter_test.cpp | 172 std::unique_ptr<OHOS::Location::Location>& locationInfo = locationInfoImpl->GetLocation(); in HWTEST_F() local 173 EXPECT_NE(locationInfo, nullptr); in HWTEST_F()
|
/base/msdp/device_status/test/unittest/intention/cooperate/src/ |
H A D | cooperate_plugin_test.cpp | 268 Cooperate::LocationInfo locationInfo {1, 1, 1, 1}; in HWTEST_F() 270 DSoftbusSyncMouseLocation dSoftbusSyncMouseLocation{"test", "test", locationInfo}; in HWTEST_F()
|