/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | TestInvocation.java | 134 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument 150 private void logStartInvocation(IInvocationContext context, IConfiguration config) { in logStartInvocation() argument 161 msg.append(context.getTestTag()); in logStartInvocation() 163 for (Entry<ITestDevice, IBuildInfo> entry : context.getDeviceBuildMap().entrySet()) { in logStartInvocation() 173 mStatus = String.format("running %s on build(s) '%s'", context.getTestTag(), in logStartInvocation() 185 IInvocationContext context, in performInvocation() argument 199 startInvocation(config, context, listener); in performInvocation() 201 ((InvocationContext) context).lockAttributes(); in performInvocation() 203 logDeviceBatteryLevel(context, "initial"); in performInvocation() 204 prepareAndRun(config, context, invocationPath, listener); in performInvocation() [all …]
|
D | InvocationExecution.java | 77 IInvocationContext context, in fetchBuild() argument 84 updateInvocationContext(context, config); in fetchBuild() 86 for (String deviceName : context.getDeviceConfigNames()) { in fetchBuild() 89 ITestDevice device = context.getDevice(deviceName); in fetchBuild() 94 ((IInvocationContextReceiver) provider).setInvocationContext(context); in fetchBuild() 105 context.addDeviceBuildInfo(deviceName, info); in fetchBuild() 120 context.addDeviceBuildInfo(currentDeviceName, e.getBuildInfo()); in fetchBuild() 121 updateInvocationContext(context, config); in fetchBuild() 129 public void cleanUpBuilds(IInvocationContext context, IConfiguration config) { in cleanUpBuilds() argument 131 for (String cleanUpDevice : context.getDeviceConfigNames()) { in cleanUpBuilds() [all …]
|
D | ShardMasterResultForwarder.java | 71 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument 73 mOriginalContext = context; in invocationStarted() 74 super.invocationStarted(context); in invocationStarted() 78 mOriginalContext.addSerialsFromShard(shardIndex, context.getSerials()); in invocationStarted() 79 mShardContextList.add(context); in invocationStarted()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
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 …]
|
D | DeviceUnavailEmailResultReporterTest.java | 51 IInvocationContext context = new InvocationContext(); in testGenerateEmailSubject() local 52 context.addAllocatedDevice("fakeDevice", EasyMock.createMock(ITestDevice.class)); in testGenerateEmailSubject() 53 context.addDeviceBuildInfo("fakeDevice", new BuildInfo("888", "mybuild")); in testGenerateEmailSubject() 54 mDnaeEmailReporter.invocationStarted(context); in testGenerateEmailSubject()
|
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
D | WifiMonitorService.java | 163 private static void clearData(final Context context) { in clearData() argument 164 context.deleteFile(DATA_FILE); in clearData() 168 out = context.openFileOutput(DATA_FILE, 0); in clearData() 184 public static void enable(final Context context, final long interval, in enable() argument 191 clearData(context); in enable() 193 final Intent intent = new Intent(context, WifiMonitorService.class); in enable() 195 final PendingIntent operation = PendingIntent.getService(context, 0, intent, in enable() 197 final AlarmManager alarm = (AlarmManager) context.getSystemService( in enable() 207 public static void disable(final Context context) { in disable() argument 208 final Intent intent = new Intent(context, WifiMonitorService.class); in disable() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/multi/ |
D | HelloWorldMultiTargetPreparer.java | 35 public void setUp(IInvocationContext context) throws TargetSetupError { in setUp() argument 36 Map<ITestDevice, IBuildInfo> deviceBuildInfo = context.getDeviceBuildMap(); in setUp() 38 ITestDevice device = context.getDevices().get(0); in setUp() 50 CLog.i("The device names configured are: %s", context.getDeviceConfigNames()); in setUp() 54 public void tearDown(IInvocationContext context, Throwable e) in tearDown() argument 56 Map<ITestDevice, IBuildInfo> deviceBuildInfo = context.getDeviceBuildMap(); in tearDown()
|
D | MergeMultiBuildTargetPreparer.java | 61 public void setUp(IInvocationContext context) in setUp() argument 64 IBuildInfo providerInfo = context.getBuildInfo(mProvider); in setUp() 70 context.getDevices().get(0).getDeviceDescriptor()); in setUp() 72 IBuildInfo receiverInfo = context.getBuildInfo(mReceiver); in setUp() 78 context.getDevices().get(0).getDeviceDescriptor()); in setUp()
|
D | IMultiTargetPreparer.java | 42 public void setUp(IInvocationContext context) throws TargetSetupError, in setUp() argument 54 public default void tearDown(IInvocationContext context, Throwable e) in tearDown() argument
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | ShardHelper.java | 81 IConfiguration config, IInvocationContext context, IRescheduler rescheduler) { in shardConfig() argument 86 isSharded |= shardTest(shardableTests, test, shardCount, context); in shardConfig() 102 resultCollector.invocationStarted(context); in shardConfig() 116 rescheduleConfig(shardConfig, config, context, rescheduler, resultCollector); in shardConfig() 128 rescheduleConfig(shardConfig, config, context, rescheduler, resultCollector); in shardConfig() 133 for (String deviceName : context.getDeviceConfigNames()) { in shardConfig() 136 .cleanUp(context.getBuildInfo(deviceName)); in shardConfig() 144 IInvocationContext context, in rescheduleConfig() argument 148 ShardBuildCloner.cloneBuildInfos(config, shardConfig, context); in rescheduleConfig() 209 IInvocationContext context) { in shardTest() argument [all …]
|
D | ShardBuildCloner.java | 39 IConfiguration fromConfig, IConfiguration toConfig, IInvocationContext context) { in cloneBuildInfos() argument 40 for (String deviceName : context.getDeviceConfigNames()) { in cloneBuildInfos() 41 IBuildInfo toBuild = context.getBuildInfo(deviceName).clone(); in cloneBuildInfos()
|
D | StrictShardHelper.java | 46 IConfiguration config, IInvocationContext context, IRescheduler rescheduler) { in shardConfig() argument 51 return super.shardConfig(config, context, rescheduler); in shardConfig() 62 List<IRemoteTest> listAllTests = getAllTests(config, shardCount, context); in shardConfig() 107 IConfiguration config, Integer shardCount, IInvocationContext context) { in getAllTests() argument 113 ((IBuildReceiver) test).setBuild(context.getBuildInfos().get(0)); in getAllTests() 116 ((IDeviceTest) test).setDevice(context.getDevices().get(0)); in getAllTests() 119 ((IMultiDeviceTest) test).setDeviceInfos(context.getDeviceBuildMap()); in getAllTests() 122 ((IInvocationContextReceiver) test).setInvocationContext(context); in getAllTests()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | MetricsXmlParserTest.java | 89 IInvocationContext context = new InvocationContext(); in testSimpleParse() local 90 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testSimpleParse() 91 context.setTestTag("stub"); in testSimpleParse() 92 mResultReporter.invocationStarted(context); in testSimpleParse() 117 IInvocationContext context = new InvocationContext(); in testParse() local 118 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testParse() 119 context.setTestTag("stub"); in testParse() 120 mResultReporter.invocationStarted(context); in testParse() 152 IInvocationContext context = new InvocationContext(); in testParseBlacklist() local 153 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testParseBlacklist() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/ |
D | BaseModuleController.java | 52 public final RunStrategy shouldRunModule(IInvocationContext context) { in shouldRunModule() argument 53 mContext = context; in shouldRunModule() 54 return shouldRun(context); in shouldRunModule() 63 public abstract RunStrategy shouldRun(IInvocationContext context); in shouldRun() argument
|
/tools/tradefederation/core/prod-tests/tests/src/com/android/continuous/ |
D | SmokeTestFailureReporterTest.java | 70 IInvocationContext context = new InvocationContext(); in testSingleFail() local 71 context.addDeviceBuildInfo("serial", build); in testSingleFail() 72 context.setTestTag(TAG); in testSingleFail() 75 mReporter.invocationStarted(context); in testSingleFail() 117 IInvocationContext context = new InvocationContext(); in testTwoPassOneFail() local 118 context.addDeviceBuildInfo("serial", build); in testTwoPassOneFail() 119 context.setTestTag(TAG); in testTwoPassOneFail() 122 mReporter.invocationStarted(context); in testTwoPassOneFail()
|
/tools/tradefederation/core/src/com/android/tradefed/sandbox/ |
D | TradefedSandbox.java | 121 IInvocationContext context, IConfiguration config, ITestInvocationListener listener) { in prepareEnvironment() argument 141 context, in prepareEnvironment() 149 Exception res = prepareConfiguration(context, config, listener); in prepareEnvironment() 156 mSerializedContext = prepareContext(context); in prepareEnvironment() 179 IInvocationContext context, IConfiguration nonVersionedConfig, String[] args) in getTradefedSandboxEnvironment() argument 232 IInvocationContext context, IConfiguration config, ITestInvocationListener listener) { in prepareConfiguration() argument 235 mEventParser = new SubprocessTestResultsParser(listener, true, context); in prepareConfiguration() 264 protected File prepareContext(IInvocationContext context) throws IOException { in prepareContext() argument 265 return SerializationUtil.serialize(context); in prepareContext()
|
/tools/test/connectivity/acts/framework/tests/ |
D | test_runner_test.py | 42 context = Mock() 43 context.__exit__ = Mock() 44 context.__enter__ = Mock() 45 return context
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | ScheduleMultipleDeviceMetricCollector.java | 78 IInvocationContext context, ITestInvocationListener listener) { in init() argument 79 super.init(context, listener); in init() 80 initMetricCollectors(context, listener); in init() 87 IInvocationContext context, ITestInvocationListener listener) { in initMetricCollectors() argument 95 singleMetricCollector.init(context, listener); in initMetricCollectors()
|
/tools/loganalysis/src/com/android/loganalysis/item/ |
D | SELinuxItem.java | 58 public void setSContext(String context) { in setSContext() argument 59 setAttribute(SCONTEXT, context); in setSContext()
|
/tools/tradefederation/core/atest/ |
D | test_mapping_unittest.py | 42 with self.assertRaises(Exception) as context: 45 'Each option can only have one key.', str(context.exception))
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | ICommandScheduler.java | 48 public default void invocationInitiated(IInvocationContext context) {} in invocationInitiated() argument 58 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates); in invocationComplete() argument 138 IInvocationContext context, IScheduledInvocationListener listener, String[] args) in execCommand() argument
|
/tools/test/connectivity/acts/framework/acts/ |
D | asserts.py | 114 context = _AssertRaisesContext(expected_exception, extras=extras) 115 return context 140 context = _AssertRaisesContext( 142 return context
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatter.java | 133 public void parseSuiteAttributes(XmlPullParser parser, IInvocationContext context) in parseSuiteAttributes() argument 159 public void parseBuildInfoAttributes(XmlPullParser parser, IInvocationContext context) in parseBuildInfoAttributes() argument 196 holder.context.getAttributes().getUniqueMap().get(COMMAND_LINE_ARGS))); in writeResults() 201 Map<Integer, List<String>> serialsShards = holder.context.getShardsSerials(); in writeResults() 204 deviceList = Joiner.on(",").join(holder.context.getSerials()); in writeResults() 227 for (String key : holder.context.getAttributes().keySet()) { in writeResults() 229 NS, key, Joiner.on(",").join(holder.context.getAttributes().get(key))); in writeResults() 401 IInvocationContext context = new InvocationContext(); in parseResults() local 411 context.addInvocationAttribute( in parseResults() 413 parseSuiteAttributes(parser, context); in parseResults() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/ |
D | SandboxedInvocationExecution.java | 36 IInvocationContext context, in fetchBuild() argument 56 IInvocationContext context) { in resetBuildAndReschedule() argument
|