Home
last modified time | relevance | path

Searched refs:detector (Results 1 – 25 of 85) sorted by relevance

1234

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowScaleGestureDetectorTest.java19 private ScaleGestureDetector detector; field in ShadowScaleGestureDetectorTest
24 detector = new ScaleGestureDetector(RuntimeEnvironment.application, null); in setUp()
30 detector.onTouchEvent(motionEvent); in test_getOnTouchEventMotionEvent()
31 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_getOnTouchEventMotionEvent()
36 shadowOf(detector).setScaleFactor(2.0f); in test_getScaleFactor()
37 assertThat(2.0f).isEqualTo(detector.getScaleFactor()); in test_getScaleFactor()
42 shadowOf(detector).setFocusXY(2.0f, 3.0f); in test_getFocusXY()
43 assertThat(2.0f).isEqualTo(detector.getFocusX()); in test_getFocusXY()
44 assertThat(3.0f).isEqualTo(detector.getFocusY()); in test_getFocusXY()
57 detector.onTouchEvent(motionEvent); in test_reset()
[all …]
DShadowGestureDetectorTest.java21 private GestureDetector detector; field in ShadowGestureDetectorTest
26 detector = new GestureDetector(new TestOnGestureListener()); in setUp()
32 detector.onTouchEvent(motionEvent); in test_getOnTouchEventMotionEvent()
33 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_getOnTouchEventMotionEvent()
38 detector.onTouchEvent(motionEvent); in test_reset()
39 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_reset()
41 shadowOf(detector).reset(); in test_reset()
42 assertNull(shadowOf(detector).getOnTouchEventMotionEvent()); in test_reset()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddelay_peak_detector_unittest.cc20 DelayPeakDetector* detector = new DelayPeakDetector(); in TEST() local
21 EXPECT_FALSE(detector->peak_found()); in TEST()
22 delete detector; in TEST()
26 DelayPeakDetector detector; in TEST() local
27 EXPECT_EQ(-1, detector.MaxPeakHeight()); in TEST()
28 EXPECT_EQ(-1, detector.MaxPeakPeriod()); in TEST()
35 DelayPeakDetector detector; in TEST() local
37 detector.SetPacketAudioLength(kPacketSizeMs); in TEST()
69 EXPECT_FALSE(detector.Update(iat_packets, kTargetBufferLevel)); in TEST()
71 EXPECT_TRUE(detector.Update(iat_packets, kTargetBufferLevel)); in TEST()
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/
DContentTypeDetectorTest.java37 private ContentTypeDetector detector; field in ContentTypeDetectorTest
42 assertEquals(ContentTypeDetector.UNKNOWN, detector.getType()); in testEmptyStream()
50 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile()
57 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile11()
64 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile12()
71 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile13()
78 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile14()
85 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile15()
92 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile16()
99 assertEquals(ContentTypeDetector.CLASSFILE, detector.getType()); in testClassFile17()
[all …]
/external/webrtc/webrtc/modules/remote_bitrate_estimator/
Dremote_bitrate_estimator_single_stream.cc41 detector(options) {} in Detector()
45 OveruseDetector detector; member
95 const BandwidthUsage prior_state = estimator->detector.State(); in IncomingPacket()
104 estimator->detector.State()); in IncomingPacket()
105 estimator->detector.Detect(estimator->estimator.offset(), in IncomingPacket()
109 if (estimator->detector.State() == kBwOverusing) { in IncomingPacket()
161 if (it->second->detector.State() > bw_state) { in UpdateEstimate()
162 bw_state = it->second->detector.State(); in UpdateEstimate()
/external/jacoco/org.jacoco.core/src/org/jacoco/core/instr/
DInstrumenter.java186 final ContentTypeDetector detector; in instrumentAll() local
188 detector = new ContentTypeDetector(input); in instrumentAll()
192 switch (detector.getType()) { in instrumentAll()
194 instrument(detector.getInputStream(), output, name); in instrumentAll()
197 return instrumentZip(detector.getInputStream(), output, name); in instrumentAll()
199 return instrumentGzip(detector.getInputStream(), output, name); in instrumentAll()
201 return instrumentPack200(detector.getInputStream(), output, name); in instrumentAll()
203 copy(detector.getInputStream(), output, name); in instrumentAll()
/external/jacoco/org.jacoco.core/src/org/jacoco/core/analysis/
DAnalyzer.java180 final ContentTypeDetector detector; in analyzeAll() local
182 detector = new ContentTypeDetector(input); in analyzeAll()
186 switch (detector.getType()) { in analyzeAll()
188 analyzeClass(detector.getInputStream(), location); in analyzeAll()
191 return analyzeZip(detector.getInputStream(), location); in analyzeAll()
193 return analyzeGzip(detector.getInputStream(), location); in analyzeAll()
195 return analyzePack200(detector.getInputStream(), location); in analyzeAll()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DDetectorActivity.java102 private Classifier detector; field in DetectorActivity
133 detector = in onPreviewSizeChosen()
143 detector = in onPreviewSizeChosen()
156 detector = TensorFlowObjectDetectionAPIModel.create( in onPreviewSizeChosen()
224 if (detector != null) { in onPreviewSizeChosen()
225 final String statString = detector.getStatString(); in onPreviewSizeChosen()
289 final List<Classifier.Recognition> results = detector.recognizeImage(croppedBitmap); in processImage()
347 detector.enableStatLogging(debug); in onSetDebug()
/external/owasp/sanitizer/tools/findbugs/doc/
DAddingDetectors.txt3 Updated June 6, 2003 (detector meta-information, cleanups)
16 as particular "bug patterns" that the detector reports.
19 required for each FindBugs detector plugin.
75 that by default, the detector will be disabled at runtime.
115 <p> This detector looks for JSR-166 locks that are not released on all paths
184 the detector for this bug pattern. You may also use constructs
206 7. Using 3rd party libraries in the detector
221 extension point how to update the plugin.xml. Existing FindBugs detector plugins can
222 be easily "extended" to be full featured FindBugs & Eclipse detector plugins.
/external/libxcam/plugins/smart/dvs/libdvs/
Dstabilizer.cpp335 … Ptr<FeatureDetector> detector = estimator.dynamicCast<KeypointBasedMotionEstimator>()->detector(); in configFeatureDetector() local
336 if (NULL == detector) { in configFeatureDetector()
340 detector.dynamicCast<GFTTDetector>()->setMaxFeatures(features); in configFeatureDetector()
341 detector.dynamicCast<GFTTDetector>()->setMinDistance(minDistance); in configFeatureDetector()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DWavePlotView.java611 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
612 focusSample = (int) (detector.getFocusX() * getZoom()) + mCurrentOffset; in onScaleBegin()
613 return super.onScaleBegin(detector); in onScaleBegin()
617 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
618 setZoom(getZoom() / detector.getScaleFactor()); in onScale()
620 int newFocusSample = (int) (detector.getFocusX() * getZoom()) + mCurrentOffset; in onScale()
/external/tensorflow/tensorflow/examples/android/jni/object_tracking/
Dobject_model.h90 ObjectModel<DetectorType>(const DetectorType* const detector,
92 : ObjectModelBase(name), detector_(detector) {} in ObjectModelBase()
/external/webrtc/webrtc/modules/desktop_capture/
Ddesktop_capture_options.h60 rtc::scoped_refptr<FullScreenChromeWindowDetector> detector) { in set_full_screen_chrome_window_detector() argument
61 full_screen_window_detector_ = detector; in set_full_screen_chrome_window_detector()
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/
Dfiltering_postprocessor_test.py32 detector = filtering_postprocessor.StateInterpolatingAnomalyDetector(
46 interpolated_state, updated_outputs = detector.process_filtering_step(
/external/compiler-rt/lib/tsan/dd/
DCMakeLists.txt1 # Build for the experimental deadlock detector runtime library.
19 # Deadlock detector is currently supported on 64-bit Linux only.
/external/webrtc/webrtc/modules/audio_processing/transient/
Dtransient_detector_unittest.cc78 TransientDetector detector(sample_rate_hz); in TEST() local
93 detector.Detect(buffer.get(), buffer_length, NULL, 0); in TEST()
Dclick_annotate.cc69 TransientDetector detector(sample_rate_hz); in main() local
86 detector.Detect(audio_buffer.get(), audio_buffer_length, NULL, 0); in main()
/external/autotest/client/cros/video/
Ddevice_capability.py52 detector = importlib.import_module(
55 detect_results[name] = detector.detect()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/
DTestCharsetDetector.java788 CharsetDetector detector = new CharsetDetector(); in TestReusingDetector() local
791 detector.setText(data1); in TestReusingDetector()
792 CharsetMatch match1 = detector.detect(); in TestReusingDetector()
795 detector.setText(data2); in TestReusingDetector()
796 CharsetMatch match2 = detector.detect(); in TestReusingDetector()
799 CharsetMatch match2a = detector.detect(); in TestReusingDetector()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
DTestCharsetDetector.java785 CharsetDetector detector = new CharsetDetector(); in TestReusingDetector() local
788 detector.setText(data1); in TestReusingDetector()
789 CharsetMatch match1 = detector.detect(); in TestReusingDetector()
792 detector.setText(data2); in TestReusingDetector()
793 CharsetMatch match2 = detector.detect(); in TestReusingDetector()
796 CharsetMatch match2a = detector.detect(); in TestReusingDetector()
/external/zxing/core/
Dcore.jar ... reedsolomon/ com/google/zxing/common/detector/ com/google/zxing/pdf417/ com ...
/external/mockito/src/test/java/org/mockito/internal/
DInvalidStateDetectionTest.java223 private void detectsAndCleansUp(DetectsInvalidState detector, Class<?> expected) { in detectsAndCleansUp() argument
225 detector.detect(mock); in detectsAndCleansUp()
/external/python/cpython2/Lib/test/
Dtest_gc.py601 detector = GC_Detector()
602 while not detector.gc_happened:
666 detector = GC_Detector()
669 while not detector.gc_happened:
/external/python/cpython3/Doc/c-api/
Dallocation.rst19 object participates in the cyclic garbage detector, it is added to the
20 detector's set of observed objects. Other fields of the object are not
/external/walt/docs/
DDragLatency.md5 …or scroll) latency WALT uses a laser that shines across the touch device and hits a detector on the
6 other side. The microcontroller monitors the state of the laser detector and reports (over usb) when

1234