HomeSort by relevance Sort by last modified time
    Searched refs:detector (Results 1 - 25 of 106) sorted by null

1 2 3 4 5

  /frameworks/base/services/tests/servicestests/src/com/android/server/location/
LocationBasedCountryDetectorTest.java 186 TestCountryDetector detector = new TestCountryDetector(country, provider); local
189 detector.setAcceptableProvider(acceptableProviders);
192 detector.setCountryListener(countryListener);
193 detector.detectCountry();
196 assertEquals(acceptableProviders.size(), detector.getListenersCount());
197 Map<String, LocationListener> listeners = detector.getListeners();
202 assertEquals(TestCountryDetector.TOTAL_PROVIDERS, detector.getListenersCount());
205 detector.notifyLocationFound();
207 assertEquals(0, detector.getListenersCount());
208 assertNull(detector.getTimer())
223 TestCountryDetector detector = new TestCountryDetector(country, provider); local
248 TestCountryDetector detector = new TestCountryDetector(country, provider); local
266 TestCountryDetector detector = new TestCountryDetector(country, provider, timeout) { local
288 TestCountryDetector detector = new TestCountryDetector(country, provider) { local
326 TestCountryDetector detector = new TestCountryDetector(country, provider, timeout); local
    [all...]
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
ZoomManager.java 25 // Bypass events through the detector to maintain its state. Used when
38 // gesture detector not to emit further scaling notifications
39 // related to this gesture. Thus, if detector events are enabled in
49 public boolean onScaleBegin(ScaleGestureDetector detector) {
57 public void onScaleEnd(ScaleGestureDetector detector) {
59 mContentViewCore.getContentViewGestureHandler().pinchEnd(detector.getEventTime());
64 public boolean onScale(ScaleGestureDetector detector) {
73 mContentViewCore.getContentViewGestureHandler().pinchBegin(detector.getEventTime(),
74 (int) detector.getFocusX(), (int) detector.getFocusY())
    [all...]
  /external/chromium/base/i18n/
icu_encoding_detection.cc 21 UCharsetDetector* detector = ucsdet_open(&status); local
22 ucsdet_setText(detector, text.data(), static_cast<int32_t>(text.length()),
24 const UCharsetMatch* match = ucsdet_detect(detector, &status);
28 ucsdet_close(detector);
40 UCharsetDetector* detector = ucsdet_open(&status); local
41 ucsdet_setText(detector, text.data(), static_cast<int32_t>(text.length()),
44 const UCharsetMatch** matches = ucsdet_detectAll(detector,
48 ucsdet_close(detector);
86 UEnumeration* detectable_encodings = ucsdet_getAllDetectableCharsets(detector,
100 ucsdet_close(detector);
    [all...]
  /external/chromium_org/base/i18n/
icu_encoding_detection.cc 21 UCharsetDetector* detector = ucsdet_open(&status); local
22 ucsdet_setText(detector, text.data(), static_cast<int32_t>(text.length()),
24 const UCharsetMatch* match = ucsdet_detect(detector, &status);
28 ucsdet_close(detector);
40 UCharsetDetector* detector = ucsdet_open(&status); local
41 ucsdet_setText(detector, text.data(), static_cast<int32_t>(text.length()),
44 const UCharsetMatch** matches = ucsdet_detectAll(detector,
48 ucsdet_close(detector);
86 UEnumeration* detectable_encodings = ucsdet_getAllDetectableCharsets(detector,
100 ucsdet_close(detector);
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/text/
TextEncodingDetectorICU.cpp 47 UCharsetDetector* detector = ucsdet_open(&status); local
50 ucsdet_enableInputFilter(detector, true);
51 ucsdet_setText(detector, data, static_cast<int32_t>(len), &status);
56 // the ICU detector itself.
61 // encoding with a highest confidence among the detector-specific
65 const UCharsetMatch** matches = ucsdet_detectAll(detector, &matchesCount, &status);
67 ucsdet_close(detector);
110 ucsdet_close(detector);
113 ucsdet_close(detector);
  /external/chromium_org/chrome/browser/captive_portal/
testing_utils.h 29 // Sets test time for captive portal detector.
32 // Advances test time for captive portal detector.
37 // Sets URL fetcher state and notifies portal detector.
42 void set_detector(CaptivePortalDetector* detector) { detector_ = detector; }
44 CaptivePortalDetector* detector() { return detector_; } function in class:captive_portal::CaptivePortalDetectorTestBase
testing_utils.cc 35 detector()->set_time_for_testing(time);
39 detector()->advance_time_for_testing(delta);
43 return detector()->FetchingURL();
63 detector()->OnURLFetchComplete(fetcher());
captive_portal_detector_unittest.cc 69 CaptivePortalClient client(detector());
71 detector()->DetectCaptivePortal(url,
93 CaptivePortalClient client(detector());
95 detector()->DetectCaptivePortal(url,
102 detector()->Cancel();
  /packages/apps/Camera2/src/com/android/camera/ui/
FilmStripGestureRecognizer.java 109 public boolean onScaleBegin(ScaleGestureDetector detector) {
111 detector.getFocusX(), detector.getFocusY());
115 public boolean onScale(ScaleGestureDetector detector) {
116 return mListener.onScale(detector.getFocusX(),
117 detector.getFocusY(), detector.getScaleFactor());
121 public void onScaleEnd(ScaleGestureDetector detector) {
ZoomRenderer.java 127 public boolean onScale(ScaleGestureDetector detector) {
128 final float sf = detector.getScaleFactor();
141 public boolean onScaleBegin(ScaleGestureDetector detector) {
151 public void onScaleEnd(ScaleGestureDetector detector) {
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
GestureRecognizer.java 104 public boolean onScaleBegin(ScaleGestureDetector detector) {
106 detector.getFocusX(), detector.getFocusY());
110 public boolean onScale(ScaleGestureDetector detector) {
111 return mListener.onScale(detector.getFocusX(),
112 detector.getFocusY(), detector.getScaleFactor());
116 public void onScaleEnd(ScaleGestureDetector detector) {
  /external/chromium_org/content/renderer/android/
phone_number_detector_unittest.cc 19 PhoneNumberDetector detector(region);
21 if (detector.FindContent(content_16.begin(), content_16.end(),
32 PhoneNumberDetector detector(region);
34 detector.FindContent(content_16.begin(), content_16.end(),
email_detector_unittest.cc 19 EmailDetector detector; local
21 if (detector.FindContent(content_16.begin(), content_16.end(),
  /development/samples/CrossCompatibility/src/com/example/android/touchexample/
VersionedGestureDetector.java 32 VersionedGestureDetector detector = null; local
34 detector = new CupcakeDetector();
36 detector = new EclairDetector();
38 detector = new FroyoDetector(context);
41 Log.d(TAG, "Created new " + detector.getClass());
42 detector.mListener = listener;
44 return detector;
147 @Override public boolean onScale(ScaleGestureDetector detector) {
148 mListener.onScale(detector.getScaleFactor());
  /external/chromium_org/chrome/browser/ui/webui/chromeos/login/
error_screen_handler.cc 28 NetworkPortalDetector* detector = NetworkPortalDetector::GetInstance(); local
29 if (NetworkPortalDetector::IsEnabledInCommandLine() && detector)
30 detector->EnableLazyDetection();
34 NetworkPortalDetector* detector = NetworkPortalDetector::GetInstance(); local
35 if (NetworkPortalDetector::IsEnabledInCommandLine() && detector)
36 detector->DisableLazyDetection();
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/
detection_unittest.py 43 detector = SCMDetector(filesystem, executive)
49 scm = OutputCapture().assert_outputs(self, detector.detect_scm_system, ["/"], expected_logs=expected_logs)
  /frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
TransformTestActivity.java 77 public boolean onScale(ScaleGestureDetector detector) {
78 float scale = detector.getScaleFactor();
97 float centerX = detector.getFocusX();
98 float centerY = detector.getFocusY();
115 public boolean onScaleBegin(ScaleGestureDetector detector) {
119 public void onScaleEnd(ScaleGestureDetector detector) {
120 mLastX = detector.getFocusX();
121 mLastY = detector.getFocusY();
  /packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
PreviewSurfaceView.java 44 * @param detector The gesture detector
46 public void setGestureListener(GestureDetector detector) {
47 mSimpleGestureDetector = detector;
52 // Let the gesture detector inspect all events.
  /packages/apps/ContactsCommon/src/com/android/contacts/common/
GeoUtil.java 40 final CountryDetector detector = local
42 if (detector != null) {
43 final Country country = detector.detectCountry();
  /prebuilts/devtools/tools/lib/
lint-api.jar 
lint-checks.jar 
  /packages/apps/Camera2/src/com/android/camera/
PreviewGestures.java 147 // If pie is not open, send touch events to gesture detector and scale
183 public boolean onScale(ScaleGestureDetector detector) {
184 return mZoom.onScale(detector);
188 public boolean onScaleBegin(ScaleGestureDetector detector) {
193 return mZoom.onScaleBegin(detector);
199 public void onScaleEnd(ScaleGestureDetector detector) {
200 mZoom.onScaleEnd(detector);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
NfcImportVCardActivity.java 89 VCardSourceDetector detector = null; local
97 detector = new VCardSourceDetector();
99 parser.addInterpreter(detector);
107 detector = new VCardSourceDetector();
109 parser.addInterpreter(detector);
133 getString(R.string.nfc_vcard_file_name), detector.getEstimatedType(),
134 detector.getEstimatedCharset(), vcardVersion, counter.getCount());
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
ProjectLintConfiguration.java 25 import com.android.tools.lint.detector.api.Issue;
26 import com.android.tools.lint.detector.api.Project;
27 import com.android.tools.lint.detector.api.Severity;
  /packages/apps/Camera/src/com/android/camera/ui/
ZoomRenderer.java 127 public boolean onScale(ScaleGestureDetector detector) {
128 final float sf = detector.getScaleFactor();
141 public boolean onScaleBegin(ScaleGestureDetector detector) {
151 public void onScaleEnd(ScaleGestureDetector detector) {

Completed in 387 milliseconds

1 2 3 4 5