/base/usb/usb_manager/interfaces/innerkits/native/src/ |
D | usb_srv_client.cpp | 39 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/ |
D | power_mgr_client.cpp | 47 if (proxy_ != nullptr) { in ~PowerMgrClient() 48 auto remoteObject = proxy_->AsObject(); in ~PowerMgrClient() 58 if (proxy_ != nullptr) { in Connect() 83 proxy_ = iface_cast<IPowerMgr>(remoteObject_); in Connect() 91 RETURN_IF(proxy_ == nullptr); in ResetProxy() 93 auto serviceRemote = proxy_->AsObject(); in ResetProxy() 96 proxy_ = nullptr; in ResetProxy() 114 return proxy_->RebootDevice(reason); in RebootDevice() 120 return proxy_->RebootDeviceForDeprecated(reason); in RebootDeviceForDeprecated() 126 return proxy_->ShutDownDevice(reason); in ShutDownDevice() [all …]
|
D | running_lock.cpp | 34 : proxy_(proxy) in RunningLock() 61 sptr<IPowerMgr> proxy = proxy_.promote(); in Lock() 77 sptr<IPowerMgr> proxy = proxy_.promote(); in UnLock() 89 sptr<IPowerMgr> proxy = proxy_.promote(); in CheckUsedNoLock() 118 sptr<IPowerMgr> proxy = proxy_.promote(); in SetWorkTriggerList() 135 sptr<IPowerMgr> proxy = proxy_.promote(); in Create() 146 sptr<IPowerMgr> proxy = proxy_.promote(); in Release()
|
/base/powermgr/battery_manager/frameworks/native/src/ |
D | battery_srv_client.cpp | 38 if (proxy_ != nullptr) { in Connect() 62 proxy_ = iface_cast<IBatterySrv>(remoteObject_); in Connect() 69 RETURN_IF(proxy_ == nullptr); in ResetProxy() 70 auto serviceRemote = proxy_->AsObject(); in ResetProxy() 73 proxy_ = nullptr; in ResetProxy() 91 capacity = proxy_->GetCapacity(); in GetCapacity() 99 chargingState = proxy_->GetChargingStatus(); in GetChargingStatus() 107 healthStatus = proxy_->GetHealthStatus(); in GetHealthStatus() 115 pluggedType = proxy_->GetPluggedType(); in GetPluggedType() 123 voltage = proxy_->GetVoltage(); in GetVoltage() [all …]
|
/base/powermgr/battery_statistics/frameworks/native/src/ |
D | battery_stats_client.cpp | 37 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/hiviewdfx/hidumper/services/native/src/ |
D | dump_manager_client.cpp | 35 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/location/test/location_geocode/source/ |
D | geo_convert_service_test.cpp | 52 proxy_ = new (std::nothrow) GeoConvertProxy(service_); in SetUp() 53 EXPECT_NE(nullptr, proxy_); in SetUp() 61 proxy_ = nullptr; in TearDown() 88 proxy_->IsGeoConvertAvailable(replyParcel); in Available() 117 EXPECT_EQ(true, proxy_->EnableReverseGeocodingMock()); 157 proxy_->GetAddressByCoordinate(dataParcel, replyParcel); 195 proxy_->GetAddressByLocationName(dataParcel, replyParcel); 205 EXPECT_EQ(true, proxy_->EnableReverseGeocodingMock()); 207 EXPECT_EQ(ERRCODE_SUCCESS, proxy_->SetReverseGeocodingMockInfo(mockInfo)); 209 EXPECT_EQ(true, proxy_->DisableReverseGeocodingMock()); [all …]
|
/base/telephony/state_registry/frameworks/native/observer/src/ |
D | telephony_observer_client.cpp | 33 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/customization/enterprise_device_management/services/edm/src/connection/ |
D | enterprise_admin_connection.cpp | 28 proxy_ = (new (std::nothrow) EnterpriseAdminProxy(remoteObject)); in OnAbilityConnectDone() 29 if (proxy_ == nullptr) { in OnAbilityConnectDone() 35 proxy_->OnAdminEnabled(); in OnAbilityConnectDone() 38 proxy_->OnAdminDisabled(); in OnAbilityConnectDone()
|
D | enterprise_bundle_connection.cpp | 29 proxy_ = (new (std::nothrow) EnterpriseAdminProxy(remoteObject)); in OnAbilityConnectDone() 30 if (proxy_ == nullptr) { in OnAbilityConnectDone() 36 proxy_->OnBundleAdded(bundleName_); in OnAbilityConnectDone() 39 proxy_->OnBundleRemoved(bundleName_); in OnAbilityConnectDone()
|
/base/useriam/pin_auth/frameworks/client/src/ |
D | pinauth_register.cpp | 71 if (proxy_ != nullptr) { in GetProxy() 72 return proxy_; in GetProxy() 90 proxy_ = iface_cast<PinAuthInterface>(obj); in GetProxy() 93 return proxy_; in GetProxy() 100 auto serviceRemote = proxy_->AsObject(); in ResetProxy() 103 proxy_ = nullptr; in ResetProxy()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification_subscriber.cpp | 46 proxy_->AsObject()->AddDeathRecipient(recipient_); in OnConnected() 56 proxy_->AsObject()->RemoveDeathRecipient(recipient_); in OnDisconnected() 104 if (proxy_ == nullptr) { in GetAnsManagerProxy() 106 if (proxy_ == nullptr) { in GetAnsManagerProxy() 119 proxy_ = iface_cast<AnsManagerInterface>(remoteObject); in GetAnsManagerProxy() 120 if ((proxy_ == nullptr) || (proxy_->AsObject() == nullptr)) { in GetAnsManagerProxy() 136 subscriberImpl_.proxy_ = nullptr; in OnRemoteDied()
|
/base/account/os_account/frameworks/domain_account/src/ |
D | domain_auth_callback_client.cpp | 22 DomainAuthCallbackClient::DomainAuthCallbackClient(const sptr<IDomainAuthCallback> &proxy) : proxy_… in DomainAuthCallbackClient() 30 if (proxy_ != nullptr) { in OnResult() 31 proxy_->OnResult(resultCode, result); in OnResult()
|
D | domain_account_client.cpp | 100 if (proxy_ == nullptr) { in ResetDomainAccountProxy() 104 auto serviceRemote = proxy_->AsObject(); in ResetDomainAccountProxy() 108 proxy_ = nullptr; in ResetDomainAccountProxy() 124 if (proxy_ != nullptr) { in GetDomainAccountProxy() 125 return proxy_; in GetDomainAccountProxy() 142 proxy_ = iface_cast<IDomainAccount>(object); in GetDomainAccountProxy() 143 return proxy_; in GetDomainAccountProxy()
|
/base/account/os_account/services/accountmgr/src/bundle_manager_adapter/ |
D | bundle_manager_adapter.cpp | 53 auto ret = proxy_->GetBundleNameForUid(uid, bundleName); in GetBundleNameForUid() 67 auto ret = proxy_->GetUidByBundleName(bundleName, userId); in GetUidByBundleName() 82 auto ret = proxy_->GetBundleInfo(bundleName, flag, bundleInfo, userId); in GetBundleInfo() 97 auto ret = proxy_->QueryAbilityInfos(want, flags, userId, abilityInfos); in QueryAbilityInfos() 112 auto ret = proxy_->QueryExtensionAbilityInfos(want, flag, userId, extensionInfos); in QueryExtensionAbilityInfos() 129 auto bundleUserMgrProxy = proxy_->GetBundleUserMgr(); in CreateNewUser() 154 auto bundleUserMgrProxy = proxy_->GetBundleUserMgr(); in RemoveUser() 170 if (proxy_ == nullptr) { in Connect() 200 proxy_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObj); in Connect() 201 if (proxy_ == nullptr) { in Connect() [all …]
|
/base/account/os_account/frameworks/account_iam/src/ |
D | account_iam_client.cpp | 43 return proxy_->OpenSession(userId, challenge); in OpenSession() 51 return proxy_->CloseSession(userId); in CloseSession() 75 proxy_->AddCredential(userId, credInfo, wrapper); in AddCredential() 99 proxy_->UpdateCredential(userId, credInfo, wrapper); in UpdateCredential() 119 proxy_->DelCred(userId, credentialId, authToken, wrapper); in DelCred() 139 proxy_->DelUser(userId, authToken, wrapper); in DelUser() 149 return proxy_->GetCredentialInfo(userId, authType, wrapper); in GetCredentialInfo() 157 return proxy_->Cancel(userId); in Cancel() 204 return proxy_->AuthUser(userId, challenge, authType, authTrustLevel, wrapper); in AuthUser() 212 return proxy_->CancelAuth(contextId); in CancelAuth() [all …]
|
/base/security/access_token/services/privacymanager/src/sensitive/window_manager/ |
D | window_manager_privacy_client.cpp | 83 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()
|
/base/security/access_token/services/privacymanager/src/sensitive/camera_manager/ |
D | camera_manager_privacy_client.cpp | 93 proxy_ = iface_cast<ICameraService>(cameraManagerSa); in InitProxy() 94 if (proxy_ == nullptr) { in InitProxy() 102 proxy_ = nullptr; in OnRemoteDiedHandle() 108 if (proxy_ == nullptr) { in GetProxy() 111 return proxy_; in GetProxy()
|
/base/security/access_token/services/privacymanager/src/sensitive/ability_manager/ |
D | ability_manager_privacy_client.cpp | 83 proxy_ = iface_cast<IAbilityManager>(abilityManagerSa); in InitProxy() 84 if (proxy_ == nullptr) { in InitProxy() 92 proxy_ = nullptr; in OnRemoteDiedHandle() 98 if (proxy_ == nullptr) { in GetProxy() 101 return proxy_; in GetProxy()
|
/base/notification/common_event_service/services/src/ |
D | static_subscriber_connection.cpp | 26 proxy_ = new (std::nothrow) AppExecFwk::StaticSubscriberProxy(remoteObject); in OnAbilityConnectDone() 27 if (proxy_ == nullptr) { in OnAbilityConnectDone() 30 ErrCode ec = proxy_->OnReceiveEvent(&event_); in OnAbilityConnectDone()
|
/base/telephony/core_service/frameworks/native/src/ |
D | telephony_state_registry_client.cpp | 33 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/telephony/cellular_data/frameworks/native/ |
D | cellular_data_client.cpp | 50 if (proxy_ != nullptr) { in GetProxy() 51 return proxy_; in GetProxy() 74 proxy_ = iface_cast<ICellularDataManager>(obj); in GetProxy() 76 TELEPHONY_LOGI("Succeed to connect cellular data service %{public}d", proxy_ == nullptr); in GetProxy() 77 return proxy_; in GetProxy() 87 if (proxy_ == nullptr) { in OnRemoteDied() 91 sptr<IRemoteObject> serviceRemote = proxy_->AsObject(); in OnRemoteDied() 94 proxy_ = nullptr; in OnRemoteDied() 101 return (proxy_ != nullptr); in IsConnect()
|
/base/location/test/location_locator/source/ |
D | locator_service_test.cpp | 70 proxy_ = new (std::nothrow) LocatorProxy(object); in SetUp() 71 EXPECT_NE(nullptr, proxy_); in SetUp() 92 proxy_ = nullptr; in TearDown() 192 int result = proxy_->GetSwitchState(); 279 if (proxy_->GetSwitchState() == 1) { 280 proxy_->GetCacheLocation(reply); 284 proxy_->GetCacheLocation(reply); 409 proxy_->UpdateSaAbility(); 428 if (proxy_->GetSwitchState() == 1) { 429 proxy_->EnableAbility(false); // if the state is false [all …]
|
/base/security/access_token/services/privacymanager/src/sensitive/audio_manager/ |
D | audio_manager_privacy_client.cpp | 102 proxy_ = iface_cast<IAudioPolicy>(audioManagerSa); in InitProxy() 103 if (proxy_ == nullptr) { in InitProxy() 111 proxy_ = nullptr; in OnRemoteDiedHandle() 117 if (proxy_ == nullptr) { in GetProxy() 120 return proxy_; in GetProxy()
|
/base/security/access_token/services/privacymanager/src/sensitive/app_manager/ |
D | app_manager_privacy_client.cpp | 101 proxy_ = iface_cast<IAppMgr>(appManagerSa); in InitProxy() 102 if (proxy_ == nullptr) { in InitProxy() 110 proxy_ = nullptr; in OnRemoteDiedHandle() 116 if (proxy_ == nullptr) { in GetProxy() 119 return proxy_; in GetProxy()
|