Home
last modified time | relevance | path

Searched refs:capture (Results 1 – 25 of 81) sorted by relevance

1234

/tools/netsim/ui/ts/
Dpacket-info.ts164 toggleCapture(capture: Capture) {
165 let id = capture.id.toString();
166 let state = capture.state ? '0' : '1';
226 private handleListCaptures(capture: Capture) {
229 <td>${capture.deviceName}</td>
230 <td>${capture.chipKind}</td>
231 <td>${capture.size}</td>
232 <td>${capture.records}</td>
237 .checked=${capture.state}
239 this.toggleCapture(capture);
[all …]
/tools/netsim/rust/daemon/src/captures/
Dcaptures_handler.rs82 let capture = captures in handle_capture_get() localVariable
88 if capture.size == 0 { in handle_capture_get()
92 capture.device_name, in handle_capture_get()
93 capture.chip_kind in handle_capture_get()
96 let mut file = get_file(id, capture.device_name.clone(), capture.chip_kind)?; in handle_capture_get()
98 let time_display = TimeDisplay::new(capture.seconds, capture.nanos as u32); in handle_capture_get()
102 capture.device_name.clone(), in handle_capture_get()
103 capture.chip_kind, in handle_capture_get()
105 capture.extension in handle_capture_get()
109 capture.size, in handle_capture_get()
[all …]
Dcapture.rs220 pub fn insert(&mut self, capture: CaptureInfo) { in insert()
221 let chip_id = capture.id; in insert()
222 let arc_capture = Arc::new(Mutex::new(capture)); in insert()
241 let mut capture = arc_capture.lock().expect("Failed to acquire lock on CaptureInfo"); in remove() localVariable
243 capture.valid = false; in remove()
244 capture.stop_capture(); in remove()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGoogleBenchmarkResultParserTest.java96 ArgumentCaptor<HashMap<String, Metric>> capture = ArgumentCaptor.forClass(HashMap.class); in testParseSimpleFile() local
115 .testEnded((TestDescription) Mockito.any(), capture.capture()); in testParseSimpleFile()
118 HashMap<String, Metric> resultTest1 = capture.getAllValues().get(0); in testParseSimpleFile()
127 HashMap<String, Metric> resultTest2 = capture.getAllValues().get(1); in testParseSimpleFile()
135 HashMap<String, Metric> resultTest3 = capture.getAllValues().get(2); in testParseSimpleFile()
152 ArgumentCaptor<HashMap<String, Metric>> capture = ArgumentCaptor.forClass(HashMap.class); in testParseSimpleFile_twoTests() local
162 .testEnded((TestDescription) Mockito.any(), capture.capture()); in testParseSimpleFile_twoTests()
164 HashMap<String, Metric> results = capture.getAllValues().get(0); in testParseSimpleFile_twoTests()
210 ArgumentCaptor<String> capture = ArgumentCaptor.forClass(String.class); in testParse_benchmarkError() local
222 .testFailed((TestDescription) Mockito.any(), capture.capture()); in testParse_benchmarkError()
[all …]
/tools/netsim/rust/cli/src/
Dresponse.rs277 for capture in &response.captures { in print_list_capture_response()
282 capture.id.to_string(), in print_list_capture_response()
283 capture.device_name, in print_list_capture_response()
284 Self::chip_kind_to_string(capture.chip_kind.enum_value_or_default()), in print_list_capture_response()
285 … if capture.valid {Self::capture_state_to_string(capture.state)} else {"detached".to_string()}, in print_list_capture_response()
287 capture.timestamp.get_or_default().seconds, in print_list_capture_response()
288 capture.timestamp.get_or_default().nanos as u32, in print_list_capture_response()
290 capture.records, in print_list_capture_response()
291 capture.size, in print_list_capture_response()
296 capture.device_name, in print_list_capture_response()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DFilePullerLogCollectorTest.java81 ArgumentCaptor<HashMap<String, Metric>> capture = ArgumentCaptor.forClass(HashMap.class); in testSkipStub() local
94 verify(mMockListener).testEnded(Mockito.eq(test), Mockito.eq(50L), capture.capture()); in testSkipStub()
96 HashMap<String, Metric> metricCaptured = capture.getValue(); in testSkipStub()
117 ArgumentCaptor<HashMap<String, Metric>> capture = ArgumentCaptor.forClass(HashMap.class); in testPullAndLog() local
135 verify(mMockListener).testEnded(Mockito.eq(test), Mockito.eq(50L), capture.capture()); in testPullAndLog()
137 HashMap<String, Metric> metricCaptured = capture.getValue(); in testPullAndLog()
159 ArgumentCaptor<HashMap<String, Metric>> capture = ArgumentCaptor.forClass(HashMap.class); in testSkipTestCollection() local
165 verify(mMockListener).testEnded(Mockito.eq(test), Mockito.eq(50L), capture.capture()); in testSkipTestCollection()
166 HashMap<String, Metric> metricCaptured = capture.getValue(); in testSkipTestCollection()
187 ArgumentCaptor<HashMap<String, Metric>> capture = ArgumentCaptor.forClass(HashMap.class); in testPostProcessFiles() local
[all …]
DBluetoothHciSnoopLogCollectorTest.java120 ArgumentCaptor<HashMap<String, Metric>> capture = ArgumentCaptor.forClass(HashMap.class); in testPullFileAndLog() local
142 .testEnded(Mockito.eq(test), Mockito.eq(TEST_END_TIME), capture.capture()); in testPullFileAndLog()
144 HashMap<String, Metric> metricCaptured = capture.getValue(); in testPullFileAndLog()
167 ArgumentCaptor<HashMap<String, Metric>> capture = ArgumentCaptor.forClass(HashMap.class); in testPullDirMultipleSnoopLogs() local
213 .testEnded(Mockito.eq(test1), Mockito.eq(TEST_END_TIME), capture.capture()); in testPullDirMultipleSnoopLogs()
215 .testEnded(Mockito.eq(test2), Mockito.eq(TEST_END_TIME), capture.capture()); in testPullDirMultipleSnoopLogs()
217 .testEnded(Mockito.eq(test3), Mockito.eq(TEST_END_TIME), capture.capture()); in testPullDirMultipleSnoopLogs()
219 HashMap<String, Metric> metricCaptured = capture.getValue(); in testPullDirMultipleSnoopLogs()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DPushFilePreparerTest.java397 ArgumentCaptor<Set<String>> capture = ArgumentCaptor.forClass(Set.class); in testPush_abiDirectory_noBitness() local
401 capture.capture())) in testPush_abiDirectory_noBitness()
408 Set<String> capValue = capture.getValue(); in testPush_abiDirectory_noBitness()
430 ArgumentCaptor<Set<String>> capture = ArgumentCaptor.forClass(Set.class); in testPush_abiDirectory_noBitness_withModule() local
434 capture.capture())) in testPush_abiDirectory_noBitness_withModule()
441 Set<String> capValue = capture.getValue(); in testPush_abiDirectory_noBitness_withModule()
462 ArgumentCaptor<Set<String>> capture = ArgumentCaptor.forClass(Set.class); in testPush_abiDirectory() local
466 capture.capture())) in testPush_abiDirectory()
473 Set<String> capValue = capture.getValue(); in testPush_abiDirectory()
500 ArgumentCaptor<Set<String>> capture = ArgumentCaptor.forClass(Set.class); in testPush_moduleName_dirs() local
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/internal/
DDeviceReleaseReporterTest.java71 ArgumentCaptor<Map<String, String>> capture = ArgumentCaptor.forClass(Map.class); in releaseDevices_oneDevice() local
75 capture.capture()); in releaseDevices_oneDevice()
76 Map<String, String> actual = capture.getValue(); in releaseDevices_oneDevice()
93 ArgumentCaptor<Map<String, String>> capture = ArgumentCaptor.forClass(Map.class); in releaseDevices_multipleDevices() local
97 capture.capture()); in releaseDevices_multipleDevices()
98 Map<String, String> actual = capture.getValue(); in releaseDevices_multipleDevices()
DEarlyDeviceReleaseFeatureTest.java88 ArgumentCaptor<Map<ITestDevice, FreeDeviceState>> capture = in testFeature_oneDevice() local
91 verify(mListener1).releaseDevices(Mockito.eq(mInvocationContext), capture.capture()); in testFeature_oneDevice()
92 Map<ITestDevice, FreeDeviceState> actual = capture.getValue(); in testFeature_oneDevice()
106 ArgumentCaptor<Map<ITestDevice, FreeDeviceState>> capture = in testFeature_multipleDevices() local
109 verify(mListener1).releaseDevices(Mockito.eq(mInvocationContext), capture.capture()); in testFeature_multipleDevices()
110 Map<ITestDevice, FreeDeviceState> actual = capture.getValue(); in testFeature_multipleDevices()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterDeviceMonitorTest.java142 ArgumentCaptor<ClusterHostEvent> capture = ArgumentCaptor.forClass(ClusterHostEvent.class); in testDispatch() local
146 verify(mHostEventUploader).postEvent(capture.capture()); in testDispatch()
148 ClusterHostEvent hostEvent = capture.getValue(); in testDispatch()
166 ArgumentCaptor<ClusterHostEvent> capture = ArgumentCaptor.forClass(ClusterHostEvent.class); in testLabel() local
170 verify(mHostEventUploader).postEvent(capture.capture()); in testLabel()
172 ClusterHostEvent hostEvent = capture.getValue(); in testLabel()
256 ArgumentCaptor<ClusterHostEvent> capture = ArgumentCaptor.forClass(ClusterHostEvent.class); in testDeviceExtraInfo() local
260 verify(mHostEventUploader).postEvent(capture.capture()); in testDeviceExtraInfo()
262 ClusterHostEvent hostEvent = capture.getValue(); in testDeviceExtraInfo()
/tools/netsim/rust/daemon/src/
Drust_main.rs24 use crate::captures::capture::spawn_capture_event_subscriber;
172 match config.capture.as_mut() { in disambiguate_args()
173 Some(capture) => { in disambiguate_args()
174 capture.enabled = Some(true); in disambiguate_args()
177 let mut capture = Capture::new(); in disambiguate_args() localVariable
178 capture.enabled = Some(true); in disambiguate_args()
179 config.capture = Some(capture).into(); in disambiguate_args()
256 config.capture.enabled.unwrap_or_default(), in run_netsimd_primary()
/tools/platform-compat/javatest/com/android/class2nonsdklist/
DUnsupportedAppUsageAnnotationHandlerTest.java102 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistMethod()
123 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistConstructor()
144 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistField()
165 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistImplicit()
185 verify(mStatus, times(1)).error(format.capture(), any()); in testGreylistImplicit_Invalid_MissingOnClass()
207 verify(mStatus, times(1)).error(format.capture(), any()); in testGreylistImplicit_Invalid_PresentOnMember()
229 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistMethodExpectedSignature()
270 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistInnerClassMethod()
308 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testMethodArgGenerics()
338 verify(mConsumer, times(2)).consume(greylist.capture(), any(), any()); in testOverrideMethodWithBridge()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/service/management/
DTestInvocationManagementServerTest.java95 verify(mRequestObserver).onNext(mResponseCaptor.capture()); in testSubmitTestCommand_andDetails()
102 verify(mDetailObserver).onNext(mResponseDetailCaptor.capture()); in testSubmitTestCommand_andDetails()
124 verify(mRequestObserver).onNext(mResponseCaptor.capture()); in testSubmitTestCommand_schedulingError()
154 verify(mRequestObserver).onNext(mResponseCaptor.capture()); in testSubmitTestCommand_reservedDevice()
161 verify(mDetailObserver).onNext(mResponseDetailCaptor.capture()); in testSubmitTestCommand_reservedDevice()
197 verify(mRequestObserver).onNext(mResponseCaptor.capture()); in testSubmitTestCommand_reservedMultiDevice()
204 verify(mDetailObserver).onNext(mResponseDetailCaptor.capture()); in testSubmitTestCommand_reservedMultiDevice()
229 verify(mRequestObserver).onNext(mResponseCaptor.capture()); in testSubmitTestCommand_andStop()
239 verify(mStopInvocationObserver).onNext(mStopInvocationCaptor.capture()); in testSubmitTestCommand_andStop()
247 verify(mDetailObserver).onNext(mResponseDetailCaptor.capture()); in testSubmitTestCommand_andStop()
DDeviceManagementGrpcServerTest.java93 verify(mGetDevicesStatusObserver).onNext(mGetDevicesStatusCaptor.capture()); in testGetDevicesStatus()
122 verify(mGetDevicesStatusObserver).onNext(mGetDevicesStatusCaptor.capture()); in testGetDevicesStatus_filter()
143 verify(mReserveDeviceResponseObserver).onNext(mReserveDeviceResponseCaptor.capture()); in testReserveAndRelease_freeDevice()
152 verify(mGetDevicesStatusObserver).onNext(mGetDevicesStatusCaptor.capture()); in testReserveAndRelease_freeDevice()
167 .onNext(mReleaseReservationResponseCaptor.capture()); in testReserveAndRelease_freeDevice()
191 verify(mReserveDeviceResponseObserver).onNext(mReserveDeviceResponseCaptor.capture()); in testReserveAndRelease_notFreeDevice()
200 .onNext(mReleaseReservationResponseCaptor.capture()); in testReserveAndRelease_notFreeDevice()
215 verify(mReserveDeviceResponseObserver).onNext(mReserveDeviceResponseCaptor.capture()); in testReserve_allocated()
232 verify(mReserveDeviceResponseObserver).onNext(mReserveDeviceResponseCaptor.capture()); in testReserve_unavailable()
249 verify(mReserveDeviceResponseObserver).onNext(mReserveDeviceResponseCaptor.capture()); in testReserve_cancelledBeforeReserved()
[all …]
/tools/netsim/rust/cli/
Dnetsim-cli.md98 * ### `capture`: Control the packet capture functionalities with commands: list, patch, get […
99 * Usage: `netsim capture <COMMAND>`
102 * Usage: `netsim capture list [PATTERNS]...`
108 * `patch`: Patch a Capture source to turn packet capture on/off
109 * Usage: `netsim capture patch <STATE> [PATTERNS]...`
111 * \<STATE\>: Packet capture state [possible values: on, off]
114 * `get`: Download the packet capture content
115 * Usage: `netsim capture get [OPTIONS] [PATTERNS]...`
120 * `-o, --location`: Directory to store downloaded capture file(s)
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DJUnitToInvocationResultForwarderTest.java132 ArgumentCaptor<TestDescription> capture = ArgumentCaptor.forClass(TestDescription.class); in testStartTest_annotations() local
139 verify(mListener).testStarted(capture.capture()); in testStartTest_annotations()
140 TestDescription desc = capture.getValue(); in testStartTest_annotations()
DLogcatCrashResultForwarderTest.java111 verify(mMockListener).testFailed(Mockito.eq(test), captured_1.capture()); in testCaptureTestCrash_oneCrashingLogcat()
116 verify(mMockListener).testRunFailed(captured_2.capture()); in testCaptureTestCrash_oneCrashingLogcat()
176 verify(mMockListener).testRunFailed(captured.capture()); in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded()
224 verify(mMockListener).testRunFailed(captured.capture()); in testCaptureTestCrash_duplicateStack()
254 verify(mMockListener).testFailed(Mockito.eq(test), captured.capture()); in testTestTimedOutTests()
280 verify(mMockListener).testFailed(Mockito.eq(test), captured.capture()); in testShellTimedOutTests()
DJsonHttpTestResultReporterTest.java74 verify(mReporter).postResults(jsonCaptor.capture()); in testSkipFailedRuns_notSet()
94 verify(mReporter).postResults(jsonCaptor.capture()); in testSkipFailedRuns_set()
112 verify(mReporter).postResults(jsonCaptor.capture()); in testInvalidMetricsNotSet()
132 verify(mReporter).postResults(jsonCaptor.capture()); in testInvalidAndInvalidMetricsNotSet()
166 verify(mReporter).postResults(jsonCaptor.capture()); in testAdditionalKeyValuePairs()
DLUCIResultReporterTest.java76 verify(mReporter).logResultFileLocation(fileCaptor.capture()); in tearDown()
90 verify(mReporter).saveJsonFile(jsonCaptor.capture()); in shouldSetRequiredJsonKeys_passedTest()
108 verify(mReporter).saveJsonFile(jsonCaptor.capture()); in shouldSetRequiredJsonKeys_failedTest()
129 verify(mReporter).saveJsonFile(jsonCaptor.capture()); in shouldReportSeparateTestResults_failedThenPassedTest()
146 verify(mReporter).saveJsonFile(jsonCaptor.capture()); in shouldSetValidJsonValues()
/tools/tradefederation/contrib/src/com/android/wireless/tests/
DWifiStressTest.java312 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local
313 String key = test.mPatternMap.retrieve(capture, line); in parseOutputFile()
317 test.mTestName, key, capture.toString()); in parseOutputFile()
321 int count = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile()
322 int total = Integer.parseInt(capture.get(0).get(1)); in parseOutputFile()
329 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
/tools/netsim/proto/netsim/
Dfrontend.proto58 // Patch a Capture source to turn capture on/off.
59 // When turned on the old capture contents are replaced.
65 // Retrieve the contents of the packet capture as streaming bytes
161 // Returns all capture information of devices connected to netsim.
175 // Returns a max of 1024 bytes of capture file.
178 // Max of 1024 bytes of capture file
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DGceSshTunnelMonitorTest.java111 ArgumentCaptor<String> capture = ArgumentCaptor.forClass(String.class); in testInitGce() local
121 Mockito.anyLong(), Mockito.anyLong(), Mockito.anyInt(), capture.capture()); in testInitGce()
122 List<String> args = capture.getAllValues(); in testInitGce()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DLocalAndroidVirtualDeviceTest.java313 instanceDir.capture(), in mockAcloudCreate()
315 reportFile.capture(), in mockAcloudCreate()
321 imageDir.capture(), in mockAcloudCreate()
323 hostPackageDir.capture(), in mockAcloudCreate()
348 instanceDir.capture(), in mockAcloudCreateWithExtraDirs()
350 reportFile.capture(), in mockAcloudCreateWithExtraDirs()
356 imageDir.capture(), in mockAcloudCreateWithExtraDirs()
358 hostPackageDir.capture(), in mockAcloudCreateWithExtraDirs()
360 bootImageDir.capture(), in mockAcloudCreateWithExtraDirs()
362 systemImageDir.capture(), in mockAcloudCreateWithExtraDirs()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/proto/
DProtoResultParserTest.java160 ArgumentCaptor<LogFile> capture = ArgumentCaptor.forClass(LogFile.class); in testEvents() local
225 .logAssociation(Mockito.eq("subprocess-log1"), capture.capture()); in testEvents()
236 inOrder.verify(mMockListener).invocationFailed(captureInvocFailure.capture()); in testEvents()
240 LogFile capturedFile = capture.getValue(); in testEvents()
287 inOrder.verify(mMockListener).invocationFailed(captureInvocFailure.capture()); in testEvents_invocationFailure()
329 inOrder.verify(mMockListener).invocationFailed(captureInvocFailure.capture()); in testEvents_invocationFailure_errorNotSet()
417 inOrder.verify(mMockListener).testModuleStarted(startCaptor.capture()); in testEvents_finaleProto()
577 ArgumentCaptor<LogFile> capture = ArgumentCaptor.forClass(LogFile.class); in testEvents_subprocess() local
628 .logAssociation(Mockito.eq("subprocess-log1"), capture.capture()); in testEvents_subprocess()
651 LogFile capturedFile = capture.getValue(); in testEvents_subprocess()
[all …]

1234