Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/tools/test/connectivity/acts/framework/tests/
Dacts_context_test.py21 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/
Dcore_test.py93 context = Mock()
94 publisher = MetricPublisher(context)
96 self.assertEqual(publisher.context, context)
102 context = Mock()
104 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 …]
/tools/tradefederation/core/src/com/android/tradefed/build/content/
DImageContentAnalyzer.java52 for (ContentAnalysisContext context : contexts) { in evaluate()
53 if (context.contentInformation() != null in evaluate()
54 && !context.contentInformation().currentBuildId.startsWith("P")) { in evaluate()
55 activeContexts.remove(context); in evaluate()
59 context.contentEntry()); in evaluate()
72 for (ContentAnalysisContext context : buildKeyAnalysis) { in evaluate()
73 if (AnalysisMethod.DEVICE_IMAGE.equals(context.analysisMethod()) in evaluate()
74 && context.abortAnalysis()) { in evaluate()
77 context.abortReason(), context.contentEntry()); in evaluate()
84 for (ContentAnalysisContext context : buildKeyAnalysis) { in evaluate()
[all …]
DTestContentAnalyzer.java74 for (ContentAnalysisContext context : contexts) { in evaluate()
75 if (context.contentInformation() != null in evaluate()
76 && !context.contentInformation().currentBuildId.startsWith("P")) { in evaluate()
77 activeContexts.remove(context); in evaluate()
81 context); in evaluate()
86 for (ContentAnalysisContext context : activeContexts) { in evaluate()
87 if (context.abortAnalysis()) { in evaluate()
88 CLog.w("Analysis was aborted: %s", context.abortReason()); in evaluate()
101 for (ContentAnalysisContext context : buildKeyAnalysis) { in evaluate()
102 if (AnalysisMethod.BUILD_KEY.equals(context.analysisMethod())) { in evaluate()
[all …]
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DKotlinTypeInfo.kt52 val context: PsiElement, in <lambda>() constant
59 constructor(context: PsiElement) : this(null, null, context) in <lambda>()
69 return "KotlinTypeInfo($ktType for $context)" in <lambda>()
75 ) = KotlinTypeInfo(analysisSession, ktType, context, overrideTypeArguments) in <lambda>()
108 context, in <lambda>()
128 context, in <lambda>()
149 context, in <lambda>()
157 val ktElement = context as KtElement in <lambda>()
158 return analyze(ktElement) { syntheticContinuationParameter(context, returnType) } in <lambda>()
165 val ktElement = context as KtElement in <lambda>()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DXmlResultReporterTest.java63 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument
100 IInvocationContext context = new InvocationContext(); in testEmptyGeneration() local
101 context.addDeviceBuildInfo("fakeDevice", new BuildInfo("1", "test")); in testEmptyGeneration()
102 context.setTestTag("test"); in testEmptyGeneration()
103 mResultReporter.invocationStarted(context); in testEmptyGeneration()
115 IInvocationContext context = new InvocationContext(); in testSinglePass() local
116 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testSinglePass()
117 context.setTestTag("stub"); in testSinglePass()
118 mResultReporter.invocationStarted(context); in testSinglePass()
140 IInvocationContext context = new InvocationContext(); in testSingleFail() local
[all …]
DMetricsXMLResultReporterTest.java63 IInvocationContext context = new InvocationContext(); in testEmptyGeneration() local
64 context.addDeviceBuildInfo("fakeDevice", new BuildInfo("1", "test")); in testEmptyGeneration()
65 context.setTestTag("test"); in testEmptyGeneration()
66 mResultReporter.invocationStarted(context); in testEmptyGeneration()
80 IInvocationContext context = new InvocationContext(); in testRunMetrics() local
81 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testRunMetrics()
82 context.setTestTag("stub"); in testRunMetrics()
83 mResultReporter.invocationStarted(context); in testRunMetrics()
107 IInvocationContext context = new InvocationContext(); in testTestMetrics() local
108 context.addDeviceBuildInfo("fakeDevice", new BuildInfo()); in testTestMetrics()
[all …]
/tools/platform-compat/java/com/android/class2nonsdklist/
DCovariantReturnTypeHandler.java51 public void handleAnnotation(AnnotationEntry annotation, AnnotationContext context) { in handleAnnotation() argument
52 if (context instanceof AnnotatedClassContext) { in handleAnnotation()
55 handleAnnotation(annotation, (AnnotatedMemberContext) context); in handleAnnotation()
58 private void handleAnnotation(AnnotationEntry annotation, AnnotatedMemberContext context) { in handleAnnotation() argument
64 if (!(context.member instanceof Method)) { in handleAnnotation()
65 context.reportError("Cannot specify %s on a field", RETURN_TYPE); in handleAnnotation()
70 context.reportError("No %s set on @%s", RETURN_TYPE, SHORT_NAME); in handleAnnotation()
73 if (!mPublicApis.contains(context.getMemberDescriptor())) { in handleAnnotation()
74 context.reportError("Found @%s on non-SDK method", SHORT_NAME); in handleAnnotation()
80 String typeSignature = context.member.getSignature(); in handleAnnotation()
[all …]
DUnsupportedAppUsageAnnotationHandler.java98 public void handleAnnotation(AnnotationEntry annotation, AnnotationContext context) { in handleAnnotation() argument
100 if (context instanceof AnnotatedMemberContext) { in handleAnnotation()
101 AnnotatedMemberContext memberContext = (AnnotatedMemberContext) context; in handleAnnotation()
110 String signature = context.getMemberDescriptor(); in handleAnnotation()
122 context.reportError("Expected signature does not match generated:\n" in handleAnnotation()
130 context.reportError("Expected property %s to be of type int; got %d", in handleAnnotation()
140 if (context instanceof AnnotatedClassContext) { in handleAnnotation()
142 context.getClassDescriptor(), implicitMemberSignature); in handleAnnotation()
144 context.reportError( in handleAnnotation()
157 context.reportError("Expected property %s to be of type long; got %d", in handleAnnotation()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java229 private void logStartInvocation(IInvocationContext context, IConfiguration config) { in logStartInvocation() argument
240 msg.append(context.getTestTag()); in logStartInvocation()
242 for (Entry<ITestDevice, IBuildInfo> entry : context.getDeviceBuildMap().entrySet()) { in logStartInvocation()
252 mStatus = String.format("running %s on build(s) '%s'", context.getTestTag(), in logStartInvocation()
277 IInvocationContext context = testInfo.getContext(); in performInvocation() local
280 ((InvocationContext) context).lockAttributes(); in performInvocation()
282 logDeviceBatteryLevel(context, "initial"); in performInvocation()
285 invocationPath.runDevicePreInvocationSetup(context, config, listener); in performInvocation()
294 badDevice = context.getDeviceBySerial(e.getDeviceSerial()); in performInvocation()
298 context.setRecoveryModeForAllDevices(RecoveryMode.NONE); in performInvocation()
[all …]
/tools/treble/build/treble_build/local/
Dninja.go41 Command(ctx context.Context, target string) (*bytes.Buffer, error)
42 Input(ctx context.Context, target string) (*bytes.Buffer, error)
43 Query(ctx context.Context, target string) (*bytes.Buffer, error)
44 Path(ctx context.Context, target string, dependency string) (*bytes.Buffer, error)
45 Paths(ctx context.Context, target string, dependency string) (*bytes.Buffer, error)
46 Deps(ctx context.Context) (*bytes.Buffer, error)
47 Build(ctx context.Context, target string) (*bytes.Buffer, error)
189 func (n *ninjaCmd) runTool(ctx context.Context, tool string, targets []string) (out *bytes.Buffer, …
208 func (n *ninjaCmd) Command(ctx context.Context, target string) (*bytes.Buffer, error) {
211 func (n *ninjaCmd) Input(ctx context.Context, target string) (*bytes.Buffer, error) {
[all …]
Dgit.go36 ProjectInfo(ctx context.Context, gitDir, workDir string) (out *bytes.Buffer, err error)
37 RemoteUrl(ctx context.Context, gitDir, workDir, remote string) (*bytes.Buffer, error)
38 Tree(ctx context.Context, gitDir, workDir, revision string) (*bytes.Buffer, error)
39 CommitInfo(ctx context.Context, gitDir, workDir, revision string) (*bytes.Buffer, error)
40 DiffBranches(ctx context.Context, gitDir, workDir, upstream, sha string) (*bytes.Buffer, error)
48 func (cli gitCli) Project(ctx context.Context, path, gitDir, remote, revision string) (*app.GitProj…
89 func (cli gitCli) PopulateFiles(ctx context.Context, proj *app.GitProject, upstream string) error {
115 func (cli gitCli) CommitInfo(ctx context.Context, proj *app.GitProject, sha string) (*app.GitCommit…
218 func (git *gitCmd) runDirCmd(ctx context.Context, gitDir string, workDir string, args []string) (*b…
227 func (git *gitCmd) ProjectInfo(ctx context.Context, gitDir, workDir string) (*bytes.Buffer, error) {
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DLoopSummary.java37 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/javatests/com/android/tradefed/targetprep/
DTestFilePushSetupTest.java127 IInvocationContext context = new InvocationContext(); in testSetup() local
128 context.addAllocatedDevice("device", device); in testSetup()
129 context.addDeviceBuildInfo("device", stubBuild); in testSetup()
130 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in testSetup()
141 IInvocationContext context = new InvocationContext(); in testSetup_notDeviceBuildInfo() local
142 context.addAllocatedDevice("device", mock(ITestDevice.class)); in testSetup_notDeviceBuildInfo()
143 context.addDeviceBuildInfo("device", stubBuild); in testSetup_notDeviceBuildInfo()
144 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in testSetup_notDeviceBuildInfo()
164 IInvocationContext context = new InvocationContext(); in testThrowIfNotFound() local
165 context.addAllocatedDevice("device", mMockDevice); in testThrowIfNotFound()
[all …]
/tools/tradefederation/core/util_apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiMonitorService.java154 private static void clearData(final Context context) { in clearData() argument
155 context.deleteFile(DATA_FILE); in clearData()
159 out = context.openFileOutput(DATA_FILE, 0); in clearData()
175 public static void enable(final Context context, final long interval, in enable() argument
182 clearData(context); in enable()
184 final Intent intent = new Intent(context, WifiMonitorService.class); in enable()
187 context, 0, intent, PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT); in enable()
188 final AlarmManager alarm = (AlarmManager) context.getSystemService( in enable()
198 public static void disable(final Context context) { in disable() argument
199 final Intent intent = new Intent(context, WifiMonitorService.class); in disable()
[all …]
/tools/treble/build/treble_build/report/
Ddependencies.go24 Command(ctx context.Context, target string) (*app.BuildCommand, error)
25 Input(ctx context.Context, target string) (*app.BuildInput, error)
26 Query(ctx context.Context, target string) (*app.BuildQuery, error)
27 Path(ctx context.Context, target string, dependency string) (*app.BuildPath, error)
28 Paths(ctx context.Context, target string, dependency string) ([]*app.BuildPath, error)
29 Deps(ctx context.Context) (*app.BuildDeps, error)
33 …Project(ctx context.Context, path string, gitDir string, remote string, revision string) (*app.Git…
34 PopulateFiles(ctx context.Context, proj *app.GitProject, upstream string) error
35 CommitInfo(ctx context.Context, proj *app.GitProject, sha string) (*app.GitCommit, error)
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/performance/
DWlanRvrTest.py20 from acts import context
204 output_path = context.get_current_context().get_base_output_path()
205 test_class_name = context.get_current_context().test_class_name
226 output_path = context.get_current_context().get_base_output_path()
635 context.get_current_context().get_full_output_path(),
640 context.get_current_context().get_full_output_path(), graph_data)
655 context.get_current_context().get_full_output_path(),
660 context.get_current_context().get_full_output_path(), graph_data)
675 context.get_current_context().get_full_output_path(),
680 context.get_current_context().get_full_output_path(), graph_data)
[all …]
/tools/test/connectivity/acts/framework/tests/metrics/loggers/
Dbounded_metrics_test.py39 self.context = Mock()
46 self.assertIsNotNone(logger.context)
56 logger.context = self.context
58 logger.context.identifier = 'Class.test'
80 logger.context = self.context
82 logger.context.identifier = 'Class.test'
109 logger.context = self.context
111 logger.context.identifier = 'AwesomeClass.incredible_test'
129 logger.context = self.context
131 logger.context.identifier = 'BestClass'
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/proto/
DFileProtoResultReporterTest.java85 IInvocationContext context = new InvocationContext(); in testWriteResults() local
86 context.setConfigurationDescriptor(new ConfigurationDescriptor()); in testWriteResults()
87 context.addInvocationAttribute("test", "test"); in testWriteResults()
88 mReporter.invocationStarted(context); in testWriteResults()
109 IInvocationContext context = new InvocationContext(); in testWriteResults_periodic() local
110 context.setConfigurationDescriptor(new ConfigurationDescriptor()); in testWriteResults_periodic()
111 context.addInvocationAttribute("test", "test"); in testWriteResults_periodic()
112 mReporter.invocationStarted(context); in testWriteResults_periodic()
138 ProtoResultParser parser = new ProtoResultParser(mMockListener, context, true); in testWriteResults_periodic()
172 IInvocationContext context = new InvocationContext(); in createModuleContext() local
[all …]
/tools/security/remote_provisioning/hwtrust/src/cbor/
Dpublickey.rs20 pkey.try_into().context("Making PublicKey from PKey") in from_cose_key()
33 let der = ec_cose_signature_to_der(k, signature).context("Signature to DER")?; in verify_cose_sign1()
46 let x = self.pkey().raw_public_key().context("Get ed25519 raw public key")?; in to_cose_key()
54 let mut ctx = BigNumContext::new().context("Failed to create bignum context")?; in to_cose_key()
55 let mut x = BigNum::new().context("Failed to create x coord")?; in to_cose_key()
56 let mut y = BigNum::new().context("Failed to create y coord")?; in to_cose_key()
59 .context("Get EC coordinates")?; in to_cose_key()
83 pkey.try_into().context("Making KeyAgreementPublicKey from PKey") in from_cose_key()
127 PKey::public_key_from_raw_bytes(x, curve_id).context("Failed to instantiate key") in pkey_from_okp_key()
139 pkey_from_ec_coords(Nid::X9_62_PRIME256V1, x, y).context("Failed to instantiate key") in pkey_from_ec2_key()
[all …]
/tools/test/graphicsbenchmark/functional_tests/java/src/com/android/game/qualification/tests/
DChoreoTestActivity.java45 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()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/suite/module/
DKernelTestModuleController.java57 public RunStrategy shouldRun(IInvocationContext context) { in shouldRun() argument
66 if (!deviceLowMem(context)) { in shouldRun()
71 if (deviceLowMem(context)) { in shouldRun()
80 if (!deviceWithHwasan(context)) { in shouldRun()
87 if (deviceWithHwasan(context)) { in shouldRun()
104 private boolean deviceLowMem(IInvocationContext context) { in deviceLowMem() argument
105 for (ITestDevice device : context.getDevices()) { in deviceLowMem()
130 private boolean deviceWithHwasan(IInvocationContext context) { in deviceWithHwasan() argument
131 for (ITestDevice device : context.getDevices()) { in deviceWithHwasan()
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/
DMetricsXmlParserTest.java89 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/sandbox/
DISandbox.java48 IInvocationContext context, in prepareEnvironment() argument
65 IInvocationContext context, IConfiguration configuration, String[] args) in fetchSandboxExtraArtifacts() argument
80 IInvocationContext context, IConfiguration configuration) { in discoverTests() argument
85 IInvocationContext context, IConfiguration configuration, ITestLogger logger) { in discoverTests() argument
86 return discoverTests(context, configuration); in discoverTests()
113 IInvocationContext context, IConfiguration nonVersionedConfig, String[] args) in getTradefedSandboxEnvironment() argument
119 IInvocationContext context, in getTradefedSandboxEnvironment() argument
124 return getTradefedSandboxEnvironment(context, nonVersionedConfig, args); in getTradefedSandboxEnvironment()
/tools/tradefederation/contrib/src/com/android/tradefed/
DHelloWorldMultiDevices.java40 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()

12345678910>>...15