/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowScaleGestureDetectorTest.java | 19 private ScaleGestureDetector detector; field in ShadowScaleGestureDetectorTest 24 detector = new ScaleGestureDetector(ApplicationProvider.getApplicationContext(), 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() 60 detector.onTouchEvent(motionEvent); in test_reset() [all …]
|
D | ShadowGestureDetectorTest.java | 22 private GestureDetector detector; field in ShadowGestureDetectorTest 28 detector = new GestureDetector(new TestOnGestureListener()); in setUp() 35 detector.onTouchEvent(motionEvent); in test_getOnTouchEventMotionEvent() 36 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_getOnTouchEventMotionEvent() 41 detector.onTouchEvent(motionEvent); in test_reset() 42 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_reset() 44 shadowOf(detector).reset(); in test_reset() 45 assertNull(shadowOf(detector).getOnTouchEventMotionEvent()); in test_reset()
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/ |
D | ContentTypeDetectorTest.java | 37 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/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/google_default/ |
D | google_default_credentials.cc | 137 metadata_server_detector* detector = in on_metadata_server_detection_http_response() local 139 if (error == GRPC_ERROR_NONE && detector->response.status == 200 && in on_metadata_server_detection_http_response() 140 detector->response.hdr_count > 0) { in on_metadata_server_detection_http_response() 144 for (i = 0; i < detector->response.hdr_count; i++) { in on_metadata_server_detection_http_response() 145 grpc_http_header* header = &detector->response.hdrs[i]; in on_metadata_server_detection_http_response() 148 detector->success = 1; in on_metadata_server_detection_http_response() 154 detector->is_done = 1; in on_metadata_server_detection_http_response() 157 grpc_pollset_kick(grpc_polling_entity_pollset(&detector->pollent), in on_metadata_server_detection_http_response() 167 metadata_server_detector detector; in is_metadata_server_reachable() local 177 detector.pollent = grpc_polling_entity_create_from_pollset(pollset); in is_metadata_server_reachable() [all …]
|
/external/tensorflow/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/ |
D | OvicDetectorBenchmarker.java | 36 private OvicDetector detector; field in OvicDetectorBenchmarker 50 return (detector != null); in readyToTest() 64 detector = new OvicDetector(labelInputStream, model); in getReadyToTest() 65 int[] inputDims = detector.getInputDims(); in getReadyToTest() 90 if (!detector.detectByteBuffer(image, imageId)) { in processBuffer() 101 totalRuntimeNano += ((double) detector.result.latencyNano); in processBuffer() 123 detector.result.scaleUp(scaleFactorWidth, scaleFactorHeight); in processBitmap() 128 return detector.result; in getLastDetectionResult() 133 if (detector.result == null) { in getLastResultString() 136 return detector.result.toString(); in getLastResultString()
|
D | OvicValidator.java | 58 OvicDetector detector = new OvicDetector(labelsInputStream, model); in main() local 59 int[] inputDims = detector.getInputDims(); in main() 61 if (!detector.detectByteBuffer(imgData, /*imageId=*/ 0)) { in main()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/format/ |
D | TestJsonFormatDetection.java | 15 DataFormatDetector detector = new DataFormatDetector(jsonF); in testSimpleValidArray() local 17 …DataFormatMatcher matcher = detector.findFormat(new ByteArrayInputStream(ARRAY_JSON.getBytes("UTF-… in testSimpleValidArray() 37 DataFormatDetector detector = new DataFormatDetector(jsonF); in testSimpleValidObject() local 39 … DataFormatMatcher matcher = detector.findFormat(new ByteArrayInputStream(JSON.getBytes("UTF-8"))); in testSimpleValidObject() 64 DataFormatDetector detector = new DataFormatDetector(jsonF); in testSimpleValidString() local 68 _testSimpleValidString(jsonF, detector.findFormat(bytes)); in testSimpleValidString() 69 _testSimpleValidString(jsonF, detector.findFormat(new ByteArrayInputStream(bytes))); in testSimpleValidString() 88 DataFormatDetector detector = new DataFormatDetector(new JsonFactory()); in testSimpleInvalid() local 90 …DataFormatMatcher matcher = detector.findFormat(new ByteArrayInputStream(NON_JSON.getBytes("UTF-8"… in testSimpleInvalid()
|
/external/dagger2/java/dagger/lint/ |
D | DaggerKotlinIssueDetector.kt | 20 import com.android.tools.lint.detector.api.Category in <lambda>() 21 import com.android.tools.lint.detector.api.Detector in <lambda>() 22 import com.android.tools.lint.detector.api.Implementation in <lambda>() 23 import com.android.tools.lint.detector.api.Issue in <lambda>() 24 import com.android.tools.lint.detector.api.JavaContext in <lambda>() 25 import com.android.tools.lint.detector.api.LintFix in <lambda>() 26 import com.android.tools.lint.detector.api.Scope in <lambda>() 27 import com.android.tools.lint.detector.api.Severity in <lambda>() 28 import com.android.tools.lint.detector.api.SourceCodeScanner in <lambda>() 29 import com.android.tools.lint.detector.api.TextFormat in <lambda>() [all …]
|
D | DaggerIssueRegistry.kt | 19 import com.android.tools.lint.detector.api.CURRENT_API 20 import com.android.tools.lint.detector.api.Issue
|
/external/tensorflow/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/ |
D | OvicDetectorTest.java | 38 private OvicDetector detector = null; field in OvicDetectorTest 62 detector = new OvicDetector(labelsInputStream, model); in setUp() 67 int[] inputDims = detector.getInputDims(); in setUp() 105 assertThat(detector.detectByteBuffer(testImage, 1)).isTrue(); in ovicDetector_detectSuccess() 106 assertThat(detector.result).isNotNull(); in ovicDetector_detectSuccess() 113 assertThat(detector.detectByteBuffer(testImage, 1)).isTrue(); in ovicDetector_simpleBatchTest() 114 OvicDetectionResult result = detector.result; in ovicDetector_simpleBatchTest()
|
/external/autotest/client/site_tests/platform_AnomalyDetector/ |
D | control | 7 PURPOSE = "Checks that the anomaly detector is collecting log anomalies" 8 CRITERIA = "The detector must create a file when a test warning is produced" 16 This checks that the anomaly detector is operational by generating 17 a test kernel warning and verifying that the detector daemon collects it.
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/instr/ |
D | Instrumenter.java | 184 final ContentTypeDetector detector; in instrumentAll() local 186 detector = new ContentTypeDetector(input); in instrumentAll() 190 switch (detector.getType()) { in instrumentAll() 192 instrument(detector.getInputStream(), output, name); in instrumentAll() 195 return instrumentZip(detector.getInputStream(), output, name); in instrumentAll() 197 return instrumentGzip(detector.getInputStream(), output, name); in instrumentAll() 199 return instrumentPack200(detector.getInputStream(), output, name); in instrumentAll() 201 copy(detector.getInputStream(), output, name); in instrumentAll()
|
/external/webrtc/modules/remote_bitrate_estimator/ |
D | remote_bitrate_estimator_single_stream.cc | 54 detector(key_value_config) {} in Detector() 58 OveruseDetector detector; member 129 const BandwidthUsage prior_state = estimator->detector.State(); in IncomingPacket() 138 estimator->detector.State(), now_ms); in IncomingPacket() 139 estimator->detector.Detect(estimator->estimator.offset(), in IncomingPacket() 143 if (estimator->detector.State() == BandwidthUsage::kBwOverusing) { in IncomingPacket() 192 if (it->second->detector.State() > bw_state) { in UpdateEstimate() 193 bw_state = it->second->detector.State(); in UpdateEstimate()
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/detector/ |
D | BUILD | 27 "//tensorflow_lite_support/java/src/native/task/vision/detector:object_detector_native", 36 # tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/detector:object-detector 38 name = "object-detector",
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/analysis/ |
D | Analyzer.java | 186 final ContentTypeDetector detector; in analyzeAll() local 188 detector = new ContentTypeDetector(input); in analyzeAll() 192 switch (detector.getType()) { in analyzeAll() 194 analyzeClass(detector.getInputStream(), location); in analyzeAll() 197 return analyzeZip(detector.getInputStream(), location); in analyzeAll() 199 return analyzeGzip(detector.getInputStream(), location); in analyzeAll() 201 return analyzePack200(detector.getInputStream(), location); in analyzeAll()
|
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/ |
D | DetectorActivity.java | 100 private Classifier detector; field in DetectorActivity 131 detector = in onPreviewSizeChosen() 141 detector = in onPreviewSizeChosen() 154 detector = TensorFlowObjectDetectionAPIModel.create( in onPreviewSizeChosen() 222 if (detector != null) { in onPreviewSizeChosen() 223 final String statString = detector.getStatString(); in onPreviewSizeChosen() 287 final List<Classifier.Recognition> results = detector.recognizeImage(croppedBitmap); in processImage() 345 detector.enableStatLogging(debug); in onSetDebug()
|
/external/angle/third_party/abseil-cpp/absl/random/internal/ |
D | distribution_caller.h | 41 struct detector : std::false_type {}; struct 43 struct detector<Trait, absl::void_t<Trait<Args...>>, Args...> 51 using HasInvokeMock = typename detector<invoke_mock_t, void, URBG>::type;
|
/external/openscreen/third_party/abseil/src/absl/random/internal/ |
D | distribution_caller.h | 41 struct detector : std::false_type {}; struct 43 struct detector<Trait, absl::void_t<Trait<Args...>>, Args...> 51 using HasInvokeMock = typename detector<invoke_mock_t, void, URBG>::type;
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/internal/ |
D | distribution_caller.h | 41 struct detector : std::false_type {}; struct 43 struct detector<Trait, absl::void_t<Trait<Args...>>, Args...> 51 using HasInvokeMock = typename detector<invoke_mock_t, void, URBG>::type;
|
/external/libtextclassifier/abseil-cpp/absl/random/internal/ |
D | distribution_caller.h | 41 struct detector : std::false_type {}; struct 43 struct detector<Trait, absl::void_t<Trait<Args...>>, Args...> 51 using HasInvokeMock = typename detector<invoke_mock_t, void, URBG>::type;
|
/external/oboe/apps/OboeTester/app/src/main/cpp/ |
D | InputStreamCallbackAnalyzer.h | 36 for (auto detector : mPeakDetectors) { in reset() local 37 detector.reset(); in reset()
|
/external/dagger2/javatests/dagger/lint/ |
D | DaggerKotlinIssueDetectorTest.kt | 19 import com.android.tools.lint.detector.api.Detector 20 import com.android.tools.lint.detector.api.Issue
|
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/ |
D | object_model.h | 89 ObjectModel<DetectorType>(const DetectorType* const detector, 91 : ObjectModelBase(name), detector_(detector) {} in ObjectModelBase()
|
/external/webrtc/modules/audio_processing/transient/ |
D | transient_detector_unittest.cc | 66 TransientDetector detector(sample_rate_hz); in TEST() local 80 detector.Detect(buffer.get(), buffer_length, NULL, 0); in TEST()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/ |
D | bit_gen_ref.h | 90 struct detector : std::false_type {}; 92 struct detector<Trait, absl::void_t<Trait<Args...>>, Args...> 101 using HasInvokeMock = typename detector<invoke_mock_t, void, T>::type;
|