Home
last modified time | relevance | path

Searched refs:registry (Results 1 – 15 of 15) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DOffBodySensorTestActivity.java161 SensorEventRegistry registry = waitForEvent(); in awaitAndVerifyEvent() local
163 if ((registry == null) || (registry.event == null)) { in awaitAndVerifyEvent()
169 SensorEvent event = registry.event; in awaitAndVerifyEvent()
173 String result = verifyEvent(registry, expectedResponseValue, maxEventLatencyMs); in awaitAndVerifyEvent()
177 public String verifyEvent(SensorEventRegistry registry, float expectedResponseValue, in verifyEvent() argument
179 int eventType = registry.event.sensor.getType(); in verifyEvent()
188 float value = registry.event.values[0]; in verifyEvent()
189 String sensorName = registry.event.sensor.getName(); in verifyEvent()
192 long eventLatencyMs = (registry.receiveTimestampNanos/NANOSECONDS_PER_MILLISECOND) in verifyEvent()
195 int valuesLength = registry.event.values.length; in verifyEvent()
[all …]
DSignificantMotionTestActivity.java367 TriggerEventRegistry registry = awaitForEvent();
370 TriggerEvent event = registry.triggerEvent;
403 registry.realtimeTimestampNanos,
409 TriggerEventRegistry registry = awaitForEvent();
411 TriggerEvent event = registry.triggerEvent;
421 TriggerEventRegistry registry = mEventRegistry;
429 return registry != null ? registry : new TriggerEventRegistry(null, 0);
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/powermanager/
DPowerManagerStatsTests.java112 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testThermalHeadroomCalledIsPushed() local
113 AdpfExtensionAtoms.registerAllExtensions(registry); in testThermalHeadroomCalledIsPushed()
115 registry); in testThermalHeadroomCalledIsPushed()
141 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testThermalStatusCalledIsPushed() local
142 AdpfExtensionAtoms.registerAllExtensions(registry); in testThermalStatusCalledIsPushed()
144 registry); in testThermalStatusCalledIsPushed()
167 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testThermalHeadroomThresholdsCalledIsPushed() local
168 AdpfExtensionAtoms.registerAllExtensions(registry); in testThermalHeadroomThresholdsCalledIsPushed()
170 registry); in testThermalHeadroomThresholdsCalledIsPushed()
186 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testThermalHeadroomThresholdsIsPulled() local
[all …]
/cts/hostsidetests/grammaticalinflection/src/android/grammaticalinflection/cts/
DGrammaticalGenderAtomTests.java76 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testAtomLogging_genderSpecified_logsAtomSuccessfully() local
77 GrammaticalInflectionExtensionAtoms.registerAllExtensions(registry); in testAtomLogging_genderSpecified_logsAtomSuccessfully()
79 registry); in testAtomLogging_genderSpecified_logsAtomSuccessfully()
94 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testAtomLogging_genderNotSpecified_logsAtomSuccessfully() local
95 GrammaticalInflectionExtensionAtoms.registerAllExtensions(registry); in testAtomLogging_genderNotSpecified_logsAtomSuccessfully()
97 registry); in testAtomLogging_genderNotSpecified_logsAtomSuccessfully()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/express/
DExpresslogAtomsTests.java116 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogCounterAtom() local
117 ExpresslogExtensionAtoms.registerAllExtensions(registry); in testExpressLogCounterAtom()
120 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice(), registry); in testExpressLogCounterAtom()
145 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogCounterWithUidAtom() local
146 ExpresslogExtensionAtoms.registerAllExtensions(registry); in testExpressLogCounterWithUidAtom()
149 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice(), registry); in testExpressLogCounterWithUidAtom()
180 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogSampleAtomUniform() local
181 ExpresslogExtensionAtoms.registerAllExtensions(registry); in testExpressLogSampleAtomUniform()
185 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice(), registry); in testExpressLogSampleAtomUniform()
219 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogSampleAtomScaled() local
[all …]
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DComponentStateChangedReportedStatsTests.java104 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedForWholeApp() local
105 PackagemanagerExtensionAtoms.registerAllExtensions(registry); in testComponentStateChangedReportedForWholeApp()
117 registry); in testComponentStateChangedReportedForWholeApp()
139 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedForLauncherActivity() local
140 PackagemanagerExtensionAtoms.registerAllExtensions(registry); in testComponentStateChangedReportedForLauncherActivity()
152 registry); in testComponentStateChangedReportedForLauncherActivity()
174 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedForNoLauncherActivity() local
175 PackagemanagerExtensionAtoms.registerAllExtensions(registry); in testComponentStateChangedReportedForNoLauncherActivity()
187 registry); in testComponentStateChangedReportedForNoLauncherActivity()
209 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedEnabledThenDisabled() local
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/projection/
DMediaProjectionAtomsTests.java124 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testMediaProjectionStateChanged_stoppedCapture() local
125 FrameworkExtensionAtoms.registerAllExtensions(registry); in testMediaProjectionStateChanged_stoppedCapture()
126 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice(), registry); in testMediaProjectionStateChanged_stoppedCapture()
169 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testMediaProjectionTargetChanged_stoppedCapture() local
170 FrameworkExtensionAtoms.registerAllExtensions(registry); in testMediaProjectionTargetChanged_stoppedCapture()
171 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice(), registry); in testMediaProjectionTargetChanged_stoppedCapture()
196 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testMediaProjectionStateChanged_setupCancelled() local
197 FrameworkExtensionAtoms.registerAllExtensions(registry); in testMediaProjectionStateChanged_setupCancelled()
198 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice(), registry); in testMediaProjectionStateChanged_setupCancelled()
226 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testMediaProjectionStateChanged_appSelectorShown() local
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memorysafety/
DMteStateTest.java78 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testMteState() local
79 MemorysafetyExtensionAtoms.registerAllExtensions(registry); in testMteState()
92 final List<Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice(), registry, false); in testMteState()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/credentials/
DCredentialsStatsTest.java91 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testInitialPhaseKnownCaller() local
92 CredentialsExtensionAtoms.registerAllExtensions(registry); in testInitialPhaseKnownCaller()
100 getDevice(), registry); in testInitialPhaseKnownCaller()
/cts/hostsidetests/input/src/android/input/cts/hostside/
DInputAtomsTest.kt59 private val registry: ExtensionRegistry = ExtensionRegistry.newInstance() constant in android.input.cts.hostside.InputAtomsTest
66 InputExtensionAtoms.registerAllExtensions(registry) in setUp()
102 val data: List<EventMetricData> = ReportUtils.getEventMetricDataList(device, registry) in testInputDeviceUsageAtom()
154 atoms = ReportUtils.getGaugeMetricAtoms(device, registry, false) in getTouchpadUsageAtom()
272 ReportUtils.getGaugeMetricAtoms(device, registry, false) in setupTouchpadUsageConfig()
361 metricData = ReportUtils.getEventMetricDataList(device, registry) in waitForMetricData()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/
DPacFileServer.java83 HttpRequestHandlerRegistry registry = new HttpRequestHandlerRegistry(); in PacFileServer() local
85 registry.register(ALL_PATTERN, this); in PacFileServer()
86 mHttpService.setHandlerResolver(registry); in PacFileServer()
/cts/hostsidetests/telecom/src/android/telecom/cts/
DTelecomHostStatsTest.java161 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testEmergencyNumberDialedAtom() local
162 TelecomExtensionAtom.registerAllExtensions(registry); in testEmergencyNumberDialedAtom()
163 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice(), registry); in testEmergencyNumberDialedAtom()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/performancehintmanager/
DPerformanceHintManagerStatsTests.java252 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testAdpfHintSessionTidCleanupIsPushed() local
253 AdpfExtensionAtoms.registerAllExtensions(registry); in testAdpfHintSessionTidCleanupIsPushed()
255 registry); in testAdpfHintSessionTidCleanupIsPushed()
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java451 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testEditingEndedEvent_default() local
452 MediaEditingExtensionAtoms.registerAllExtensions(registry); in testEditingEndedEvent_default()
463 ReportUtils.getEventMetricDataList(getDevice(), registry); in testEditingEndedEvent_default()
481 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testEditingEndedEvent_error() local
482 MediaEditingExtensionAtoms.registerAllExtensions(registry); in testEditingEndedEvent_error()
493 ReportUtils.getEventMetricDataList(getDevice(), registry); in testEditingEndedEvent_error()
519 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testEditingEndedEvent_transcodeAndClip() local
520 MediaEditingExtensionAtoms.registerAllExtensions(registry); in testEditingEndedEvent_transcodeAndClip()
531 ReportUtils.getEventMetricDataList(getDevice(), registry); in testEditingEndedEvent_transcodeAndClip()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java726 ExtensionRegistry registry = ExtensionRegistry.newInstance();
727 StatsdExtensionAtoms.registerAllExtensions(registry);
729 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice(), registry);