HomeSort by relevance Sort by last modified time
    Searched refs:detector (Results 1 - 25 of 111) 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 29 // Bypass events through the detector to maintain its state. Used when
36 long getEventTime(ScaleGestureDetector detector) {
39 assert detector.getEventTime() == 0 || detector.getEventTime() == mCurrentEventTime;
49 // gesture detector not to emit further scaling notifications
50 // related to this gesture. Thus, if detector events are enabled in
60 public boolean onScaleBegin(ScaleGestureDetector detector) {
68 public void onScaleEnd(ScaleGestureDetector detector) {
70 mContentViewCore.getContentViewGestureHandler().pinchEnd(getEventTime(detector));
75 public boolean onScale(ScaleGestureDetector detector) {
    [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/platform/text/
TextEncodingDetector.cpp 46 UCharsetDetector* detector = ucsdet_open(&status); local
49 ucsdet_enableInputFilter(detector, true);
50 ucsdet_setText(detector, data, static_cast<int32_t>(length), &status);
55 // the ICU detector itself.
60 // encoding with a highest confidence among the detector-specific
64 const UCharsetMatch** matches = ucsdet_detectAll(detector, &matchesCount, &status);
66 ucsdet_close(detector);
109 ucsdet_close(detector);
112 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();
  /external/chromium_org/ash/system/chromeos/power/
video_activity_notifier.cc 21 VideoActivityNotifier::VideoActivityNotifier(VideoDetector* detector)
22 : detector_(detector) {
user_activity_notifier.h 22 explicit UserActivityNotifier(UserActivityDetector* detector);
video_activity_notifier.h 19 explicit VideoActivityNotifier(VideoDetector* detector);
user_activity_notifier.cc 25 UserActivityNotifier::UserActivityNotifier(UserActivityDetector* detector)
26 : detector_(detector) {
  /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) {
  /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/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 
  /prebuilts/gradle-plugin/com/android/tools/lint/lint-api/22.2.0/
lint-api-22.2.0.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());

Completed in 259 milliseconds

1 2 3 4 5