/test/xts/acts/validator/acts_validator/src/main/ets/pages/Wifi/model/ |
D | BasicDataSource.ets | 45 registerDataChangeListener(listener: DataChangeListener): void { 46 if (this.listeners.indexOf(listener) < 0) { 47 Logger.info('add listener') 48 this.listeners.push(listener) 52 unregisterDataChangeListener(listener: DataChangeListener): void { 53 const POS = this.listeners.indexOf(listener) 55 Logger.info('remove listener') 61 this.listeners.forEach(listener => { 62 listener.onDataReloaded() 67 this.listeners.forEach(listener => { [all …]
|
/test/xts/acts/arkui/ace_ets_component_four/entry/src/main/ets/MainAbility/pages/ |
D | lazyForEach.ets | 17 // Basic implementation of IDataSource to handle data listener 28 registerDataChangeListener(listener: DataChangeListener): void { 29 if (this.listeners.indexOf(listener) < 0) { 30 console.info('add listener') 31 this.listeners.push(listener) 34 unregisterDataChangeListener(listener: DataChangeListener): void { 35 const pos = this.listeners.indexOf(listener); 37 console.info('remove listener') 43 this.listeners.forEach(listener => { 44 listener.onDataReloaded() [all …]
|
/test/xts/tools/sample/AppSampleD/entry/src/main/ets/appsampled/data/ |
D | DataSource.ets | 31 registerDataChangeListener(listener: DataChangeListener): void { 32 if (this.listeners.indexOf(listener) < 0) { 33 Logger.info('add listener'); 34 this.listeners.push(listener); 38 unregisterDataChangeListener(listener: DataChangeListener): void { 39 const pos = this.listeners.indexOf(listener); 41 Logger.info('remove listener'); 47 this.listeners.forEach((listener) => { 48 listener.onDataReloaded(); 53 this.listeners.forEach((listener) => { [all …]
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/ |
D | aboutToRecycleiamge.ets | 27 registerDataChangeListener(listener: DataChangeListener): void { 28 if (this.listeners.indexOf(listener) < 0) { 29 console.info('add listener'); 30 this.listeners.push(listener); 34 unregisterDataChangeListener(listener: DataChangeListener): void { 35 const pos = this.listeners.indexOf(listener); 37 console.info('remove listener'); 43 this.listeners.forEach(listener =>{ 44 listener.onDataReloaded(); 49 this.listeners.forEach(listener =>{ [all …]
|
/test/xts/hats/hdf/hdf_lite/manager/common/ |
D | hdf_ioservice_test.cpp | 37 struct HdfDevEventlistener listener; member 48 …struct HdfDevEventlistener *listener, struct HdfIoService *service, uint32_t id, struct HdfSBuf *d… 66 listener0.listener.onReceive = OnDevEventReceived; in SetUpTestCase() 67 listener0.listener.priv = const_cast<void *>(static_cast<const void *>("listener0")); in SetUpTestCase() 69 listener1.listener.onReceive = OnDevEventReceived; in SetUpTestCase() 70 listener1.listener.priv = const_cast<void *>(static_cast<const void *>("listener1")); in SetUpTestCase() 89 …struct HdfDevEventlistener *listener, struct HdfIoService *service, uint32_t id, struct HdfSBuf *d… in OnDevEventReceived() argument 93 …E("%s: received event[%d] from %s at %" PRIu64 ".%" PRIu64 "", static_cast<char *>(listener->priv), in OnDevEventReceived() 101 struct Eventlistener *l = CONTAINER_OF(listener, struct Eventlistener, listener); in OnDevEventReceived() 187 ret = HdfIoServiceGroupRegisterListener(group, &listener0.listener); [all …]
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/getItemRect/waterFlow/ |
D | WaterFlowDataSource.ets | 35 this.listeners.forEach(listener => { 36 listener.onDataReloaded() 42 this.listeners.forEach(listener => { 43 listener.onDataAdded(index) 49 this.listeners.forEach(listener => { 50 listener.onDataChanged(index) 56 this.listeners.forEach(listener => { 57 listener.onDataDeleted(index) 63 this.listeners.forEach(listener => { 64 listener.onDataMoved(from, to) [all …]
|
/test/xts/acts/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/ |
D | WaterFlowDataSource.ets | 33 this.listeners.forEach(listener => { 34 listener.onDataReloaded() 40 this.listeners.forEach(listener => { 41 listener.onDataAdded(index) 47 this.listeners.forEach(listener => { 48 listener.onDataChanged(index) 54 this.listeners.forEach(listener => { 55 listener.onDataDeleted(index) 61 this.listeners.forEach(listener => { 62 listener.onDataMoved(from, to) [all …]
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/comSizeAbility/ |
D | WaterFlowDataSource.ets | 27 this.listeners.forEach(listener => { 28 listener.onDataReloaded() 32 this.listeners.forEach(listener => { 33 listener.onDataAdded(index) 37 this.listeners.forEach(listener => { 38 listener.onDataChanged(index) 42 this.listeners.forEach(listener => { 43 listener.onDataDeleted(index) 47 this.listeners.forEach(listener => { 48 listener.onDataMoved(from, to) [all …]
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/ScrollToIndex/ |
D | WaterFlowDataSource.ets | 34 this.listeners.forEach(listener => { 35 listener.onDataReloaded() 41 this.listeners.forEach(listener => { 42 listener.onDataAdded(index) 48 this.listeners.forEach(listener => { 49 listener.onDataChanged(index) 55 this.listeners.forEach(listener => { 56 listener.onDataDeleted(index) 62 this.listeners.forEach(listener => { 63 listener.onDataMoved(from, to) [all …]
|
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_waterflow_test/entry/src/main/ets/MainAbility/pages/WaterFlow/WaterFlow_attribute/ |
D | WaterFlowDataSource.ets | 33 this.listeners.forEach(listener => { 34 listener.onDataReloaded() 40 this.listeners.forEach(listener => { 41 listener.onDataAdded(index) 47 this.listeners.forEach(listener => { 48 listener.onDataChanged(index) 54 this.listeners.forEach(listener => { 55 listener.onDataDeleted(index) 61 this.listeners.forEach(listener => { 62 listener.onDataMoved(from, to) [all …]
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/parser/ |
D | parser_lite.py | 100 for listener in self.get_listeners(): 102 listener.__ended__(LifeCycle.TestSuite, suite, is_clear=True) 108 for listener in self.get_listeners(): 110 listener.__ended__(LifeCycle.TestSuites, test_result=suites, 213 for listener in self.get_listeners(): 215 listener.__started__(LifeCycle.TestCase, test_result) 257 for listener in self.get_listeners(): 259 listener.__ended__(LifeCycle.TestCase, result) 274 for listener in self.get_listeners(): 276 listener.__started__(LifeCycle.TestSuites, suite_report) [all …]
|
D | parser.py | 106 for listener in self.get_listeners(): 108 listener.__ended__(LifeCycle.TestSuites, test_result=suites, 184 for listener in self.get_listeners(): 186 listener.__failed__(LifeCycle.TestCase, test_result) 187 listener.__ended__(LifeCycle.TestCase, test_result) 190 for listener in self.get_listeners(): 192 listener.__failed__(LifeCycle.TestSuite, suite_result) 193 listener.__ended__(LifeCycle.TestSuite, suite_result) 202 for listener in self.get_listeners(): 204 listener.__started__(LifeCycle.TestCase, test_result) [all …]
|
/test/testfwk/xdevice/src/xdevice/_core/environment/ |
D | device_monitor.py | 56 listener = DeviceStateListener(state) 63 self.add_device_state_listener(listener) 64 with listener.condition: 66 listener.condition.wait(wait_time / 1000) 68 self.remove_device_state_listener(listener) 110 def remove_device_state_listener(self, listener): argument 111 self.state_listener.remove(listener) 113 def add_device_state_listener(self, listener): argument 114 self.state_listener.append(listener) 120 for listener in self.state_listener: [all …]
|
/test/xts/dcts/distributedhardware/distributedcameratest/ |
D | stream_customer.cpp | 31 sptr<IBufferConsumerListener> listener = nullptr; in CreateProducer() local 33 listener = new TestBuffersConsumerListener(consumer_, callback); in CreateProducer() 35 listener = new TestBuffersConsumerListener(consumer_, callback); in CreateProducer() 37 consumer_->RegisterConsumerListener(listener); in CreateProducer()
|
/test/testfwk/arkxtest/uitest/test/ |
D | dummy_controller.h | 32 for (auto &listener : listeners_) { in OnEvent() 33 listener->OnEvent(eventInfo, uiEventSourceInfo); in OnEvent() 67 void RegisterUiEventListener(std::shared_ptr<UiEventListener> listener) const override in RegisterUiEventListener() argument 69 DummyEventMonitor::GetInstance().RegisterUiEventListener(listener); in RegisterUiEventListener()
|
/test/xts/hats/hdf/manager/managerHdiTest/ |
D | service_manager_hdi_c_test.cpp | 382 static void TestOnServiceStatusReceived(struct ServiceStatusListener *listener, struct ServiceStatu… in TestOnServiceStatusReceived() argument 384 struct ServiceStatusData *ssd = (struct ServiceStatusData *)listener->priv; in TestOnServiceStatusReceived() 418 struct ServiceStatusListener *listener = HdiServiceStatusListenerNewInstance(); variable 419 listener->callback = TestOnServiceStatusReceived; 420 listener->priv = (void *)&ssd; 422 int status = servmgr->RegisterServiceStatusListener(servmgr, listener, DEVICE_CLASS_DEFAULT); 458 status = servmgr->UnregisterServiceStatusListener(servmgr, listener); 461 HdiServiceStatusListenerFree(listener); 491 struct ServiceStatusListener *listener = HdiServiceStatusListenerNewInstance(); variable 492 listener->callback = TestOnServiceStatusReceived; [all …]
|
/test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/ |
D | lazyForEach.ets | 28 registerDataChangeListener(listener: DataChangeListener): void { 29 if (this.listeners.indexOf(listener) < 0) { 30 console.info('add listener') 31 this.listeners.push(listener) 34 unregisterDataChangeListener(listener: DataChangeListener): void { 35 const pos = this.listeners.indexOf(listener); 37 console.info('remove listener') 43 this.listeners.forEach(listener => { 44 listener.onDataReloaded() 48 this.listeners.forEach(listener => { [all …]
|
D | mediaQuery.ets | 26 listener = mediaquery.matchMediaSync('(orientation: landscape)') 30 this.listener.on('change', (mediaQueryResult) => { 63 this.listener.off('change', (mediaQueryResult) => { 98 console.log('mediaQuery-MatchMediaSync: ' + JSON.stringify(this.listener)) 99 var result=(this.listener!=null)
|
/test/xts/acts/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/pages/ |
D | stageMediaquery.ets | 21 listener = globalThis.uiContent.getMediaQuery().matchMediaSync('(orientation: landscape)') 23 this.listener.on('change', (mediaQueryResult) => { 51 this.listener.off('change', (mediaQueryResult) => { 85 console.log('mediaQuery-MatchMediaSync: ' + JSON.stringify(this.listener)) 86 var result=(this.listener!=null)
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
D | drivers.py | 330 for listener in listeners: 331 listener.device_sn = self.config.device.device_sn 348 def _do_test_retry(self, listener, testargs): argument 355 self.runner.run(listener) 357 def _do_test_run(self, listener): argument 362 self.runner.run(listener) 364 self._run_with_rerun(listener, test_to_run) 374 def _run_tests(self, listener): argument 376 listener_copy = listener.copy() 382 def _run_with_rerun(self, listener, expected_tests): argument [all …]
|
/test/xts/hats/hdf/camera/cameraHdi/v4l2/src/ |
D | stream_customer.cpp | 57 OHOS::sptr<OHOS::IBufferConsumerListener> listener = new TestBuffersConsumerListener(); in CreateProducer() local 58 CHECK_IF_PTR_NULL_RETURN_VALUE(listener, nullptr); in CreateProducer() 59 consumer_->RegisterConsumerListener(listener); in CreateProducer()
|
/test/xts/acts/arkui/ace_ets_test/entry/src/main/ets/MainAbility/pages/ |
D | Swiper.ets | 18 private listener: DataChangeListener 32 registerDataChangeListener(listener: DataChangeListener): void { 33 this.listener = listener
|
/test/xts/acts/graphic/graphicnapitest/ |
D | NativeImageTest.cpp | 548 OH_OnFrameAvailableListener listener; variable 549 listener.context = this; 550 listener.onFrameAvailable = NativeImageTest::OnFrameAvailable; 551 int32_t ret = OH_NativeImage_SetOnFrameAvailableListener(image, listener); 586 OH_OnFrameAvailableListener listener; variable 587 listener.context = this; 588 listener.onFrameAvailable = NativeImageTest::OnFrameAvailable; 589 int32_t ret = OH_NativeImage_SetOnFrameAvailableListener(nullptr, listener); 610 OH_OnFrameAvailableListener listener; variable 611 listener.context = this; [all …]
|
/test/xts/acts/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/ |
D | swiper.ets | 91 private listener: DataChangeListener 105 registerDataChangeListener(listener: DataChangeListener): void { 106 this.listener = listener
|
/test/testfwk/xdevice/src/xdevice/ |
D | __init__.py | 70 from _core.executor.listener import CaseResult 71 from _core.executor.listener import SuiteResult 72 from _core.executor.listener import SuitesResult 73 from _core.executor.listener import StateRecorder 74 from _core.executor.listener import TestDescription 75 from _core.executor.listener import CollectingTestListener
|