Home
last modified time | relevance | path

Searched refs:g_requestConfig (Results 1 - 1 of 1) sorted by relevance

/test/xts/acts/location/geolocation_capi/entry/src/main/cpp/
H A Dgeolocationcapi.cpp19 Location_RequestConfig* g_requestConfig = nullptr; variable
40 if (g_requestConfig == nullptr) { in OhLocationStartLocating()
41 g_requestConfig = OH_Location_CreateRequestConfig(); in OhLocationStartLocating()
43 OH_LocationRequestConfig_SetUseScene(g_requestConfig, LOCATION_USE_SCENE_NAVIGATION); in OhLocationStartLocating()
44 OH_LocationRequestConfig_SetPowerConsumptionScene(g_requestConfig, LOCATION_HIGH_POWER_CONSUMPTION); in OhLocationStartLocating()
45 OH_LocationRequestConfig_SetInterval(g_requestConfig, 1); in OhLocationStartLocating()
46 OH_LocationRequestConfig_SetCallback(g_requestConfig, reportLocation, (void *)(1)); in OhLocationStartLocating()
47 OH_Location_StartLocating(g_requestConfig); in OhLocationStartLocating()
56 OH_Location_StopLocating(g_requestConfig); in OhLocationStopLocating()
57 if (g_requestConfig ! in OhLocationStopLocating()
[all...]

Completed in 1 milliseconds