Home
last modified time | relevance | path

Searched refs:service (Results 1 – 25 of 420) sorted by relevance

12345678910>>...17

/system/connectivity/shill/
Dservice_property_change_test.cc48 void TestCommonPropertyChanges(ServiceRefPtr service, in TestCommonPropertyChanges() argument
52 EXPECT_EQ(Service::kStateIdle, service->state()); in TestCommonPropertyChanges()
54 service->SetState(Service::kStateConnected); in TestCommonPropertyChanges()
60 bool connectable = service->connectable(); in TestCommonPropertyChanges()
62 service->SetConnectable(!connectable); in TestCommonPropertyChanges()
65 EXPECT_EQ(string(), service->guid()); in TestCommonPropertyChanges()
67 service->SetGuid("some garbage", &error); in TestCommonPropertyChanges()
71 service->ClearAutoConnect(nullptr); in TestCommonPropertyChanges()
72 EXPECT_FALSE(service->auto_connect()); in TestCommonPropertyChanges()
74 service->SetAutoConnect(true); in TestCommonPropertyChanges()
[all …]
Dmanager.cc308 for (const auto& service : services_) { in Stop() local
309 service->Disconnect(&e, __func__); in Stop()
483 for (ServiceRefPtr& service : services_) { in PushProfileInternal()
484 service->ClearExplicitlyDisconnected(); in PushProfileInternal()
487 if (profile->ConfigureService(service)) { in PushProfileInternal()
488 LOG(INFO) << "(Re-)configured service " << service->unique_name() in PushProfileInternal()
814 void Manager::RemoveService(const ServiceRefPtr& service) { in RemoveService() argument
815 LOG(INFO) << __func__ << " for service " << service->unique_name(); in RemoveService()
816 if (!IsServiceEphemeral(service)) { in RemoveService()
817 service->profile()->AbandonService(service); in RemoveService()
[all …]
Dmock_control.h46 ServiceAdaptorInterface* CreateServiceAdaptor(Service* service) override;
85 DHCPProxyInterface*(const std::string& service));
94 const std::string& service));
99 const std::string& service,
106 const std::string& service,
111 const std::string& service));
114 const std::string& service));
118 const std::string& service));
121 const std::string& service));
124 const std::string& service));
[all …]
Dnice_mock_control.h46 ServiceAdaptorInterface* CreateServiceAdaptor(Service* service) override;
85 DHCPProxyInterface*(const std::string& service));
94 const std::string& service));
99 const std::string& service,
106 const std::string& service,
111 const std::string& service));
114 const std::string& service));
118 const std::string& service));
121 const std::string& service));
124 const std::string& service));
[all …]
Dephemeral_profile.cc55 bool EphemeralProfile::AdoptService(const ServiceRefPtr& service) { in AdoptService() argument
56 SLOG(this, 2) << "Adding service " << service->unique_name() in AdoptService()
58 service->SetProfile(this); in AdoptService()
62 bool EphemeralProfile::AbandonService(const ServiceRefPtr& service) { in AbandonService() argument
63 if (service->profile() == this) in AbandonService()
64 service->SetProfile(nullptr); in AbandonService()
65 SLOG(this, 2) << "Removing service " << service->unique_name() in AbandonService()
Dcontrol_interface.h101 virtual ServiceAdaptorInterface* CreateServiceAdaptor(Service* service) = 0;
142 virtual DHCPProxyInterface* CreateDHCPProxy(const std::string& service) = 0;
149 const std::string& service) = 0;
153 const std::string& service,
160 const std::string& service,
165 const std::string& service) = 0;
169 const std::string& service) = 0;
173 const std::string& service) = 0;
177 const std::string& service) = 0;
181 const std::string& service) = 0;
[all …]
Dprofile.cc190 bool Profile::AdoptService(const ServiceRefPtr& service) { in AdoptService() argument
191 if (service->profile() == this) { in AdoptService()
194 service->SetProfile(this); in AdoptService()
195 return service->Save(storage_.get()) && storage_->Flush(); in AdoptService()
198 bool Profile::AbandonService(const ServiceRefPtr& service) { in AbandonService() argument
199 if (service->profile() == this) in AbandonService()
200 service->SetProfile(nullptr); in AbandonService()
201 return storage_->DeleteGroup(service->GetStorageIdentifier()) && in AbandonService()
205 bool Profile::UpdateService(const ServiceRefPtr& service) { in UpdateService() argument
206 return service->Save(storage_.get()) && storage_->Flush(); in UpdateService()
[all …]
/system/connectivity/shill/bin/
Dset_apn66 local service="$1"
69 dbus "${service}" "${ISERVICE}.GetProperties" 2>/dev/null \
74 local service="$1"
75 local apn="$(get_apn_info ${service} ${LAST_GOOD_APN_PROPERTY})"
82 apn="$(get_apn_info ${service} ${APN_PROPERTY})"
93 local service="$1"
108 echo "Setting APN \"${apn}\" for network ID ${network_id} for service ${service}"
109 ${SET_APN_HELPER} "${service}" "${APN_PROPERTY}" "${args}"
113 local service="$1"
115 echo "Clearing APN for service ${service}"
[all …]
Dset_cellular_ppp72 local service="$1"
73 local username="$(get_property ${ISERVICE} ${service} ${USERNAME_PROPERTY})"
85 local service="$1"
88 echo "Setting PPP username \"${username}\" for service ${service}"
89 dbus "${service}" "${ISERVICE}.SetProperty" \
94 local service="$1"
97 echo "Setting PPP pasword for service ${service}"
98 dbus "${service}" "${ISERVICE}.SetProperty" \
103 local service="$1"
106 echo "Clearing ${property} for service ${service}"
[all …]
/system/tools/aidl/tests/
Daidl_test_client.cpp56 bool GetService(sp<ITestService>* service) { in GetService() argument
58 status_t status = getService(String16(kServiceName), service); in GetService()
75 sp<ITestService> service; in main() local
79 if (!client_tests::GetService(&service)) return 1; in main()
81 if (!client_tests::ConfirmPrimitiveRepeat(service)) return 1; in main()
83 if (!client_tests::ConfirmReverseArrays(service)) return 1; in main()
85 if (!client_tests::ConfirmReverseLists(service)) return 1; in main()
87 if (!client_tests::ConfirmReverseBinderLists(service)) return 1; in main()
89 if (!client_tests::ConfirmSimpleParcelables(service)) return 1; in main()
91 if (!client_tests::ConfirmPersistableBundles(service)) return 1; in main()
[all …]
/system/connectivity/shill/wifi/
Dwifi_service_unittest.cc99 const WiFiServiceRefPtr& service) { in SetMockEap() argument
101 service->eap_.reset(eap); // Passes ownership. in SetMockEap()
107 WiFiServiceRefPtr service = MakeSimpleService(security); in CheckConnectable() local
109 service->SetPassphrase(passphrase, &error); in CheckConnectable()
110 MockEapCredentials* eap = SetMockEap(service); in CheckConnectable()
118 service->OnEapCredentialsChanged(Service::kReasonCredentialsLoaded); in CheckConnectable()
119 return service->connectable(); in CheckConnectable()
157 void SetWiFi(WiFiServiceRefPtr service, WiFiRefPtr wifi) { in SetWiFi() argument
158 service->SetWiFi(wifi); // Has side-effects. in SetWiFi()
160 void SetWiFiForService(WiFiServiceRefPtr service, WiFiRefPtr wifi) { in SetWiFiForService() argument
[all …]
Dwifi_provider.cc109 WiFiServiceRefPtr service = services_.back(); in Stop() local
110 ForgetService(service); in Stop()
112 << service->unique_name(); in Stop()
113 manager_->DeregisterService(service); in Stop()
189 WiFiServiceRefPtr service(FindService(ssid, mode, security)); in FindSimilarService() local
190 if (!service) { in FindSimilarService()
194 return service; in FindSimilarService()
263 WiFiServiceRefPtr service(FindService(ssid_bytes, mode, security_method)); in GetWiFiService() local
264 if (!service) { in GetWiFiService()
265 service = AddService(ssid_bytes, in GetWiFiService()
[all …]
Dwifi_unittest.cc777 EndpointRemovalHandler(WiFiRefPtr wifi, const WiFiServiceRefPtr& service) in EndpointRemovalHandler() argument
778 : wifi_(wifi), service_(service) {} in EndpointRemovalHandler()
793 const WiFiServiceRefPtr& service) { in MakeEndpointRemovalHandler() argument
794 return new EndpointRemovalHandler(wifi_, service); in MakeEndpointRemovalHandler()
853 MockWiFiServiceRefPtr service = in MakeNewEndpointAndService() local
856 .WillRepeatedly(Return(service)); in MakeNewEndpointAndService()
857 ON_CALL(*service, GetEndpointCount()).WillByDefault(Return(1)); in MakeNewEndpointAndService()
860 *service_ptr = service; in MakeNewEndpointAndService()
868 WiFiServiceRefPtr service, in AddEndpointToService() argument
873 string ssid(service->ssid().begin(), service->ssid().end()); in AddEndpointToService()
[all …]
/system/connectivity/shill/vpn/
Dvpn_provider.cc146 VPNServiceRefPtr service = FindService(type, name, host); in GetService() local
147 if (service == nullptr) { in GetService()
148 service = CreateService(type, name, storage_id, error); in GetService()
150 return service; in GetService()
165 VPNServiceRefPtr service = FindService(type, name, host); in FindSimilarService() local
166 if (!service) { in FindSimilarService()
170 return service; in FindSimilarService()
175 for (const auto& service : services_) { in OnDeviceInfoAvailable() local
176 if (service->driver()->ClaimInterface(link_name, interface_index)) { in OnDeviceInfoAvailable()
184 void VPNProvider::RemoveService(VPNServiceRefPtr service) { in RemoveService() argument
[all …]
Dvpn_provider_unittest.cc66 string GetServiceFriendlyName(const ServiceRefPtr& service) { in GetServiceFriendlyName() argument
67 return service->friendly_name(); in GetServiceFriendlyName()
70 void SetConnectState(const ServiceRefPtr& service, in SetConnectState() argument
72 service->state_ = state; in SetConnectState()
75 void AddService(const VPNServiceRefPtr& service) { in AddService() argument
76 provider_.services_.push_back(service); in AddService()
101 ServiceRefPtr service = provider_.GetService(args, &e); in TEST_F() local
103 EXPECT_FALSE(service); in TEST_F()
113 ServiceRefPtr service = provider_.GetService(args, &e); in TEST_F() local
115 EXPECT_FALSE(service); in TEST_F()
[all …]
/system/bt/bta/sys/
Dutl.c172 UINT16 service; in utl_set_device_class() local
177 BTM_COD_SERVICE_CLASS( service, dev ); in utl_set_device_class()
190 p_cod->service &= BTM_COD_SERVICE_CLASS_MASK; in utl_set_device_class()
191 service = service | p_cod->service; in utl_set_device_class()
195 p_cod->service &= BTM_COD_SERVICE_CLASS_MASK; in utl_set_device_class()
196 service = service & (~p_cod->service); in utl_set_device_class()
202 p_cod->service &= BTM_COD_SERVICE_CLASS_MASK; in utl_set_device_class()
203 service = service | p_cod->service; in utl_set_device_class()
209 service = p_cod->service & BTM_COD_SERVICE_CLASS_MASK; in utl_set_device_class()
217 FIELDS_TO_COD(dev_class, minor, major, service); in utl_set_device_class()
/system/connectivity/shill/dbus/
Dchromeos_dbus_control.cc190 Service* service) { in CreateServiceAdaptor() argument
193 ChromeosServiceDBusAdaptor>(service); in CreateServiceAdaptor()
260 const string& service) { in CreateDHCPProxy() argument
261 return new ChromeosDHCPCDProxy(proxy_bus_, service); in CreateDHCPProxy()
283 const string& service) { in CreateDBusPropertiesProxy() argument
284 return new ChromeosDBusPropertiesProxy(proxy_bus_, path, service); in CreateDBusPropertiesProxy()
290 const string& service, in CreateDBusObjectManagerProxy() argument
296 service, in CreateDBusObjectManagerProxy()
305 const string& service, in CreateModemManagerProxy() argument
312 service, in CreateModemManagerProxy()
[all …]
Dchromeos_dbus_control.h45 ServiceAdaptorInterface* CreateServiceAdaptor(Service* service) override;
85 DHCPProxyInterface* CreateDHCPProxy(const std::string& service) override;
92 const std::string& service) override;
96 const std::string& service,
103 const std::string& service,
108 const std::string& service) override;
112 const std::string& service) override;
116 const std::string& service) override;
120 const std::string& service) override;
124 const std::string& service) override;
[all …]
/system/connectivity/shill/wimax/
Dwimax_provider.cc146 bool WiMaxProvider::OnServiceUnloaded(const WiMaxServiceRefPtr& service) { in OnServiceUnloaded() argument
147 SLOG(this, 2) << __func__ << "(" << service->GetStorageIdentifier() << ")"; in OnServiceUnloaded()
148 if (service->is_default()) { in OnServiceUnloaded()
153 services_.erase(service->GetStorageIdentifier()); in OnServiceUnloaded()
221 WiMaxServiceRefPtr service = GetUniqueService(id, name); in GetService() local
222 CHECK(service); in GetService()
225 return service; in GetService()
238 WiMaxServiceRefPtr service = FindService(storage_id); in FindSimilarService() local
239 if (!service) { in FindSimilarService()
242 return service; in FindSimilarService()
[all …]
Dwimax_unittest.cc108 scoped_refptr<MockWiMaxService> service( in TEST_F() local
110 device_->pending_service_ = service; in TEST_F()
111 EXPECT_CALL(*service, SetState(Service::kStateIdle)); in TEST_F()
160 scoped_refptr<MockWiMaxService> service( in TEST_F() local
162 device_->pending_service_ = service; in TEST_F()
163 EXPECT_CALL(*service, SetState(_)).Times(0); in TEST_F()
165 EXPECT_CALL(*service, SetState(Service::kStateFailure)); in TEST_F()
171 scoped_refptr<MockWiMaxService> service( in TEST_F() local
175 device_->pending_service_ = service; in TEST_F()
176 EXPECT_CALL(*service, SetState(_)).Times(0); in TEST_F()
[all …]
/system/core/adb/
Dadb_client.cpp73 std::string service; in switch_socket_transport() local
75 service += "host:transport:"; in switch_socket_transport()
76 service += __adb_serial; in switch_socket_transport()
93 service += "host:"; in switch_socket_transport()
94 service += transport_type; in switch_socket_transport()
97 if (!SendProtocolString(fd, service)) { in switch_socket_transport()
134 int _adb_connect(const std::string& service, std::string* error) { in _adb_connect() argument
135 D("_adb_connect: %s", service.c_str()); in _adb_connect()
136 if (service.empty() || service.size() > MAX_PAYLOAD_V1) { in _adb_connect()
138 service.size()); in _adb_connect()
[all …]
/system/connectivity/shill/cellular/
Dactive_passive_out_of_credits_detector.cc51 CellularService* service) in ActivePassiveOutOfCreditsDetector() argument
52 : OutOfCreditsDetector(dispatcher, manager, metrics, service), in ActivePassiveOutOfCreditsDetector()
55 new TrafficMonitor(service->cellular(), dispatcher)), in ActivePassiveOutOfCreditsDetector()
56 service_rpc_identifier_(service->GetRpcIdentifier()) { in ActivePassiveOutOfCreditsDetector()
116 SLOG(this, 2) << "Service " << service()->friendly_name() in StartTrafficMonitor()
124 SLOG(this, 2) << "Service " << service()->friendly_name() in StopTrafficMonitor()
130 SLOG(this, 2) << "Service " << service()->friendly_name() in OnNoNetworkRouting()
137 DCHECK(service()->connection()); in SetupConnectionHealthChecker()
143 service()->connection(), in SetupConnectionHealthChecker()
150 health_checker_->SetConnection(service()->connection()); in SetupConnectionHealthChecker()
[all …]
/system/connectivity/shill/ethernet/
Dethernet_eap_provider_unittest.cc60 EXPECT_EQ(ServiceRefPtr(), provider_.service()); in TEST_F()
65 ServiceRefPtr service; in TEST_F() local
66 EXPECT_CALL(manager_, RegisterService(_)).WillOnce(SaveArg<0>(&service)); in TEST_F()
68 EXPECT_NE(ServiceRefPtr(), provider_.service()); in TEST_F()
69 EXPECT_EQ(service, provider_.service()); in TEST_F()
71 EXPECT_CALL(manager_, DeregisterService(service)); in TEST_F()
73 EXPECT_EQ(service, provider_.service()); in TEST_F()
76 EXPECT_CALL(manager_, RegisterService(service)); in TEST_F()
135 ServiceRefPtr service; in TEST_F() local
136 EXPECT_CALL(manager_, RegisterService(_)).WillOnce(SaveArg<0>(&service)); in TEST_F()
[all …]
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
DTestServiceClient.java104 IBinder service = new ServiceManager().getService( in getService() local
106 if (service == null) { in getService()
109 ITestService ret = ITestService.Stub.asInterface(service); in getService()
116 private void checkPrimitiveRepeat(ITestService service) in checkPrimitiveRepeat() argument
122 boolean response = service.RepeatBoolean(query); in checkPrimitiveRepeat()
130 char response = service.RepeatChar(query); in checkPrimitiveRepeat()
138 byte response = service.RepeatByte(query); in checkPrimitiveRepeat()
146 int response = service.RepeatInt(query); in checkPrimitiveRepeat()
162 int response = service.RepeatInt(query[i]); in checkPrimitiveRepeat()
171 long response = service.RepeatLong(query); in checkPrimitiveRepeat()
[all …]
/system/connectivity/shill/doc/
Dmanager-api.txt21 Possible Errors: [service].Error.InvalidArguments
22 [service].Error.InvalidProperty
49 Possible Errors: [service].Error.InvalidArguments
50 [service].Error.AlreadyExists
63 Possible Errors: [service].Error.InvalidArguments
64 [service].Error.AlreadyExists
77 Possible Errors: [service].Error.InvalidArguments
78 [service].Error.AlreadyExists
98 Possible Errors: [service].Error.InvalidArguments
99 [service].Error.NotFound
[all …]

12345678910>>...17