Home
last modified time | relevance | path

Searched refs:proxy_ (Results 1 – 25 of 128) sorted by relevance

123456

/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_srv_client.cpp39 if (proxy_ != nullptr) { in Connect()
52 proxy_ = iface_cast<IUsbSrv>(remoteObject); in Connect()
54 sptr<IRemoteObject> deathObject = proxy_->AsObject(); in Connect()
67 RETURN_IF(proxy_ == nullptr); in ResetProxy()
68 auto serviceRemote = proxy_->AsObject(); in ResetProxy()
71 proxy_ = nullptr; in ResetProxy()
89 int32_t ret = proxy_->OpenDevice(device.GetBusNum(), device.GetDevAddr()); in OpenDevice()
104 return proxy_->HasRight(deviceName); in HasRight()
110 int32_t ret = proxy_->RequestRight(deviceName); in RequestRight()
120 int32_t ret = proxy_->RemoveRight(deviceName); in RemoveRight()
[all …]
/base/powermgr/power_manager/frameworks/native/
Dpower_mgr_client.cpp46 if (proxy_ != nullptr) { in ~PowerMgrClient()
47 auto remoteObject = proxy_->AsObject(); in ~PowerMgrClient()
57 if (proxy_ != nullptr) { in Connect()
82 proxy_ = iface_cast<IPowerMgr>(remoteObject_); in Connect()
123 lock->Recover(proxy_); in RecoverRunningLocks()
136 RETURN_IF(proxy_ == nullptr); in ResetProxy()
138 auto serviceRemote = proxy_->AsObject(); in ResetProxy()
141 proxy_ = nullptr; in ResetProxy()
148 return proxy_->RebootDevice(reason); in RebootDevice()
154 return proxy_->RebootDeviceForDeprecated(reason); in RebootDeviceForDeprecated()
[all …]
Dclient_lifecycle.cpp26 sptr<IPowerMgr> ClientLifeCycle::proxy_; member in OHOS::PowerMgr::ClientLifeCycle
33 if (proxy_ == nullptr) { in GetProxy()
39 return proxy_; in GetProxy()
44 if (proxy_ != nullptr) { in Connect()
69 proxy_ = iface_cast<IPowerMgr>(remoteObject_); in Connect()
76 if (proxy_ == nullptr) { in Reset()
80 auto service = proxy_->AsObject(); in Reset()
83 proxy_ = nullptr; in Reset()
Drunning_lock.cpp34 : proxy_(proxy) in RunningLock()
59 sptr<IPowerMgr> proxy = proxy_.promote(); in Create()
72 proxy_ = proxy; in Recover()
80 sptr<IPowerMgr> proxy = proxy_.promote(); in Lock()
92 sptr<IPowerMgr> proxy = proxy_.promote(); in UnLock()
104 sptr<IPowerMgr> proxy = proxy_.promote(); in CheckUsedNoLock()
122 sptr<IPowerMgr> proxy = proxy_.promote(); in Release()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_manager_cpu_client.cpp32 if (proxy_ != nullptr) { in ~DumpManagerCpuClient()
33 auto remoteObject = proxy_->AsObject(); in ~DumpManagerCpuClient()
46 int32_t ret = proxy_->Request(dumpCpuData); in Request()
56 int32_t ret = proxy_->GetCpuUsageByPid(pid, cpuUsage); in GetCpuUsageByPid()
63 if (proxy_ != nullptr) { in Connect()
85 proxy_ = iface_cast<IDumpCpuBroker>(remoteObject); in Connect()
92 if (proxy_ == nullptr) { in Reset()
95 auto serviceRemote = proxy_->AsObject(); in Reset()
98 proxy_ = nullptr; in Reset()
106 if (proxy_ == nullptr) { in ResetProxy()
[all …]
Ddump_manager_client.cpp35 if (proxy_ != nullptr) { in ~DumpManagerClient()
36 auto remoteObject = proxy_->AsObject(); in ~DumpManagerClient()
57 int32_t ret = proxy_->Request(args, outfd); in Request()
65 if (proxy_ != nullptr) { in Connect()
86 proxy_ = iface_cast<IDumpBroker>(remoteObject); in Connect()
93 return (proxy_ != nullptr); in IsConnected()
99 if (proxy_ == nullptr) { in Reset()
102 auto serviceRemote = proxy_->AsObject(); in Reset()
105 proxy_ = nullptr; in Reset()
113 if (proxy_ == nullptr) { in ResetProxy()
[all …]
/base/powermgr/battery_statistics/frameworks/native/src/
Dbattery_stats_client.cpp37 if (proxy_ != nullptr) { in Connect()
50 proxy_ = iface_cast<IBatteryStats>(remoteObject_); in Connect()
57 STATS_RETURN_IF(proxy_ == nullptr); in ResetProxy()
58 auto serviceRemote = proxy_->AsObject(); in ResetProxy()
61 proxy_ = nullptr; in ResetProxy()
83 entityList = proxy_->GetBatteryStats(); in GetBatteryStats()
95 appStatsMah = proxy_->GetAppStatsMah(uid); in GetAppStatsMah()
103 proxy_->SetOnBattery(isOnBattery); in SetOnBattery()
114 appStatsPercent = proxy_->GetAppStatsPercent(uid); in GetAppStatsPercent()
126 partStatsMah = proxy_->GetPartStatsMah(type); in GetPartStatsMah()
[all …]
/base/powermgr/power_manager/frameworks/native/shutdown/
Dshutdown_client.cpp28 proxy_ = ClientLifeCycle::GetProxy(); in Connect()
29 return proxy_ != nullptr ? ERR_OK : ERR_NO_INIT; in Connect()
36 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
42 proxy_->UnRegisterShutdownCallback(callback); in UnRegisterShutdownCallback()
49 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
55 proxy_->UnRegisterShutdownCallback(callback); in UnRegisterShutdownCallback()
62 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
68 proxy_->UnRegisterShutdownCallback(callback); in UnRegisterShutdownCallback()
/base/customization/enterprise_device_management/services/edm/src/connection/
Denterprise_bundle_connection.cpp30 proxy_ = (new (std::nothrow) EnterpriseAdminProxy(remoteObject)); in OnAbilityConnectDone()
31 if (proxy_ == nullptr) { in OnAbilityConnectDone()
37 proxy_->OnBundleAdded(bundleName_); in OnAbilityConnectDone()
40 proxy_->OnBundleRemoved(bundleName_); in OnAbilityConnectDone()
43 proxy_->OnAppStart(bundleName_); in OnAbilityConnectDone()
46 proxy_->OnAppStop(bundleName_); in OnAbilityConnectDone()
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_authorization_extension_callback_client.cpp26 : proxy_(proxy) in AppAccountAuthorizationExtensionCallbackClient()
35 if (proxy_ != nullptr) { in OnResult()
36 proxy_->OnResult(businessError, parameters); in OnResult()
42 if (proxy_ != nullptr) { in OnRequestRedirected()
43 proxy_->OnRequestRedirected(request); in OnRequestRedirected()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_local_live_view_subscriber.cpp47 proxy_->AsObject()->AddDeathRecipient(recipient_); in OnConnected()
57 proxy_->AsObject()->RemoveDeathRecipient(recipient_); in OnDisconnected()
72 if (proxy_ == nullptr) { in GetAnsManagerProxy()
74 if (proxy_ == nullptr) { in GetAnsManagerProxy()
87 proxy_ = iface_cast<AnsManagerInterface>(remoteObject); in GetAnsManagerProxy()
88 if ((proxy_ == nullptr) || (proxy_->AsObject() == nullptr)) { in GetAnsManagerProxy()
105 subscriberImpl_.proxy_ = nullptr; in OnRemoteDied()
/base/customization/enterprise_device_management/test/unittest/restrictions_proxy/
Drestrictions_proxy_test.cpp39 std::shared_ptr<RestrictionsProxy> proxy_ = nullptr; member in OHOS::EDM::TEST::RestrictionsProxyTest
46 proxy_ = RestrictionsProxy::GetRestrictionsProxy(); in SetUp()
55 proxy_.reset(); in TearDown()
79 int32_t ret = proxy_->SetHdcDisabled(admin, true);
95 int32_t ret = proxy_->SetPrinterDisabled(admin, true);
109 int32_t ret = proxy_->SetHdcDisabled(admin, true);
123 int32_t ret = proxy_->SetPrinterDisabled(admin, true);
140 int32_t ret = proxy_->IsHdcDisabled(&admin, result);
157 int32_t ret = proxy_->IsPrinterDisabled(&admin, result);
172 int32_t ret = proxy_->IsHdcDisabled(&admin, result);
[all …]
/base/useriam/user_auth_framework/frameworks/native/client/src/
Dco_auth_client_impl.cpp67 if (proxy_ != nullptr) { in GetProxy()
68 return proxy_; in GetProxy()
73 return proxy_; in GetProxy()
78 return proxy_; in GetProxy()
81 proxy_ = iface_cast<CoAuthInterface>(obj); in GetProxy()
83 return proxy_; in GetProxy()
90 if (proxy_ == nullptr) { in ResetProxy()
94 auto serviceRemote = proxy_->AsObject(); in ResetProxy()
98 proxy_ = nullptr; in ResetProxy()
/base/telephony/state_registry/frameworks/native/observer/src/
Dtelephony_observer_client.cpp33 if (proxy_ != nullptr) { in GetProxy()
34 return proxy_; in GetProxy()
57 proxy_ = iface_cast<ITelephonyStateNotify>(obj); in GetProxy()
59 TELEPHONY_LOGI("Succeed to connect state registry service %{public}d", proxy_ == nullptr); in GetProxy()
60 return proxy_; in GetProxy()
70 if (proxy_ == nullptr) { in OnRemoteDied()
74 auto serviceRemote = proxy_->AsObject(); in OnRemoteDied()
77 proxy_ = nullptr; in OnRemoteDied()
/base/notification/common_event_service/services/src/
Dstatic_subscriber_connection.cpp37 if (proxy_ == nullptr) { in GetProxy()
39 if (proxy_ == nullptr) { in GetProxy()
40 proxy_ = new (std::nothrow) StaticSubscriberProxy(remoteObject); in GetProxy()
41 if (proxy_ == nullptr) { in GetProxy()
46 return proxy_; in GetProxy()
/base/location/test/location_geocode/source/
Dgeo_convert_service_test.cpp55 proxy_ = new (std::nothrow) GeoConvertProxy(service_); in SetUp()
56 EXPECT_NE(nullptr, proxy_); in SetUp()
64 proxy_ = nullptr; in TearDown()
91 proxy_->IsGeoConvertAvailable(replyParcel); in Available()
100 EXPECT_EQ(true, proxy_->EnableReverseGeocodingMock());
139 proxy_->GetAddressByCoordinate(dataParcel, replyParcel);
177 proxy_->GetAddressByLocationName(dataParcel, replyParcel);
187 EXPECT_EQ(true, proxy_->EnableReverseGeocodingMock());
189 EXPECT_EQ(ERRCODE_SUCCESS, proxy_->SetReverseGeocodingMockInfo(mockInfo));
191 EXPECT_EQ(true, proxy_->DisableReverseGeocodingMock());
[all …]
/base/customization/enterprise_device_management/test/unittest/usb_manager_proxy/
Dusb_manager_proxy_test.cpp41 std::shared_ptr<UsbManagerProxy> proxy_ = nullptr; member in OHOS::EDM::TEST::UsbManagerProxyTest
48 proxy_ = UsbManagerProxy::GetUsbManagerProxy(); in SetUp()
57 proxy_.reset(); in TearDown()
81 int32_t ret = proxy_->SetUsbReadOnly(admin, true);
95 int32_t ret = proxy_->SetUsbReadOnly(admin, true);
111 int32_t ret = proxy_->DisableUsb(admin, true);
125 int32_t ret = proxy_->DisableUsb(admin, true);
143 int32_t ret = proxy_->IsUsbDisabled(&admin, isDisable);
160 int32_t ret = proxy_->IsUsbDisabled(&admin, isDisable);
182 int32_t ret = proxy_->AddAllowedUsbDevices(admin, usbDeviceIds);
[all …]
/base/account/os_account/services/accountmgr/src/bundle_manager_adapter/
Dbundle_manager_adapter.cpp47 result = proxy_->GetNameForUid(uid, bundleName); in GetNameForUid()
61 auto ret = proxy_->GetUidByBundleName(bundleName, userId); in GetUidByBundleName()
76 auto ret = proxy_->GetBundleInfo(bundleName, flag, bundleInfo, userId); in GetBundleInfo()
91 auto ret = proxy_->QueryAbilityInfos(want, flags, userId, abilityInfos); in QueryAbilityInfos()
106 auto ret = proxy_->QueryExtensionAbilityInfos(want, flag, userId, extensionInfos); in QueryExtensionAbilityInfos()
122 … auto ret = proxy_->QueryExtensionAbilityInfos(want, extensionType, flag, userId, extensionInfos); in QueryExtensionAbilityInfos()
139 auto bundleUserMgrProxy = proxy_->GetBundleUserMgr(); in CreateNewUser()
164 auto bundleUserMgrProxy = proxy_->GetBundleUserMgr(); in RemoveUser()
180 if (proxy_ == nullptr) { in Connect()
210 proxy_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObj); in Connect()
[all …]
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_common/
Dbundle_manager_adapter.cpp35 BundleManagerAdapter::BundleManagerAdapter() :proxy_(nullptr) in BundleManagerAdapter()
50 return proxy_->GetBundleInfo(bundleName, flag, bundleInfo, userId); in GetBundleInfo()
62 return proxy_->GetBundleInfoV9(bundleName, flag, bundleInfo, userId); in GetBundleInfoV9()
67 if (proxy_ != nullptr) { in Connect()
83 proxy_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObj); in Connect()
84 if (proxy_ == nullptr) { in Connect()
/base/useriam/face_auth/frameworks/ipc/src/
Dface_auth_client_impl.cpp61 sptr<IFaceAuth> proxy_ {nullptr}; member in OHOS::UserIam::FaceAuth::FaceAuthClientImpl
98 if (proxy_ != nullptr) { in GetProxy()
99 return proxy_; in GetProxy()
121 proxy_ = iface_cast<IFaceAuth>(obj); in GetProxy()
123 return proxy_; in GetProxy()
130 if (proxy_ == nullptr) { in ResetProxy()
134 auto serviceRemote = proxy_->AsObject(); in ResetProxy()
138 proxy_ = nullptr; in ResetProxy()
/base/customization/enterprise_device_management/test/unittest/bluetooth_manager_proxy/
Dbluetooth_manager_proxy_test.cpp40 std::shared_ptr<BluetoothManagerProxy> proxy_ = nullptr; member in OHOS::EDM::TEST::BluetoothManagerProxyTest
47 proxy_ = BluetoothManagerProxy::GetBluetoothManagerProxy(); in SetUp()
56 proxy_.reset(); in TearDown()
81 int32_t ret = proxy_->GetBluetoothInfo(admin, bluetoothInfo);
99 int32_t ret = proxy_->GetBluetoothInfo(admin, bluetoothInfo);
116 int32_t ret = proxy_->SetBluetoothDisabled(admin, true);
131 int32_t ret = proxy_->SetBluetoothDisabled(admin, true);
149 int32_t ret = proxy_->IsBluetoothDisabled(&admin, isDisable);
166 int32_t ret = proxy_->IsBluetoothDisabled(&admin, isDisable);
/base/useriam/pin_auth/frameworks/client/src/
Dpinauth_register_impl.cpp68 if (proxy_ != nullptr) { in GetProxy()
69 return proxy_; in GetProxy()
87 proxy_ = iface_cast<PinAuthInterface>(obj); in GetProxy()
90 return proxy_; in GetProxy()
97 auto serviceRemote = proxy_->AsObject(); in ResetProxy()
100 proxy_ = nullptr; in ResetProxy()
/base/customization/enterprise_device_management/test/unittest/security_manager_proxy/
Dsecurity_manager_proxy_test.cpp40 std::shared_ptr<SecurityManagerProxy> proxy_ = nullptr; member in OHOS::EDM::TEST::SecurityManagerProxyTest
47 proxy_ = SecurityManagerProxy::GetSecurityManagerProxy(); in SetUp()
56 proxy_.reset(); in TearDown()
81 int32_t ret = proxy_->GetSecurityPatchTag(admin, res);
97 int32_t ret = proxy_->GetSecurityPatchTag(admin, res);
114 int32_t ret = proxy_->GetDeviceEncryptionStatus(admin, deviceEncryptionStatus);
130 int32_t ret = proxy_->GetDeviceEncryptionStatus(admin, deviceEncryptionStatus);
/base/customization/enterprise_device_management/test/unittest/location_manager_proxy/
Dlocation_manager_proxy_test.cpp40 std::shared_ptr<LocationManagerProxy> proxy_ = nullptr; member in OHOS::EDM::TEST::LocationManagerProxyTest
47 proxy_ = LocationManagerProxy::GetLocationManagerProxy(); in SetUp()
56 proxy_.reset(); in TearDown()
81 int32_t ret = proxy_->SetLocationPolicy(admin, locationPolicy);
96 int32_t ret = proxy_->SetLocationPolicy(admin, locationPolicy);
113 int32_t ret = proxy_->GetLocationPolicy(&admin, locationPolicy);
129 int32_t ret = proxy_->GetLocationPolicy(&admin, locationPolicy);
/base/security/access_token/services/privacymanager/src/sensitive/window_manager/
Dwindow_manager_privacy_client.cpp83 proxy_ = iface_cast<IWindowManager>(windowManagerSa); in InitProxy()
84 if (proxy_ == nullptr) { in InitProxy()
92 proxy_ = nullptr; in OnRemoteDiedHandle()
98 if (proxy_ == nullptr) { in GetProxy()
101 return proxy_; in GetProxy()

123456