/ohos5.0/base/location/frameworks/js/napi/source/ |
H A D | location_gnss_geofence_callback_napi.cpp | 71 transition.fenceId = data.ReadInt32(); in OnRemoteRequest() 78 int fenceId = data.ReadInt32(); in OnRemoteRequest() local 81 OnReportOperationResult(fenceId, type, result); in OnRemoteRequest() 176 void LocationGnssGeofenceCallbackNapi::OnReportOperationResult(int fenceId, int type, int result) in OnReportOperationResult() argument 179 if ((type != addValue && fenceId == GetFenceId()) || in OnReportOperationResult() 185 SetFenceId(fenceId); in OnReportOperationResult() 303 void LocationGnssGeofenceCallbackNapi::SetFenceId(int fenceId) in SetFenceId() argument 306 fenceId_ = fenceId; in SetFenceId()
|
H A D | location_napi_adapter.cpp | 1142 int fenceId = callbackHost->GetFenceId(); in CreateReverseGeocodeAsyncContext() local 1144 napi_create_int64(context->env, fenceId, &context->result[PARAM1]); in CreateReverseGeocodeAsyncContext() 1145 AddCallbackToGnssGeofenceCallbackHostMap(fenceId, callbackHost); in CreateReverseGeocodeAsyncContext() 1167 int fenceId = -1; in CreateReverseGeocodeAsyncContext() local 1174 NAPI_CALL(env, napi_get_value_int32(env, argv[0], &fenceId)); in CreateReverseGeocodeAsyncContext() 1175 auto asyncContext = CreateAsyncContextForRemoveGnssGeofence(env, fenceId); in CreateReverseGeocodeAsyncContext() 1188 asyncContext->fenceId_ = fenceId; in CreateReverseGeocodeAsyncContext() 1264 g_gnssGeofenceCallbackHostMap.insert(std::make_pair(fenceId, callbackHost)); in CreateReverseGeocodeAsyncContext() 1267 void RemoveCallbackToGnssGeofenceCallbackHostMap(int fenceId) in CreateReverseGeocodeAsyncContext() argument 1270 auto iterForDelete = g_gnssGeofenceCallbackHostMap.find(fenceId); in CreateReverseGeocodeAsyncContext() [all …]
|
H A D | geofence_napi.cpp | 234 SetValueInt32(env, "geofenceId", geofenceTransition.fenceId, result); in GeofenceTransitionToJs()
|
/ohos5.0/base/location/frameworks/js/napi/include/ |
H A D | location_napi_adapter.h | 57 GnssGeofenceAsyncContext* CreateAsyncContextForRemoveGnssGeofence(const napi_env& env, int fenceId); 59 void AddCallbackToGnssGeofenceCallbackHostMap(int fenceId, sptr<LocationGnssGeofenceCallbackNapi> c… 60 void RemoveCallbackToGnssGeofenceCallbackHostMap(int fenceId); 61 sptr<LocationGnssGeofenceCallbackNapi> FindCallbackInGnssGeofenceCallbackHostMap(int fenceId);
|
/ohos5.0/base/location/services/location_locator/callback/source/ |
H A D | location_gnss_geofence_callback_proxy.cpp | 34 dataParcel.WriteInt32(transition.fenceId); in OnTransitionStatusChange() 41 void LocationGnssGeofenceCallbackProxy::OnReportOperationResult(int fenceId, int type, int result) in OnReportOperationResult() argument 48 dataParcel.WriteInt32(fenceId); in OnReportOperationResult()
|
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/graphic_adapter_test/ |
H A D | native_image_adapter_impl_test.cpp | 209 int fenceId = -1; variable 210 int32_t ret = imagerAdapter->AcquireNativeWindowBuffer(&windowBuffer, &fenceId); 215 ret = imagerAdapter->AcquireNativeWindowBuffer(&windowBuffer, &fenceId); 247 int fenceId = -1; variable 248 int32_t ret = imagerAdapter->ReleaseNativeWindowBuffer(windowBuffer, fenceId); 253 imagerAdapter->ReleaseNativeWindowBuffer(windowBuffer, fenceId);
|
/ohos5.0/base/location/test/location_geofence/source/ |
H A D | location_gnss_geofence_callback_host_test.cpp | 123 int fenceId = callback->GetFenceId(); variable 124 ASSERT_TRUE(fenceId == DEFAULT_NUM_VALUE); 126 fenceId = callback->GetFenceId(); 127 ASSERT_TRUE(fenceId != DEFAULT_NUM_VALUE);
|
/ohos5.0/base/location/services/location_gnss/gnss/include/ |
H A D | gnss_ability.h | 210 bool UnregisterGnssGeofenceCallback(int fenceId); 211 std::shared_ptr<GeofenceRequest> GetGeofenceRequestByFenceId(int fenceId); 213 void ReportGeofenceEvent(int fenceId, GeofenceEvent event); 215 int fenceId, GeofenceOperateType type, GeofenceOperateResult result); 241 bool CheckBundleNameInGnssGeofenceRequestMap(const std::string& bundleName, int fenceId);
|
/ohos5.0/base/location/interfaces/inner_api/include/ |
H A D | location_gnss_geofence_callback_napi.h | 46 void SetFenceId(int fenceId); 53 void OnReportOperationResult(int fenceId, int type, int result) override;
|
H A D | i_gnss_geofence_callback.h | 33 virtual void OnReportOperationResult(int fenceId, int type, int result) = 0;
|
H A D | geofence_definition.h | 48 int fenceId; member
|
H A D | geofence_request.h | 77 void SetFenceId(int fenceId);
|
/ohos5.0/base/location/services/location_gnss/gnss/source/ |
H A D | gnss_ability.cpp | 603 int fenceId = GenerateFenceId(); in AddFence() local 604 request->SetFenceId(fenceId); in AddFence() 613 fenceInfo.fenceIndex = fenceId; in AddFence() 663 int fenceId = GenerateFenceId(); in AddGnssGeofence() local 664 request->SetFenceId(fenceId); in AddGnssGeofence() 673 fenceInfo.fenceIndex = fenceId; in AddGnssGeofence() 685 ret, std::to_string(fenceId).c_str()); in AddGnssGeofence() 749 if (fenceId == fenceIdInMap) { in UnregisterGnssGeofenceCallback() 827 UnregisterGnssGeofenceCallback(fenceId); in ReportGeofenceOperationResult() 887 if (request->GetFenceId() == fenceId) { in GetGeofenceRequestByFenceId() [all …]
|
/ohos5.0/base/location/services/location_locator/callback/include/ |
H A D | location_gnss_geofence_callback_proxy.h | 34 void OnReportOperationResult(int fenceId, int type, int result);
|
/ohos5.0/base/location/frameworks/native/geofence_sdk/source/ |
H A D | geofence_request.cpp | 138 void GeofenceRequest::SetFenceId(int fenceId) in SetFenceId() argument 140 fenceId_ = fenceId; in SetFenceId()
|
/ohos5.0/base/location/frameworks/native/fence_extension_ability/src/ |
H A D | js_fence_extension.cpp | 288 auto fenceId = std::atoi(GetAndDeleteFromMap(extraData, EXTENSION_PARAM_KEY_FENCE_ID).c_str()); in CallToUiThread() local 296 SetValueInt32(env, "geofenceId", fenceId, transitionObj); in CallToUiThread()
|
/ohos5.0/drivers/peripheral/display/hal/default/ |
H A D | display_layer.c | 409 buffer->fenceId = 0; in GetLayerBuffer() 422 …"%s: fenceId = %d, width = %d, height = %d, pixFormat = %d, pitch = %d", __func__, buffer->fenceId, in GetLayerBuffer()
|
/ohos5.0/base/location/test/location_gnss/source/ |
H A D | gnss_ability_test.cpp | 1848 int fenceId = 1; variable 1849 bool result = ability_->UnregisterGnssGeofenceCallback(fenceId); 1871 int fenceId = 0; variable 1874 ability_->ReportGeofenceOperationResult(fenceId, type, result); 1883 int fenceId = 0; variable 1885 ability_->ReportGeofenceEvent(fenceId, event); 1894 int fenceId = 0; variable 1895 ability_->GetGeofenceRequestByFenceId(fenceId);
|
/ohos5.0/drivers/peripheral/display/interfaces/include/ |
H A D | display_type.h | 322 int32_t fenceId; /**< Fence ID of the buffer */ member
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-location-kit/ |
H A D | js-apis-geoLocationManager.md | 2231 let fenceId = id; 2283 // fenceId是在geoLocationManager.addGnssGeofence执行成功后获取的 2284 let fenceId = 1; 2286 geoLocationManager.removeGnssGeofence(fenceId).then(() => { 2287 console.info("removeGnssGeofence success fenceId:" + fenceId);
|
/ohos5.0/docs/en/application-dev/reference/apis-location-kit/ |
H A D | js-apis-geoLocationManager.md | 2231 let fenceId = id; 2283 // fenceId is obtained after geoLocationManager.addGnssGeofence is successfully executed. 2284 let fenceId = 1; 2286 geoLocationManager.removeGnssGeofence(fenceId).then(() => { 2287 console.info("removeGnssGeofence success fenceId:" + fenceId);
|
/ohos5.0/drivers/peripheral/display/hdi_service/device/src/server/ |
H A D | display_device_host_driver.cpp | 1957 …DISPLAY_LOG("receive displayInfo fenceId=%{public}d, pitch=%{public}d", bufferTmp.fenceId, bufferT… in SnapShot()
|