Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 92) sorted by relevance

1234

/base/request/request/frameworks/js/napi/src/legacy/
Drequest_manager.cpp102 DownloadDescriptor descriptor{}; in OnTaskDone() local
109 descriptor = it->second; in OnTaskDone()
113 if (successful && descriptor.successCb_) { in OnTaskDone()
114 CallFunctionAsync(descriptor.env_, descriptor.successCb_, in OnTaskDone()
115 [descriptor](napi_env env, napi_ref *recv, int &argc, napi_value *argv) { in OnTaskDone()
116 *recv = descriptor.this_; in OnTaskDone()
118 argv[0] = NapiUtils::CreateObject(descriptor.env_); in OnTaskDone()
119 …NapiUtils::SetStringPropertyUtf8(descriptor.env_, argv[0], "uri", URI_PREFIX + descriptor.filename… in OnTaskDone()
122 if (!successful && descriptor.failCb_) { in OnTaskDone()
123 CallFunctionAsync(descriptor.env_, descriptor.failCb_, in OnTaskDone()
[all …]
/base/security/access_token/interfaces/innerkits/privacy/src/
Dstate_change_callback_stub.cpp35 std::u16string descriptor = data.ReadInterfaceToken(); in OnRemoteRequest() local
36 if (descriptor != IStateChangeCallback::GetDescriptor()) { in OnRemoteRequest()
37 …ACCESSTOKEN_LOG_ERROR(LABEL, "get unexpect descriptor: %{public}s", Str16ToStr8(descriptor).c_str(… in OnRemoteRequest()
Dperm_active_status_change_callback_stub.cpp35 std::u16string descriptor = data.ReadInterfaceToken(); in OnRemoteRequest() local
36 if (descriptor != IPermActiveStatusCallback::GetDescriptor()) { in OnRemoteRequest()
37 …ACCESSTOKEN_LOG_ERROR(LABEL, "get unexpect descriptor: %{public}s", Str16ToStr8(descriptor).c_str(… in OnRemoteRequest()
Don_permission_used_record_callback_stub.cpp36 std::u16string descriptor = data.ReadInterfaceToken(); in OnRemoteRequest() local
37 if (descriptor != OnPermissionUsedRecordCallback::GetDescriptor()) { in OnRemoteRequest()
38 …ACCESSTOKEN_LOG_ERROR(LABEL, "get unexpect descriptor: %{public}s", Str16ToStr8(descriptor).c_str(… in OnRemoteRequest()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/src/
Dopen_dlp_file_callback_stub.cpp34 std::u16string descriptor = data.ReadInterfaceToken(); in OnRemoteRequest() local
35 if (descriptor != IOpenDlpFileCallback::GetDescriptor()) { in OnRemoteRequest()
36 DLP_LOG_ERROR(LABEL, "get unexpect descriptor:%{public}s", Str16ToStr8(descriptor).c_str()); in OnRemoteRequest()
Ddlp_sandbox_change_callback_stub.cpp33 std::u16string descriptor = data.ReadInterfaceToken(); in OnRemoteRequest() local
34 if (descriptor != IDlpSandboxStateChangeCallback::GetDescriptor()) { in OnRemoteRequest()
35 DLP_LOG_ERROR(LABEL, "get unexpect descriptor:%{public}s", Str16ToStr8(descriptor).c_str()); in OnRemoteRequest()
/base/security/access_token/interfaces/kits/privacy/napi/src/
Dnative_module.cpp28 napi_property_descriptor descriptor[] = { in Init() local
38 napi_define_properties(env, exports, sizeof(descriptor) / sizeof(descriptor[0]), descriptor); in Init()
/base/security/access_token/interfaces/innerkits/accesstoken/src/
Dpermission_state_change_callback_stub.cpp36 std::u16string descriptor = data.ReadInterfaceToken(); in OnRemoteRequest() local
37 if (descriptor != IPermissionStateCallback::GetDescriptor()) { in OnRemoteRequest()
38 …ACCESSTOKEN_LOG_ERROR(LABEL, "get unexpect descriptor: %{public}s", Str16ToStr8(descriptor).c_str(… in OnRemoteRequest()
/base/global/resource_management/frameworks/resmgr/src/
Draw_file_manager.cpp329 static bool GetRawFileDescriptorFromHap(const RawFile *rawFile, RawFileDescriptor &descriptor) in GetRawFileDescriptorFromHap() argument
337 descriptor.fd = resMgrDescriptor.fd; in GetRawFileDescriptorFromHap()
338 descriptor.length = resMgrDescriptor.length; in GetRawFileDescriptorFromHap()
339 descriptor.start = resMgrDescriptor.offset; in GetRawFileDescriptorFromHap()
343 bool OH_ResourceManager_GetRawFileDescriptor(const RawFile *rawFile, RawFileDescriptor &descriptor) in OH_ResourceManager_GetRawFileDescriptor() argument
349 return GetRawFileDescriptorFromHap(rawFile, descriptor); in OH_ResourceManager_GetRawFileDescriptor()
363 descriptor.fd = fd; in OH_ResourceManager_GetRawFileDescriptor()
364 descriptor.length = rawFile->length; in OH_ResourceManager_GetRawFileDescriptor()
365 descriptor.start = rawFile->offset; in OH_ResourceManager_GetRawFileDescriptor()
372 bool OH_ResourceManager_ReleaseRawFileDescriptor(const RawFileDescriptor &descriptor) in OH_ResourceManager_ReleaseRawFileDescriptor() argument
[all …]
/base/sensors/sensor/frameworks/native/sensor/src/
Dsensor_client_stub.cpp32 std::u16string descriptor = SensorClientStub::GetDescriptor(); in OnRemoteRequest() local
34 if (descriptor != remoteDescriptor) { in OnRemoteRequest()
/base/global/resource_management/interfaces/native/resource/include/
Draw_file.h154 bool OH_ResourceManager_GetRawFileDescriptor(const RawFile *rawFile, RawFileDescriptor &descriptor);
166 bool OH_ResourceManager_ReleaseRawFileDescriptor(const RawFileDescriptor &descriptor);
/base/sensors/medical_sensor/frameworks/native/medical_sensor/src/
Dmedical_client_stub.cpp35 std::u16string descriptor = MedicalSensorClientStub::GetDescriptor(); in OnRemoteRequest() local
37 if (descriptor != remoteDescriptor) { in OnRemoteRequest()
/base/powermgr/display_manager/test/unittest/mock/src/
Dmock_display_remote_object.cpp20 …playRemoteObject::MockDisplayRemoteObject(std::u16string descriptor) : IRemoteObject(descriptor) {} in MockDisplayRemoteObject() argument
/base/powermgr/battery_manager/test/unittest/mock/source/
Dmock_remote_object.cpp20 MockRemoteObject::MockRemoteObject(std::u16string descriptor) : IRemoteObject(descriptor) {} in MockRemoteObject() argument
/base/powermgr/battery_statistics/test/unittest/mock/source/
Dmock_stats_remote_object.cpp20 MockStatsRemoteObject::MockStatsRemoteObject(std::u16string descriptor) : IRemoteObject(descriptor)… in MockStatsRemoteObject() argument
/base/powermgr/thermal_manager/test/unittest/mock/src/
Dmock_thermal_remote_object.cpp20 …rmalRemoteObject::MockThermalRemoteObject(std::u16string descriptor) : IRemoteObject(descriptor) {} in MockThermalRemoteObject() argument
/base/security/access_token/interfaces/innerkits/token_callback/src/
Dtoken_callback_stub.cpp41 std::u16string descriptor = data.ReadInterfaceToken(); in OnRemoteRequest() local
42 if (descriptor != ITokenCallback::GetDescriptor()) { in OnRemoteRequest()
43 …ACCESSTOKEN_LOG_ERROR(LABEL, "get unexpect descriptor: %{public}s", Str16ToStr8(descriptor).c_str(… in OnRemoteRequest()
/base/powermgr/power_manager/test/unittest/mock/
Dmock_power_remote_object.cpp23 MockPowerRemoteObject::MockPowerRemoteObject(std::u16string descriptor) : IRemoteObject(descriptor)… in MockPowerRemoteObject() argument
/base/security/security_component_manager/services/security_component_service/sa/test/mock/include/
Dif_system_ability_manager.h38 const std::u16string descriptor = INTERFACE::GetDescriptor(); in iface_cast() local
39 if (descriptor == u"ohos.appexecfwk.mock.AppMgr") { in iface_cast()
/base/powermgr/power_manager/services/zidl/src/shutdown/
Dshutdown_proxy_delegator.h28 ShutdownProxyDelegator(const sptr<IRemoteObject>& remote, std::u16string descriptor) in ShutdownProxyDelegator() argument
29 : remote_(remote), descriptor_(std::move(descriptor)) in ShutdownProxyDelegator()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
Dmock_i_remote_object.h76 std::u16string descriptor = std::u16string(); in GetObjectDescriptor() local
77 return descriptor; in GetObjectDescriptor()
/base/location/test/mock/include/
Dmock_i_remote_object.h42 std::u16string descriptor = std::u16string(); in GetObjectDescriptor() local
43 return descriptor; in GetObjectDescriptor()
/base/theme/wallpaper_mgr/frameworks/native/src/
Dwallpaper_event_listener_stub.cpp27 std::u16string descriptor = WallpaperEventListenerStub::GetDescriptor(); in OnRemoteRequest() local
29 if (descriptor != remoteDescriptor) { in OnRemoteRequest()
/base/security/access_token/services/tokensyncmanager/src/service/
Dtoken_sync_manager_stub.cpp36 std::u16string descriptor = data.ReadInterfaceToken(); in OnRemoteRequest() local
37 if (descriptor != ITokenSyncManager::GetDescriptor()) { in OnRemoteRequest()
38 …ACCESSTOKEN_LOG_ERROR(LABEL, "get unexpect descriptor: %{public}s", Str16ToStr8(descriptor).c_str(… in OnRemoteRequest()
/base/update/update_app/feature/ota/src/main/ets/dialog/
DDialogUtils.ts32 …return function inner(target: unknown, propertyKey: string, descriptor: PropertyDescriptor): void {
33 const original = descriptor.value;
34 descriptor.value = function (context: common.Context, otaStatus: OtaStatus,

1234