Home
last modified time | relevance | path

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

12345678910>>...45

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractServiceTest.java52 NoOpService service = new NoOpService(); in testNoOpServiceStartStop() local
53 RecordingListener listener = RecordingListener.record(service); in testNoOpServiceStartStop()
55 assertEquals(State.NEW, service.state()); in testNoOpServiceStartStop()
56 assertFalse(service.isRunning()); in testNoOpServiceStartStop()
57 assertFalse(service.running); in testNoOpServiceStartStop()
59 service.startAsync(); in testNoOpServiceStartStop()
60 assertEquals(State.RUNNING, service.state()); in testNoOpServiceStartStop()
61 assertTrue(service.isRunning()); in testNoOpServiceStartStop()
62 assertTrue(service.running); in testNoOpServiceStartStop()
64 service.stopAsync(); in testNoOpServiceStartStop()
[all …]
DAbstractIdleServiceTest.java50 AbstractIdleService service = new DefaultService(); in testServiceStartStop() local
51 service.startAsync().awaitRunning(); in testServiceStartStop()
52 assertEquals(Service.State.RUNNING, service.state()); in testServiceStartStop()
53 service.stopAsync().awaitTerminated(); in testServiceStartStop()
54 assertEquals(Service.State.TERMINATED, service.state()); in testServiceStartStop()
59 AbstractIdleService service = new DefaultService() { in testStart_failed() local
65 service.startAsync().awaitRunning(); in testStart_failed()
70 assertEquals(Service.State.FAILED, service.state()); in testStart_failed()
75 AbstractIdleService service = new DefaultService() { in testStop_failed() local
80 service.startAsync().awaitRunning(); in testStop_failed()
[all …]
DAbstractScheduledServiceTest.java60 NullService service = new NullService(); in testServiceStartStop() local
61 service.startAsync().awaitRunning(); in testServiceStartStop()
63 service.stopAsync().awaitTerminated(); in testServiceStartStop()
74 TestService service = new TestService(); in testFailOnExceptionFromRun() local
75 service.runException = new Exception(); in testFailOnExceptionFromRun()
76 service.startAsync().awaitRunning(); in testFailOnExceptionFromRun()
77 service.runFirstBarrier.await(); in testFailOnExceptionFromRun()
78 service.runSecondBarrier.await(); in testFailOnExceptionFromRun()
85 assertEquals(service.runException, e.getCause().getCause()); in testFailOnExceptionFromRun()
87 assertEquals(service.state(), Service.State.FAILED); in testFailOnExceptionFromRun()
[all …]
DAbstractExecutionThreadServiceTest.java64 WaitOnRunService service = new WaitOnRunService(); in testServiceStartStop() local
65 assertFalse(service.startUpCalled); in testServiceStartStop()
67 service.startAsync().awaitRunning(); in testServiceStartStop()
68 assertTrue(service.startUpCalled); in testServiceStartStop()
69 assertEquals(Service.State.RUNNING, service.state()); in testServiceStartStop()
73 service.stopAsync().awaitTerminated(); in testServiceStartStop()
74 assertTrue(service.shutDownCalled); in testServiceStartStop()
75 assertEquals(Service.State.TERMINATED, service.state()); in testServiceStartStop()
81 WaitOnRunService service = new WaitOnRunService(); in testServiceStopIdempotence() local
83 service.startAsync().awaitRunning(); in testServiceStopIdempotence()
[all …]
DMoreExecutorsTest.java270 ListeningExecutorService service = in testListeningDecorator() local
272 assertSame(service, listeningDecorator(service)); in testListeningDecorator()
277 results = service.invokeAll(callables); in testListeningDecorator()
280 results = service.invokeAll(callables, 1, SECONDS); in testListeningDecorator()
291 ListeningExecutorService service = listeningDecorator(delegate); in testListeningDecorator_noWrapExecuteTask() local
296 service.execute(task); in testListeningDecorator_noWrapExecuteTask()
308 ListeningScheduledExecutorService service = listeningDecorator(delegate); in testListeningDecorator_scheduleSuccess() local
310 service.schedule(Callables.returning(null), 1, TimeUnit.MILLISECONDS); in testListeningDecorator_scheduleSuccess()
325 ListeningScheduledExecutorService service = listeningDecorator(delegate); in testListeningDecorator_scheduleFailure() local
328 service.schedule(new ThrowingRunnable(0, ex), 1, TimeUnit.MILLISECONDS); in testListeningDecorator_scheduleFailure()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/
Dservice_registry.ipp29 // objects may try to access other service objects.
30 asio::io_service::service* service = first_service_;
31 while (service)
33 service->shutdown_service();
34 service = service->next_;
40 asio::io_service::service* next_service = first_service_->next_;
49 // to hold the lock while calling into each service, as it may try to call
51 std::vector<asio::io_service::service*> services;
54 asio::io_service::service* service = first_service_;
55 while (service)
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DICUServiceTest.java72 public SortedMap getDisplayNames(ICUService service) { in getDisplayNames() argument
75 return service.getDisplayNames(locale, col, null); in getDisplayNames()
83 public SortedMap getDisplayNames(ICUService service, ULocale locale) { in getDisplayNames() argument
85 return service.getDisplayNames(locale, col, null); in getDisplayNames()
92 public SortedMap getDisplayNames(ICUService service, ULocale locale, String matchID) { in getDisplayNames() argument
94 return service.getDisplayNames(locale, col, matchID); in getDisplayNames()
111 ICUService service = new TestService(); in TestAPI() local
113 logln("service name:" + service.getName()); in TestAPI()
119 service.registerObject(singleton0, "en_US"); in TestAPI()
120 Object result = service.get("en_US_FOO"); in TestAPI()
[all …]
DICUServiceThreadTest.java70 public static SortedMap getDisplayNames(ICUService service, ULocale locale) { in getDisplayNames() argument
79 return service.getDisplayNames(locale, col, null); in getDisplayNames()
116 protected ICUService service; field in ICUServiceThreadTest.TestThread
120 public TestThread(String name, ICUService service, long delay, TestLog log) { in TestThread() argument
122 this.service = service; in TestThread()
192 RegisterFactoryThread(String name, ICUService service, long delay, TestLog log) { in RegisterFactoryThread() argument
193 super("REG " + name, service, delay, log); in RegisterFactoryThread()
198 service.registerFactory(f); in iterate()
208 UnregisterFactoryThread(String name, ICUService service, long delay, TestLog log) { in UnregisterFactoryThread() argument
209 super("UNREG " + name, service, delay, log); in UnregisterFactoryThread()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DICUServiceTest.java71 public SortedMap getDisplayNames(ICUService service) { in getDisplayNames() argument
74 return service.getDisplayNames(locale, col, null); in getDisplayNames()
82 public SortedMap getDisplayNames(ICUService service, ULocale locale) { in getDisplayNames() argument
84 return service.getDisplayNames(locale, col, null); in getDisplayNames()
91 public SortedMap getDisplayNames(ICUService service, ULocale locale, String matchID) { in getDisplayNames() argument
93 return service.getDisplayNames(locale, col, matchID); in getDisplayNames()
110 ICUService service = new TestService(); in TestAPI() local
112 logln("service name:" + service.getName()); in TestAPI()
118 service.registerObject(singleton0, "en_US"); in TestAPI()
119 Object result = service.get("en_US_FOO"); in TestAPI()
[all …]
DICUServiceThreadTest.java69 public static SortedMap getDisplayNames(ICUService service, ULocale locale) { in getDisplayNames() argument
78 return service.getDisplayNames(locale, col, null); in getDisplayNames()
115 protected ICUService service; field in ICUServiceThreadTest.TestThread
119 public TestThread(String name, ICUService service, long delay, TestLog log) { in TestThread() argument
121 this.service = service; in TestThread()
191 RegisterFactoryThread(String name, ICUService service, long delay, TestLog log) { in RegisterFactoryThread() argument
192 super("REG " + name, service, delay, log); in RegisterFactoryThread()
197 service.registerFactory(f); in iterate()
207 UnregisterFactoryThread(String name, ICUService service, long delay, TestLog log) { in UnregisterFactoryThread() argument
208 super("UNREG " + name, service, delay, log); in UnregisterFactoryThread()
[all …]
/external/pdfium/third_party/freetype/src/base/
Dfttype1.c33 FT_Service_PsInfo service; in FT_Get_PS_Font_Info() local
42 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); in FT_Get_PS_Font_Info()
44 if ( service && service->ps_get_font_info ) in FT_Get_PS_Font_Info()
45 error = service->ps_get_font_info( face, afont_info ); in FT_Get_PS_Font_Info()
59 FT_Service_PsInfo service; in FT_Has_PS_Glyph_Names() local
64 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); in FT_Has_PS_Glyph_Names()
66 if ( service && service->ps_has_glyph_names ) in FT_Has_PS_Glyph_Names()
67 result = service->ps_has_glyph_names( face ); in FT_Has_PS_Glyph_Names()
81 FT_Service_PsInfo service; in FT_Get_PS_Font_Private() local
90 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); in FT_Get_PS_Font_Private()
[all …]
Dftmm.c72 FT_Service_MultiMasters service; in FT_Get_Multi_Master() local
80 error = ft_face_get_mm_service( face, &service ); in FT_Get_Multi_Master()
84 if ( service->get_mm ) in FT_Get_Multi_Master()
85 error = service->get_mm( face, amaster ); in FT_Get_Multi_Master()
99 FT_Service_MultiMasters service; in FT_Get_MM_Var() local
107 error = ft_face_get_mm_service( face, &service ); in FT_Get_MM_Var()
111 if ( service->get_mm_var ) in FT_Get_MM_Var()
112 error = service->get_mm_var( face, amaster ); in FT_Get_MM_Var()
127 FT_Service_MultiMasters service; in FT_Set_MM_Design_Coordinates() local
135 error = ft_face_get_mm_service( face, &service ); in FT_Set_MM_Design_Coordinates()
[all …]
Dftcid.c43 FT_Service_CID service; in FT_Get_CID_Registry_Ordering_Supplement() local
46 FT_FACE_FIND_SERVICE( face, service, CID ); in FT_Get_CID_Registry_Ordering_Supplement()
48 if ( service && service->get_ros ) in FT_Get_CID_Registry_Ordering_Supplement()
49 error = service->get_ros( face, &r, &o, &s ); in FT_Get_CID_Registry_Ordering_Supplement()
75 FT_Service_CID service; in FT_Get_CID_Is_Internally_CID_Keyed() local
78 FT_FACE_FIND_SERVICE( face, service, CID ); in FT_Get_CID_Is_Internally_CID_Keyed()
80 if ( service && service->get_is_cid ) in FT_Get_CID_Is_Internally_CID_Keyed()
81 error = service->get_is_cid( face, &ic); in FT_Get_CID_Is_Internally_CID_Keyed()
102 FT_Service_CID service; in FT_Get_CID_From_Glyph_Index() local
105 FT_FACE_FIND_SERVICE( face, service, CID ); in FT_Get_CID_From_Glyph_Index()
[all …]
Dftpfr.c29 FT_Service_PfrMetrics service = NULL; in ft_pfr_check() local
33 FT_FACE_LOOKUP_SERVICE( face, service, PFR_METRICS ); in ft_pfr_check()
35 return service; in ft_pfr_check()
49 FT_Service_PfrMetrics service; in FT_Get_PFR_Metrics() local
55 service = ft_pfr_check( face ); in FT_Get_PFR_Metrics()
56 if ( service ) in FT_Get_PFR_Metrics()
58 error = service->get_metrics( face, in FT_Get_PFR_Metrics()
105 FT_Service_PfrMetrics service; in FT_Get_PFR_Kerning() local
114 service = ft_pfr_check( face ); in FT_Get_PFR_Kerning()
115 if ( service ) in FT_Get_PFR_Kerning()
[all …]
/external/freetype/src/base/
Dfttype1.c33 FT_Service_PsInfo service; in FT_Get_PS_Font_Info() local
42 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); in FT_Get_PS_Font_Info()
44 if ( service && service->ps_get_font_info ) in FT_Get_PS_Font_Info()
45 error = service->ps_get_font_info( face, afont_info ); in FT_Get_PS_Font_Info()
59 FT_Service_PsInfo service; in FT_Has_PS_Glyph_Names() local
64 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); in FT_Has_PS_Glyph_Names()
66 if ( service && service->ps_has_glyph_names ) in FT_Has_PS_Glyph_Names()
67 result = service->ps_has_glyph_names( face ); in FT_Has_PS_Glyph_Names()
81 FT_Service_PsInfo service; in FT_Get_PS_Font_Private() local
90 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); in FT_Get_PS_Font_Private()
[all …]
Dftcid.c43 FT_Service_CID service; in FT_Get_CID_Registry_Ordering_Supplement() local
46 FT_FACE_FIND_SERVICE( face, service, CID ); in FT_Get_CID_Registry_Ordering_Supplement()
48 if ( service && service->get_ros ) in FT_Get_CID_Registry_Ordering_Supplement()
49 error = service->get_ros( face, &r, &o, &s ); in FT_Get_CID_Registry_Ordering_Supplement()
75 FT_Service_CID service; in FT_Get_CID_Is_Internally_CID_Keyed() local
78 FT_FACE_FIND_SERVICE( face, service, CID ); in FT_Get_CID_Is_Internally_CID_Keyed()
80 if ( service && service->get_is_cid ) in FT_Get_CID_Is_Internally_CID_Keyed()
81 error = service->get_is_cid( face, &ic); in FT_Get_CID_Is_Internally_CID_Keyed()
102 FT_Service_CID service; in FT_Get_CID_From_Glyph_Index() local
105 FT_FACE_FIND_SERVICE( face, service, CID ); in FT_Get_CID_From_Glyph_Index()
[all …]
Dftpfr.c29 FT_Service_PfrMetrics service = NULL; in ft_pfr_check() local
33 FT_FACE_LOOKUP_SERVICE( face, service, PFR_METRICS ); in ft_pfr_check()
35 return service; in ft_pfr_check()
49 FT_Service_PfrMetrics service; in FT_Get_PFR_Metrics() local
55 service = ft_pfr_check( face ); in FT_Get_PFR_Metrics()
56 if ( service ) in FT_Get_PFR_Metrics()
58 error = service->get_metrics( face, in FT_Get_PFR_Metrics()
105 FT_Service_PfrMetrics service; in FT_Get_PFR_Kerning() local
114 service = ft_pfr_check( face ); in FT_Get_PFR_Kerning()
115 if ( service ) in FT_Get_PFR_Kerning()
[all …]
Dftmm.c101 FT_Service_MultiMasters service; in FT_Get_Multi_Master() local
109 error = ft_face_get_mm_service( face, &service ); in FT_Get_Multi_Master()
113 if ( service->get_mm ) in FT_Get_Multi_Master()
114 error = service->get_mm( face, amaster ); in FT_Get_Multi_Master()
128 FT_Service_MultiMasters service; in FT_Get_MM_Var() local
136 error = ft_face_get_mm_service( face, &service ); in FT_Get_MM_Var()
140 if ( service->get_mm_var ) in FT_Get_MM_Var()
141 error = service->get_mm_var( face, amaster ); in FT_Get_MM_Var()
156 FT_Service_MultiMasters service; in FT_Set_MM_Design_Coordinates() local
164 error = ft_face_get_mm_service( face, &service ); in FT_Set_MM_Design_Coordinates()
[all …]
/external/autotest/client/site_tests/network_DhcpStaticIP/
Dnetwork_DhcpStaticIP.py31 def configure_static_ip(self, service, params): argument
49 service.SetProperty('StaticIP.Address', static_ip_address)
50 service.SetProperty('StaticIP.Prefixlen', prefix_len)
54 service.SetProperty('StaticIP.NameServers',
58 service.Disconnect()
59 service.Connect()
62 def clear_static_ip(self, service, params): argument
71 service.ClearProperty('StaticIP.Address')
72 service.ClearProperty('StaticIP.Prefixlen')
74 service.ClearProperty('StaticIP.NameServers')
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DServiceManager.java171 public void failure(Service service) {} in failure() argument
206 for (Service service : copy) { in ServiceManager()
207 service.addListener(new ServiceListener(service, stateReference), directExecutor()); in ServiceManager()
210 checkArgument(service.state() == NEW, "Can only manage NEW services, %s", service); in ServiceManager() local
273 for (Service service : services) { in startAsync()
274 State state = service.state(); in startAsync()
275 checkState(state == NEW, "Service %s is %s, cannot start it.", service, state); in startAsync()
277 for (Service service : services) { in startAsync()
279 state.tryStartTiming(service); in startAsync()
280 service.startAsync(); in startAsync()
[all …]
/external/mdnsresponder/mDNSWindows/DLLX/
DDNSSD.cpp70 …, BSTR serviceName, BSTR regType, BSTR domain, IResolveListener* listener, IDNSSDService** service) in Resolve() argument
82 *service = NULL; in Resolve()
115 *service = object; in Resolve()
128 …umerateDomains(DNSSDFlags flags, ULONG ifIndex, IDomainListener *listener, IDNSSDService **service) in EnumerateDomains() argument
136 *service = NULL; in EnumerateDomains()
161 *service = object; in EnumerateDomains()
174 …, BSTR host, USHORT port, ITXTRecord *record, IRegisterListener *listener, IDNSSDService **service) in Register() argument
189 *service = NULL; in Register()
234 *service = object; in Register()
247 … DNSSDRRType rrtype, DNSSDRRClass rrclass, IQueryRecordListener *listener, IDNSSDService **service) in QueryRecord() argument
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dservice_registry.hpp67 asio::io_service::service::key& key,
73 static void init_key(asio::io_service::service::key& key,
79 const asio::io_service::service::key& key1,
80 const asio::io_service::service::key& key2);
83 typedef asio::io_service::service*
88 static asio::io_service::service* create(
93 asio::io_service::service* service);
100 asio::io_service::service* ptr_;
107 ASIO_DECL asio::io_service::service* do_use_service(
108 const asio::io_service::service::key& key,
[all …]
/external/icu/icu4c/source/test/intltest/
Dicusvtst.cpp330 TestIntegerService service; in testAPI_One() local
337 service.registerInstance(singleton0, "en_US", status); in testAPI_One()
340 Integer* result = (Integer*)service.get("en_US_FOO", status); in testAPI_One()
349 service.registerInstance(singleton1, "en_US_FOO", status); in testAPI_One()
352 Integer* result = (Integer*)service.get("en_US_FOO", status); in testAPI_One()
360 Integer* result = (Integer*)service.get("en_US_BAR", status); in testAPI_One()
367 confirmIdentical("4) factory size", service.countFactories(), 2); in testAPI_One()
372 service.registerInstance(singleton2, "en", status); in testAPI_One()
374 confirmIdentical("5) factory size", service.countFactories(), 3); in testAPI_One()
382 Integer* result = (Integer*)service.get("en_US_BAR", status); in testAPI_One()
[all …]
/external/ltp/testcases/lib/
Ddaemonlib.sh50 systemctl start $1.service > /dev/null 2>&1
51 elif command -v service >/dev/null 2>&1; then
52 service $1 start > /dev/null 2>&1
61 systemctl stop $1.service > /dev/null 2>&1
62 elif command -v service >/dev/null 2>&1; then
63 service $1 stop > /dev/null 2>&1
72 systemctl is-active $1.service > /dev/null 2>&1
73 elif command -v service >/dev/null 2>&1; then
74 service $1 status > /dev/null 2>&1
83 systemctl restart $1.service > /dev/null 2>&1
[all …]
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DStreamServiceTest.java73 private StreamService service; field in StreamServiceTest
86 if (service != null && service.state() != State.FAILED && service.state() != State.TERMINATED) { in stopService()
87 service.stopAsync().awaitTerminated(); in stopService()
93 service.startAsync().awaitRunning(); in testReadOutput()
102 assertEquals(State.RUNNING, service.state()); in testReadOutput()
111 service.startAsync().awaitRunning(); in failingProcess()
114 assertEquals(State.FAILED, service.state()); in failingProcess()
120 service.startAsync().awaitRunning(); in processDoesntExit()
123 assertEquals(State.FAILED, service.state()); in processDoesntExit()
131 service.startAsync().awaitRunning(); in testSocketInputOutput()
[all …]

12345678910>>...45