/foundation/communication/bluetooth_service/test/unittest/avrcp/ |
H A D | avrcp_tg_test.cpp | 39 static AvrcpTarget *profile_; member 84 profile_ = AvrcpTarget::GetProfile(); in HWTEST_F() 98 profile_ = AvrcpTarget::GetProfile(); in HWTEST_F() 99 vector<BluetoothRemoteDevice> devices = profile_->GetConnectedDevices(); in HWTEST_F() 113 profile_ = AvrcpTarget::GetProfile(); in HWTEST_F() 115 int state = profile_->GetDeviceState(device); in HWTEST_F() 129 profile_ = AvrcpTarget::GetProfile(); in HWTEST_F() 130 profile_->RegisterObserver(observer_); in HWTEST_F() 143 profile_ = AvrcpTarget::GetProfile(); in HWTEST_F() 144 profile_ in HWTEST_F() [all...] |
H A D | avrcp_ct_test.cpp | 39 static AvrcpController *profile_; member 82 profile_ = AvrcpController::GetProfile(); in HWTEST_F() 95 profile_ = AvrcpController::GetProfile(); in HWTEST_F() 96 vector<BluetoothRemoteDevice> devices = profile_->GetConnectedDevices(); in HWTEST_F() 109 profile_ = AvrcpController::GetProfile(); in HWTEST_F() 111 int state = profile_->GetDeviceState(device); in HWTEST_F() 125 profile_ = AvrcpController::GetProfile(); in HWTEST_F() 126 profile_->RegisterObserver(&observer_); in HWTEST_F() 139 profile_ = AvrcpController::GetProfile(); in HWTEST_F() 140 profile_ in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/test/unittest/hfp/ |
H A D | hfp_hf_test.cpp | 49 static HandsFreeUnit *profile_; member 98 profile_ = HandsFreeUnit::GetProfile(); in HWTEST_F() 112 profile_ = HandsFreeUnit::GetProfile(); in HWTEST_F() 114 EXPECT_EQ(profile_->ConnectSco(device), true); in HWTEST_F() 128 profile_ = HandsFreeUnit::GetProfile(); in HWTEST_F() 130 EXPECT_EQ(profile_->DisconnectSco(device), true); in HWTEST_F() 144 profile_ = HandsFreeUnit::GetProfile(); in HWTEST_F() 147 vector<BluetoothRemoteDevice> devices = profile_->GetDevicesByStates(states); in HWTEST_F() 161 profile_ = HandsFreeUnit::GetProfile(); in HWTEST_F() 163 EXPECT_EQ(profile_ in HWTEST_F() [all...] |
H A D | hfp_ag_test.cpp | 44 static HandsFreeAudioGateway *profile_; member 94 profile_ = HandsFreeAudioGateway::GetProfile(); in HWTEST_F() 109 profile_ = HandsFreeAudioGateway::GetProfile(); in HWTEST_F() 111 profile_->GetConnectedDevices(devices); in HWTEST_F() 125 profile_ = HandsFreeAudioGateway::GetProfile(); in HWTEST_F() 128 profile_->GetDevicesByStates(states, devices); in HWTEST_F() 141 profile_ = HandsFreeAudioGateway::GetProfile(); in HWTEST_F() 144 int state = profile_->GetDeviceState(device, state); in HWTEST_F() 159 profile_ = HandsFreeAudioGateway::GetProfile(); in HWTEST_F() 161 bool isOK = (profile_ in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/test/unittest/map/ |
H A D | map_mce_test.cpp | 54 static MapClient *profile_; member 101 profile_ = MapClient::GetProfile(); in HWTEST_F() 116 profile_ = MapClient::GetProfile(); in HWTEST_F() 117 profile_->RegisterObserver(observer_); in HWTEST_F() 132 profile_ = MapClient::GetProfile(); in HWTEST_F() 133 profile_->DeregisterObserver(observer_); in HWTEST_F() 148 profile_ = MapClient::GetProfile(); in HWTEST_F() 150 bool ret = profile_->Connect(device); in HWTEST_F() 167 profile_ = MapClient::GetProfile(); in HWTEST_F() 169 bool ret = profile_ in HWTEST_F() [all...] |
H A D | map_mse_test.cpp | 40 static MapServer *profile_; member 82 profile_ = MapServer::GetProfile(); in HWTEST_F() 84 bool isOK = profile_->Disconnect(device); in HWTEST_F() 97 profile_ = MapServer::GetProfile(); in HWTEST_F() 98 profile_->RegisterObserver(observer_); in HWTEST_F() 110 profile_ = MapServer::GetProfile(); in HWTEST_F() 111 profile_->DeregisterObserver(observer_); in HWTEST_F() 123 profile_ = MapServer::GetProfile(); in HWTEST_F() 124 int ret = profile_->GetState(); in HWTEST_F() 137 profile_ in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/test/unittest/pbap/ |
H A D | pbap_client_test.cpp | 43 static PbapClient *profile_; member 88 profile_ = PbapClient::GetProfile(); in HWTEST_F() 90 bool isOK = profile_->Connect(device); in HWTEST_F() 104 profile_ = PbapClient::GetProfile(); in HWTEST_F() 106 bool isOK = profile_->Disconnect(device); in HWTEST_F() 120 profile_ = PbapClient::GetProfile(); in HWTEST_F() 121 profile_->RegisterObserver(&observer_); in HWTEST_F() 134 profile_ = PbapClient::GetProfile(); in HWTEST_F() 135 profile_->DeregisterObserver(&observer_); in HWTEST_F() 147 profile_ in HWTEST_F() [all...] |
H A D | pbap_server_test.cpp | 42 static PbapServer *profile_; member 85 profile_ = PbapServer::GetProfile(); in HWTEST_F() 87 bool isOK = profile_->Disconnect(device); in HWTEST_F() 100 profile_ = PbapServer::GetProfile(); in HWTEST_F() 101 profile_->RegisterObserver(&observer_); in HWTEST_F() 113 profile_ = PbapServer::GetProfile(); in HWTEST_F() 114 profile_->DeregisterObserver(&observer_); in HWTEST_F() 126 profile_ = PbapServer::GetProfile(); in HWTEST_F() 127 vector<BluetoothRemoteDevice> devices = profile_->GetConnectedDevices(); in HWTEST_F() 141 profile_ in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/test/unittest/a2dp/ |
H A D | a2dp_src_test.cpp | 44 static A2dpSource *profile_; member 94 profile_ = A2dpSource::GetProfile(); in HWTEST_F() 108 profile_ = A2dpSource::GetProfile(); in HWTEST_F() 110 int state = profile_->GetPlayingState(device); in HWTEST_F() 124 profile_ = A2dpSource::GetProfile(); in HWTEST_F() 125 profile_->RegisterObserver(observer_); in HWTEST_F() 138 profile_ = A2dpSource::GetProfile(); in HWTEST_F() 139 profile_->DeregisterObserver(observer_); in HWTEST_F() 152 profile_ = A2dpSource::GetProfile(); in HWTEST_F() 154 EXPECT_EQ(profile_ in HWTEST_F() [all...] |
H A D | a2dp_snk_test.cpp | 41 static A2dpSink *profile_; member 93 profile_ = A2dpSink::GetProfile(); in HWTEST_F() 107 profile_ = A2dpSink::GetProfile(); in HWTEST_F() 109 int state = profile_->GetPlayingState(device); in HWTEST_F() 123 profile_ = A2dpSink::GetProfile(); in HWTEST_F() 125 bool isOK = profile_->Connect(device); in HWTEST_F() 139 profile_ = A2dpSink::GetProfile(); in HWTEST_F() 141 bool isOK = profile_->Disconnect(device); in HWTEST_F() 155 profile_ = A2dpSink::GetProfile(); in HWTEST_F() 156 profile_ in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_statemachine.cpp | 30 : address_(address), profile_(address), eventProcessor_(profile_, address) in HfpAgStateMachine() 36 profile_.Init(); in Init() 40 std::make_unique<HfpAgDisconnected>(DISCONNECTED, *this, profile_, eventProcessor_); in Init() 42 std::make_unique<HfpAgConnecting>(CONNECTING, *this, profile_, eventProcessor_); in Init() 44 std::make_unique<HfpAgDisconnecting>(DISCONNECTING, *this, profile_, eventProcessor_); in Init() 46 std::make_unique<HfpAgConnected>(CONNECTED, *this, profile_, eventProcessor_); in Init() 48 std::make_unique<HfpAgAudioConnecting>(AUDIO_CONNECTING, *this, profile_, eventProcessor_, *connectedState); in Init() 50 std::make_unique<HfpAgAudioConnected>(AUDIO_CONNECTED, *this, profile_, eventProcessor_, *connectedState); in Init() 53 *this, profile_, eventProcessor in Init() [all...] |
H A D | hfp_ag_system_event_processer.cpp | 27 :profile_(profile), address_(address) in HfpAgSystemEventProcesser() 174 profile_.SendResultCode(HFP_AG_RESULT_ERROR); in ProcessDialOutCallEvent() 184 profile_.SendResultCode(HFP_AG_RESULT_ERROR); in ProcessDialOutCallEvent() 187 profile_.SendResultCode(HFP_AG_RESULT_ERROR); in ProcessDialOutCallEvent() 193 profile_.SendResultCode(HFP_AG_RESULT_OK); in ProcessSendDtmfEvent() 238 profile_.SendResultCode(HFP_AG_RESULT_OK); in ProcessHoldCallEvent() 240 profile_.SendResultCode(HFP_AG_RESULT_ERROR); in ProcessHoldCallEvent() 255 profile_.SendSubscriberNumberInformation(type, number); in GetSubscriberNumber() 256 profile_.SendResultCode(HFP_AG_RESULT_OK); in GetSubscriberNumber() 258 profile_ in GetSubscriberNumber() [all...] |
/foundation/communication/bluetooth_service/test/unittest/hid/ |
H A D | hid_host_test.cpp | 38 static Bluetooth::HidHost *profile_; member 102 profile_ = HidHost::GetProfile(); in HWTEST_F() 106 profile_->GetDevicesByStates(states, devices); in HWTEST_F() 126 profile_ = HidHost::GetProfile(); in HWTEST_F() 128 profile_->GetDeviceState(device, state); in HWTEST_F() 146 profile_ = HidHost::GetProfile(); in HWTEST_F() 147 bool isOK = (profile_->Connect(device) == NO_ERROR ? true : false); in HWTEST_F() 165 profile_ = HidHost::GetProfile(); in HWTEST_F() 166 bool isOK = (profile_->Disconnect(device) == NO_ERROR ? true : false); in HWTEST_F() 183 profile_ in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/test/unittest/pan/ |
H A D | pan_test.cpp | 37 static Bluetooth::Pan *profile_; member 100 profile_ = Pan::GetProfile(); in HWTEST_F() 104 profile_->GetDevicesByStates(states, devices); in HWTEST_F() 123 profile_ = Pan::GetProfile(); in HWTEST_F() 125 profile_->GetDeviceState(device, state); in HWTEST_F() 143 profile_ = Pan::GetProfile(); in HWTEST_F() 144 EXPECT_TRUE(profile_->Disconnect(device)); in HWTEST_F() 160 profile_ = Pan::GetProfile(); in HWTEST_F() 161 profile_->RegisterObserver(panObserverTest); in HWTEST_F() 177 profile_ in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/ |
H A D | hfp_hf_statemachine.cpp | 26 : address_(address), profile_(address) in HfpHfStateMachine() 31 profile_.Init(); in Init() 36 std::make_unique<HfpHfDisconnected>(DISCONNECTED, *this, profile_); in Init() 38 std::make_unique<HfpHfConnecting>(CONNECTING, *this, profile_); in Init() 40 std::make_unique<HfpHfDisconnecting>(DISCONNECTING, *this, profile_); in Init() 42 std::make_unique<HfpHfConnected>(CONNECTED, *this, profile_); in Init() 44 std::make_unique<HfpHfAudioConnecting>(AUDIO_CONNECTING, *this, profile_, *connectedState); in Init() 46 std::make_unique<HfpHfAudioDisconnecting>(AUDIO_DISCONNECTING, *this, profile_, *connectedState); in Init() 48 std::make_unique<HfpHfAudioConnected>(AUDIO_CONNECTED, *this, profile_, *connectedState); in Init() 67 profile_ in Entry() [all...] |
/foundation/communication/bluetooth_service/test/unittest/opp/ |
H A D | opp_test.cpp | 39 static Bluetooth::Opp *profile_; member 128 profile_ = Opp::GetProfile(); in HWTEST_F() 131 std::vector<BluetoothRemoteDevice> bluetoothRemoteDeviceByState = profile_->GetDevicesByStates(states); in HWTEST_F() 151 profile_ = Opp::GetProfile(); in HWTEST_F() 152 EXPECT_EQ(sucess, profile_->GetDeviceState(device)); in HWTEST_F() 171 profile_ = Opp::GetProfile(); in HWTEST_F() 172 EXPECT_FALSE(profile_->SendFile(device, filePaths, mimeTypes)); in HWTEST_F() 189 profile_ = Opp::GetProfile(); in HWTEST_F() 190 EXPECT_FALSE(profile_->SetIncomingFileConfirmation(accept)); in HWTEST_F() 206 profile_ in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/ |
H A D | avrcp_tg_service.cpp | 541 if (profile_ != nullptr) { in Disable() 542 profile_->SetEnableFlag(false); in Disable() 686 profile_ = std::make_unique<AvrcTgProfile>(features_, in EnableProfile() 693 profile_->RegisterObserver(pfObserver_.get()); in EnableProfile() 695 return profile_->Enable(); in EnableProfile() 702 return profile_->Disable(); in DisableProfile() 711 profile_->UnregisterObserver(); in OnProfileDisabled() 712 profile_ = nullptr; in OnProfileDisabled() 753 profile_->SetActiveDevice(rawAddr); in SetActiveDevice() 765 result = profile_ in GetConnectedDevices() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/ |
H A D | avrcp_ct_service.cpp | 148 if (profile_ != nullptr) { in Disable() 149 profile_->SetEnableFlag(false); in Disable() 214 profile_ = std::make_unique<AvrcCtProfile>(features_, in EnableProfile() 222 profile_->RegisterObserver(pfObserver_.get()); in EnableProfile() 224 return profile_->Enable(isTgEnabled); in EnableProfile() 231 return profile_->Disable(); in DisableProfile() 240 profile_->UnregisterObserver(); in OnProfileDisabled() 241 profile_ = nullptr; in OnProfileDisabled() 319 result = profile_->GetConnectedDevices(); in GetConnectedDevices() 332 result = profile_ in GetDevicesByStates() [all...] |
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/ |
H A D | camera_output_capability.cpp | 175 auto it = std::find_if(videoProfiles_.begin(), videoProfiles_.end(), [&profile](VideoProfile& profile_) { in IsMatchVideoProfiles() 176 return profile_.GetCameraFormat() == profile.GetCameraFormat() && in IsMatchVideoProfiles() 177 profile_.GetSize().width == profile.GetSize().width && in IsMatchVideoProfiles() 178 profile_.GetSize().height == profile.GetSize().height && in IsMatchVideoProfiles() 179 profile_.framerates_[0] <= profile.framerates_[0] && in IsMatchVideoProfiles() 180 profile_.framerates_[1] >= profile.framerates_[1]; in IsMatchVideoProfiles()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_client_service.cpp | 46 GattClientProfile &profile_; member 50 Discover(ClientApplication &client, GattClientProfile &profile) : client_(client), profile_(profile) in Discover() 68 discover_(*this, src.discover_.profile_) in ClientApplication() 89 std::unique_ptr<GattClientProfile> profile_ = {nullptr}; member 570 profile_(std::make_unique<GattClientProfile>(profileCallback_.get(), service.GetDispatcher())), in impl() 680 profile_->ClearCacheMap(client.connection_.GetHandle()); in DiscoveryServices() 702 profile_->ReadCharacteristicValue(appId, client.connection_.GetHandle(), handle + 1); in ReadCharacteristic() 716 profile_->ReadUsingCharacteristicByUuid(appId, client.connection_.GetHandle(), uuid); in ReadCharacteristicByUuid() 733 profile_->WriteWithoutResponse(appId, client.connection_.GetHandle(), handle + 1, value, length); in WriteCharacteristic() 735 profile_ in WriteCharacteristic() [all...] |
H A D | gatt_server_service.cpp | 55 std::unique_ptr<GattServerProfile> profile_ = {nullptr}; member 208 int result = pimpl->profile_->CheckLegalityOfServiceDefinition(service); in AddService() 435 int result = pimpl->profile_->CheckLegalityOfServiceDefinition(service); in AddServiceSync() 445 return pimpl->profile_->GetDBHash(); in GetDatabaseHash() 564 profile_->Enable(); in Enable() 581 profile_->Disable(); in Disable() 619 profile_(std::make_unique<GattServerProfile>( in impl() 689 result = profile_->AddService(service); in AddService() 717 auto deleteService = profile_->GetService(handle); in RemoveService() 723 int result = profile_ in RemoveService() [all...] |
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/include/ |
H A D | mock_application_proxy.h | 122 profile_ = profile; in ProfileChanged() 128 return (profile.GetName() == profile_.GetName()); in CompareProfile() 141 Profile profile_; member in OHOS::AppExecFwk::MockApplicationProxy
|
H A D | mock_application.h | 121 profile_ = profile; in ProfileChanged() 127 return (profile.GetName() == profile_.GetName()); in CompareProfile() 140 Profile profile_; member in OHOS::AppExecFwk::MockApplication
|
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/include/appmgr/ |
H A D | app_launch_data.h | 107 return profile_; in GetProfile() 261 Profile profile_; member in OHOS::AppExecFwk::AppLaunchData
|
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtp/src/ |
H A D | adts.cpp | 30 out[2] = ((hed.profile_ << 6) & 0xC0); // 2 bit, 6:byte offset, 2:byte offset in DumpAdtsHeader() 64 adts.profile_ = audioObjectType - 1; in ParseAacConfig()
|