/tools/test/connectivity/acts/framework/tests/ |
D | acts_context_test.py | 21 from acts import context 22 from acts.context import RootContext 23 from acts.context import TestCaseContext 24 from acts.context import TestClassContext 25 from acts.context import TestContext 26 from acts.context import _update_test_case_context 27 from acts.context import _update_test_class_context 28 from acts.context import get_context_for_event 29 from acts.context import get_current_context 44 context._contexts = [RootContext()] [all …]
|
/tools/test/connectivity/acts/framework/tests/metrics/ |
D | core_test.py | 94 context = Mock() 95 publisher = MetricPublisher(context) 97 self.assertEqual(publisher.context, context) 103 context = Mock() 105 publisher = MetricPublisher(context) 114 context = Mock() 115 context.get_full_output_path.return_value = 'output/path' 122 context, 128 self.assertEqual(publisher.context, context) 137 context = Mock() [all …]
|
D | logger_test.py | 116 self.assertIsNone(logger.context) 120 context = Mock() 123 logger = MetricLogger(context=context, publisher=publisher) 125 self.assertEqual(logger.context, context) 131 context = Mock() 133 get_context.return_value = context 140 publisher_cls.assert_called_once_with(context) 141 self.assertEqual(logger.context, context)
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | TestInvocation.java | 175 private void logStartInvocation(IInvocationContext context, IConfiguration config) { in logStartInvocation() argument 186 msg.append(context.getTestTag()); in logStartInvocation() 188 for (Entry<ITestDevice, IBuildInfo> entry : context.getDeviceBuildMap().entrySet()) { in logStartInvocation() 198 mStatus = String.format("running %s on build(s) '%s'", context.getTestTag(), in logStartInvocation() 224 IInvocationContext context = testInfo.getContext(); in performInvocation() local 227 ((InvocationContext) context).lockAttributes(); in performInvocation() 229 logDeviceBatteryLevel(context, "initial"); in performInvocation() 233 invocationPath.runDevicePreInvocationSetup(context, config, listener); in performInvocation() 243 badDevice = context.getDeviceBySerial(e.getDeviceSerial()); in performInvocation() 247 context.setRecoveryModeForAllDevices(RecoveryMode.NONE); in performInvocation() [all …]
|
D | InvocationExecution.java | 187 public void cleanUpBuilds(IInvocationContext context, IConfiguration config) { in cleanUpBuilds() argument 189 for (String cleanUpDevice : context.getDeviceConfigNames()) { in cleanUpBuilds() 190 if (context.getBuildInfo(cleanUpDevice) != null) { in cleanUpBuilds() 194 .cleanUp(context.getBuildInfo(cleanUpDevice)); in cleanUpBuilds() 338 IInvocationContext context, IConfiguration config, ITestLogger logger) in runDevicePreInvocationSetup() argument 340 customizeDevicePreInvocation(config, context); in runDevicePreInvocationSetup() 341 for (String deviceName : context.getDeviceConfigNames()) { in runDevicePreInvocationSetup() 342 ITestDevice device = context.getDevice(deviceName); in runDevicePreInvocationSetup() 346 ((ITestLoggerReceiver) context.getDevice(deviceName)).setTestLogger(logger); in runDevicePreInvocationSetup() 348 device.preInvocationSetup(context.getBuildInfo(deviceName)); in runDevicePreInvocationSetup() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeItem.kt | 42 override fun toErasedTypeString(context: Item?): String { in toString() 48 context = context in toString() 57 context: Item?, in toTypeString() 60 val typeString = toTypeString(type, outerAnnotations, innerAnnotations, erased, context) in toTypeString() 62 if (innerAnnotations && kotlinStyleNulls && !primitive && context != null) { in toTypeString() 63 var nullable: Boolean? = AnnotationItem.getImplicitNullness(context) in toTypeString() 66 for (annotation in context.modifiers.annotations()) { in toTypeString() 157 private fun findTypeVariableBounds(context: Item?, name: String): List<ClassItem> { in findTypeVariableBounds() 158 if (context is MethodItem) { in findTypeVariableBounds() 159 val bounds = findTypeVariableBounds(context.typeParameterList(), name) in findTypeVariableBounds() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | EmailResultReporterTest.java | 52 IInvocationContext context = new InvocationContext(); in testInvocationEnded() local 53 context.addDeviceBuildInfo("fakeDevice", new BuildInfo("888", "mybuild")); in testInvocationEnded() 54 context.setTestTag("mytest"); in testInvocationEnded() 55 mEmailReporter.invocationStarted(context); in testInvocationEnded() 71 IInvocationContext context = new InvocationContext(); in testInvocationEnded_multiBuild() local 72 context.addAllocatedDevice("fakeDevice", EasyMock.createMock(ITestDevice.class)); in testInvocationEnded_multiBuild() 73 context.addDeviceBuildInfo("fakeDevice", new BuildInfo("888", "mybuild")); in testInvocationEnded_multiBuild() 74 context.addAllocatedDevice("fakeDevice2", EasyMock.createMock(ITestDevice.class)); in testInvocationEnded_multiBuild() 75 context.addDeviceBuildInfo("fakeDevice2", new BuildInfo("999", "mybuild2")); in testInvocationEnded_multiBuild() 76 context.setTestTag("mytest"); in testInvocationEnded_multiBuild() [all …]
|
D | MetricsXMLResultReporterTest.java | 60 IInvocationContext context = new InvocationContext(); in testEmptyGeneration() local 61 context.addDeviceBuildInfo("fakeDevice", new BuildInfo("1", "test")); in testEmptyGeneration() 62 context.setTestTag("test"); in testEmptyGeneration() 63 mResultReporter.invocationStarted(context); in testEmptyGeneration() 77 IInvocationContext context = new InvocationContext(); in testRunMetrics() local 78 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testRunMetrics() 79 context.setTestTag("stub"); in testRunMetrics() 80 mResultReporter.invocationStarted(context); in testRunMetrics() 104 IInvocationContext context = new InvocationContext(); in testTestMetrics() local 105 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testTestMetrics() [all …]
|
D | XmlResultReporterTest.java | 58 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument 106 IInvocationContext context = new InvocationContext(); in testEmptyGeneration() local 107 context.addDeviceBuildInfo("fakeDevice", new BuildInfo("1", "test")); in testEmptyGeneration() 108 context.setTestTag("test"); in testEmptyGeneration() 109 mResultReporter.invocationStarted(context); in testEmptyGeneration() 120 IInvocationContext context = new InvocationContext(); in testSinglePass() local 121 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testSinglePass() 122 context.setTestTag("stub"); in testSinglePass() 123 mResultReporter.invocationStarted(context); in testSinglePass() 144 IInvocationContext context = new InvocationContext(); in testSingleFail() local [all …]
|
/tools/test/connectivity/acts/tests/google/fuchsia/wlan/ |
D | WlanRvrTest.py | 19 from acts import context 210 output_path = context.get_current_context().get_base_output_path() 211 test_class_name = context.get_current_context().test_class_name 573 context.get_current_context().get_full_output_path(), 578 context.get_current_context().get_full_output_path(), graph_data) 593 context.get_current_context().get_full_output_path(), 598 context.get_current_context().get_full_output_path(), graph_data) 613 context.get_current_context().get_full_output_path(), 618 context.get_current_context().get_full_output_path(), graph_data) 633 context.get_current_context().get_full_output_path(), [all …]
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/ |
D | LoopSummary.java | 37 IInvocationContext context, in parseRunMetrics() argument 42 getMetricLongValue(context, type, runIndex, "frame_count", runMetrics), in parseRunMetrics() 43 getMetricLongValue(context, type, runIndex, "duration", runMetrics), in parseRunMetrics() 44 getMetricDoubleValue(context, type, runIndex, "jank_rate", runMetrics), in parseRunMetrics() 45 getMetricLongValue(context, type, runIndex, "min_frametime", runMetrics), in parseRunMetrics() 46 getMetricLongValue(context, type, runIndex, "max_frametime", runMetrics), in parseRunMetrics() 47 getMetricDoubleValue(context, type, runIndex, "frametime", runMetrics), in parseRunMetrics() 48 getMetricLongValue(context, type, runIndex, "90th_percentile", runMetrics), in parseRunMetrics() 49 getMetricLongValue(context, type, runIndex, "95th_percentile", runMetrics), in parseRunMetrics() 50 getMetricLongValue(context, type, runIndex, "99th_percentile", runMetrics), in parseRunMetrics() [all …]
|
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
D | WifiMonitorService.java | 156 private static void clearData(final Context context) { in clearData() argument 157 context.deleteFile(DATA_FILE); in clearData() 161 out = context.openFileOutput(DATA_FILE, 0); in clearData() 177 public static void enable(final Context context, final long interval, in enable() argument 184 clearData(context); in enable() 186 final Intent intent = new Intent(context, WifiMonitorService.class); in enable() 188 final PendingIntent operation = PendingIntent.getService(context, 0, intent, in enable() 190 final AlarmManager alarm = (AlarmManager) context.getSystemService( in enable() 200 public static void disable(final Context context) { in disable() argument 201 final Intent intent = new Intent(context, WifiMonitorService.class); in disable() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | FileProtoResultReporterTest.java | 77 IInvocationContext context = new InvocationContext(); in testWriteResults() local 78 context.setConfigurationDescriptor(new ConfigurationDescriptor()); in testWriteResults() 79 context.addInvocationAttribute("test", "test"); in testWriteResults() 80 mReporter.invocationStarted(context); in testWriteResults() 101 IInvocationContext context = new InvocationContext(); in testWriteResults_periodic() local 102 context.setConfigurationDescriptor(new ConfigurationDescriptor()); in testWriteResults_periodic() 103 context.addInvocationAttribute("test", "test"); in testWriteResults_periodic() 104 mReporter.invocationStarted(context); in testWriteResults_periodic() 150 ProtoResultParser parser = new ProtoResultParser(mMockListener, context, true); in testWriteResults_periodic() 161 IInvocationContext context = new InvocationContext(); in createModuleContext() local [all …]
|
D | ProtoResultParserTest.java | 71 TestRecord invocationStartRecord, IInvocationContext context) { in processStartInvocation() argument 74 context.getBuildInfos().get(0).addBuildAttribute(TEST_KEY, "build_value"); in processStartInvocation() 76 context.addInvocationAttribute(CONTEXT_TEST_KEY, "context_value"); in processStartInvocation() 183 IInvocationContext context = mMainInvocationContext; in testEvents() local 184 assertFalse(context.getBuildInfos().get(0).getBuildAttributes().containsKey(TEST_KEY)); in testEvents() 185 assertFalse(context.getAttributes().containsKey(CONTEXT_TEST_KEY)); in testEvents() 188 context.getBuildInfos().get(0).getBuildAttributes().get("early_key")); in testEvents() 189 assertEquals("context_value", context.getAttributes().get("early_context_key").get(0)); in testEvents() 191 assertFalse(context.getBuildInfos().get(0).getBuildAttributes().containsKey("after_start")); in testEvents() 196 context.getBuildInfos().get(0).getBuildAttributes().get("after_start")); in testEvents() [all …]
|
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/ |
D | MetricsXmlParserTest.java | 88 IInvocationContext context = new InvocationContext(); in testSimpleParse() local 89 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testSimpleParse() 90 context.setTestTag("stub"); in testSimpleParse() 91 mResultReporter.invocationStarted(context); in testSimpleParse() 116 IInvocationContext context = new InvocationContext(); in testParse() local 117 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testParse() 118 context.setTestTag("stub"); in testParse() 119 mResultReporter.invocationStarted(context); in testParse() 151 IInvocationContext context = new InvocationContext(); in testParseBlacklist() local 152 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testParseBlacklist() [all …]
|
/tools/test/graphicsbenchmark/functional_tests/java/src/com/android/game/qualification/tests/ |
D | ChoreoTestActivity.java | 45 public ChoreoTestView(Context context) { in ChoreoTestView() argument 46 super(context); in ChoreoTestView() 73 public ChoreoTestView(Context context, AttributeSet attrs) { in ChoreoTestView() argument 74 super(context, attrs); in ChoreoTestView() 77 public ChoreoTestView(Context context, AttributeSet attrs, int defStyleAttr) { in ChoreoTestView() argument 78 super(context, attrs, defStyleAttr); in ChoreoTestView() 81 … public ChoreoTestView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ChoreoTestView() argument 82 super(context, attrs, defStyleAttr, defStyleRes); in ChoreoTestView()
|
D | SurfaceFlingerTestActivity.java | 70 public TestView(Context context) { in TestView() argument 71 super(context); in TestView() 97 public TestView(Context context, AttributeSet attrs) { in TestView() argument 98 super(context, attrs); in TestView() 101 public TestView(Context context, AttributeSet attrs, int defStyleAttr) { in TestView() argument 102 super(context, attrs, defStyleAttr); in TestView() 105 public TestView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in TestView() argument 106 super(context, attrs, defStyleAttr, defStyleRes); in TestView()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiTypeItem.kt | 76 context: Item?, in toTypeString() 92 context = context, in toTypeString() 107 context = context, in toTypeString() 119 context = context, in toTypeString() 136 context = context, in toTypeString() 151 context = context, in toTypeString() 162 owner = context, in toTypeString() 177 override fun toErasedTypeString(context: Item?): String { in toErasedTypeString() 183 context = context in toErasedTypeString() 222 override fun asTypeParameter(context: MemberItem?): TypeParameterItem? { in asTypeParameter() [all …]
|
/tools/tradefederation/core/util-apps/DeviceSetupUtil/src/com/android/tradefed/utils/ |
D | DeviceSetupIntentReceiver.java | 37 public void onReceive(Context context, Intent intent) { in onReceive() argument 40 intent.setClass(context, DeviceSetupService.class); in onReceive() 41 context.startService(intent); in onReceive() 46 intent.setClass(context, DeviceSetupService.class); in onReceive() 47 context.stopService(intent); in onReceive() 52 intent.setClass(context, DeviceSetupService.class); in onReceive() 53 context.startService(intent); in onReceive()
|
/tools/tradefederation/contrib/src/com/android/tradefed/ |
D | HelloWorldMultiDevices.java | 40 IInvocationContext context = testInfo.getContext(); in run() local 43 for (ITestDevice device : context.getDevices()) { in run() 46 device.getSerialNumber(), context.getBuildInfo(device)); in run() 50 for (String deviceName : context.getDeviceConfigNames()) { in run() 53 context.getDevice(deviceName).getSerialNumber(), deviceName); in run() 57 Assert.assertNotNull(context.getDevice("device1")); in run() 60 context.getDevice("device1").getSerialNumber()); in run()
|
/tools/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | blackbox_test.py | 44 self.context = Mock() 46 self._get_blackbox_identifier = lambda: str(id(self.context)) 76 self.assertIsNotNone(logger.context) 86 logger.context = self.context 88 logger.context.identifier = 'Class.test' 107 logger.context = self.context 108 logger.context.identifier = 'Class.test' 124 logger.context = self.context 144 logger.context = self.context
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandSchedulerTest.java | 620 IInvocationContext context = new InvocationContext(); 624 context.addAllocatedDevice("", mockTestDevice); 626 context.addDeviceBuildInfo("", mockBuildInfo); 648 handler.invocationInitiated(context); 654 handler.invocationStarted(context); 660 context.addAllocatedDevice(DEVICE_SERIAL, mockTestDevice); 661 context.addInvocationAttribute(InvocationMetricKey.FETCH_BUILD.toString(), "100"); 662 context.addInvocationAttribute(InvocationMetricKey.SETUP.toString(), "200"); 663 context.addInvocationAttribute(InvocationMetricKey.DEVICE_LOST_DETECTED.toString(), "1"); 666 handler.invocationComplete(context, releaseMap); [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | InvocationContextTest.java | 154 InvocationContext context = new InvocationContext(); in testProtoSerialize() local 157 context.setConfigurationDescriptor(descriptor); in testProtoSerialize() 158 context.setTestTag("tag"); in testProtoSerialize() 159 context.addInvocationAttribute("test_key", "test_value"); in testProtoSerialize() 160 Context protoContext = context.toProto(); in testProtoSerialize() 175 InvocationContext context = new InvocationContext(); in testProtoSerialize_moduleContext() local 178 context.setConfigurationDescriptor(descriptor); in testProtoSerialize_moduleContext() 183 context.setModuleInvocationContext(moduleContext); in testProtoSerialize_moduleContext() 185 Context protoContext = context.toProto(); in testProtoSerialize_moduleContext()
|
/tools/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/ |
D | assembly_line_test.py | 101 with self.assertRaises(ValueError) as context: 104 self.assertIn('single source', context.exception.args[0]) 139 with self.assertRaises(ValueError) as context: 142 self.assertIn('source', context.exception.args[0]) 151 with self.assertRaises(ValueError) as context: 154 self.assertIn('built', context.exception.args[0]) 194 with self.assertRaises(ValueError) as context: 197 self.assertIn('already built', context.exception.args[0]) 203 with self.assertRaises(ValueError) as context: 206 self.assertIn('empty', context.exception.args[0])
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandScheduler.java | 485 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates) { in releaseDevices() argument 489 for (ITestDevice device : context.getDevices()) { in releaseDevices() 502 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete() argument 506 .invocationComplete(context, devicesStates); in invocationComplete() 512 releaseDevices(context, devicesStates); in invocationComplete() 687 int invocId, long elapsedTime, final IInvocationContext context) { in logInvocationEndedEvent() argument 691 args.put(INVOC_END_EVENT_TAG_KEY, context.getTestTag()); in logInvocationEndedEvent() 694 for (String key : context.getAttributes().keySet()) { in logInvocationEndedEvent() 695 args.put(key, context.getAttributes().get(key).get(0)); in logInvocationEndedEvent() 800 IInvocationContext context, Throwable e) { in createReleaseMap() argument [all …]
|