Searched refs:detector (Results 1 - 15 of 15) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGestureRecognizer.java104 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
106 detector.getFocusX(), detector.getFocusY());
110 public boolean onScale(ScaleGestureDetector detector) { argument
111 return mListener.onScale(detector.getFocusX(),
112 detector.getFocusY(), detector.getScaleFactor());
116 public void onScaleEnd(ScaleGestureDetector detector) { argument
/packages/apps/Camera2/src/com/android/camera/ui/
H A DFilmstripGestureRecognizer.java138 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
140 detector.getFocusX(), detector.getFocusY());
144 public boolean onScale(ScaleGestureDetector detector) { argument
145 return mListener.onScale(detector.getFocusX(),
146 detector.getFocusY(), detector.getScaleFactor());
150 public void onScaleEnd(ScaleGestureDetector detector) { argument
H A DPreviewOverlay.java178 // Pass the touch events to scale detector and gesture detector
245 * Custom scale gesture detector that ignores touch events when no
364 public boolean onScale(ScaleGestureDetector detector) { argument
365 final float sf = detector.getScaleFactor();
392 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
406 public void onScaleEnd(ScaleGestureDetector detector) { argument
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
H A DUtils.java38 final CountryDetector detector = (CountryDetector) context.getSystemService(
40 if (detector != null) {
41 final Country country = detector.detectCountry();
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPinchToOverviewListener.java82 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
120 public void onScaleEnd(ScaleGestureDetector detector) { argument
121 super.onScaleEnd(detector);
175 public boolean onScale(ScaleGestureDetector detector) { argument
184 float pinchDist = detector.getCurrentSpan() - detector.getPreviousSpan();
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageTinyPlanet.java51 public void onScaleEnd(ScaleGestureDetector detector) {
56 public boolean onScaleBegin(ScaleGestureDetector detector) {
63 public boolean onScale(ScaleGestureDetector detector) {
65 mScale *= detector.getScaleFactor();
H A DImageShow.java924 public boolean onScale(ScaleGestureDetector detector) { argument
928 scaleFactor = scaleFactor * detector.getScaleFactor();
937 float focusx = detector.getFocusX();
938 float focusy = detector.getFocusY();
950 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
955 mStartFocusX = detector.getFocusX();
956 mStartFocusY = detector.getFocusY();
962 public void onScaleEnd(ScaleGestureDetector detector) { argument
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DNfcImportVCardActivity.java106 VCardSourceDetector detector = null;
114 detector = new VCardSourceDetector();
116 parser.addInterpreter(detector);
124 detector = new VCardSourceDetector();
126 parser.addInterpreter(detector);
154 getString(R.string.nfc_vcard_file_name), detector.getEstimatedType(),
155 detector.getEstimatedCharset(), vcardVersion, counter.getCount());
H A DImportVCardActivity.java320 VCardSourceDetector detector = null;
333 detector = new VCardSourceDetector();
335 mVCardParser.addInterpreter(detector);
352 detector = new VCardSourceDetector();
354 mVCardParser.addInterpreter(detector);
376 detector.getEstimatedType(),
377 detector.getEstimatedCharset(),
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DListeningGestureDetector.java86 public boolean onScale(ScaleGestureDetector detector) {
88 "Received scale event: " + detector.getScaleFactor());
89 scaleHandler.accept(detector.getScaleFactor());
151 // continue forwarding to the GestureDetector. The detector needs to see the entire cluster
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMessageScrollView.java177 public boolean onScale(ScaleGestureDetector detector) { argument
182 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
189 public void onScaleEnd(ScaleGestureDetector detector) { argument
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DVCardRequest.java121 final VCardSourceDetector detector = new VCardSourceDetector();
128 detector, true, null);
131 final int estimatedVCardType = detector.getEstimatedType();
133 // Try again with the detector.
147 return doActuallyReadOneVCard(targetUri, true, detector, null, signal);
152 final VCardSourceDetector detector, final List<String> errorFileNameList,
155 int vcardType = detector.getEstimatedType();
151 doActuallyReadOneVCard(final Uri uri, final boolean showEntryParseProgress, final VCardSourceDetector detector, final List<String> errorFileNameList, final CountDownLatch signal) argument
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DCropView.java174 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
179 public boolean onScale(ScaleGestureDetector detector) { argument
182 mRenderer.scale *= detector.getScaleFactor();
189 public void onScaleEnd(ScaleGestureDetector detector) { argument
/packages/apps/Gallery/src/com/android/camera/
H A DCropImage.java521 FaceDetector detector = new FaceDetector(faceBitmap.getWidth(),
523 mNumFaces = detector.findFaces(faceBitmap, mFaces);
/packages/apps/Calendar/src/com/android/calendar/
H A DDayView.java4164 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
4166 float gestureCenterInPixels = detector.getFocusY() - DAY_HEADER_HEIGHT - mAlldayHeight;
4169 mStartingSpanY = Math.max(MIN_Y_SPAN, Math.abs(detector.getCurrentSpanY()));
4176 + "\tmCellHeight:" + mCellHeight + " SpanY:" + detector.getCurrentSpanY());
4183 public boolean onScale(ScaleGestureDetector detector) { argument
4184 float spanY = Math.max(MIN_Y_SPAN, Math.abs(detector.getCurrentSpanY()));
4200 int gestureCenterInPixels = (int) detector.getFocusY() - DAY_HEADER_HEIGHT - mAlldayHeight;
4208 + mCellHeight + " SpanY:" + detector.getCurrentSpanY());
4228 public void onScaleEnd(ScaleGestureDetector detector) { argument

Completed in 7221 milliseconds