/packages/apps/Gallery2/jni/filters/ |
D | edge.c | 56 int loc = j * row_stride + k * 4; in JNIFUNCF() local 62 tmp += *(ptr + (loc - row_stride + 4 + l)); in JNIFUNCF() 63 tmp += *(ptr + (loc + 4 + l)) * 2.0f; in JNIFUNCF() 64 tmp += *(ptr + (loc + row_stride + 4 + l)); in JNIFUNCF() 65 tmp -= *(ptr + (loc - row_stride - 4 + l)); in JNIFUNCF() 66 tmp -= *(ptr + (loc - 4 + l)) * 2.0f; in JNIFUNCF() 67 tmp -= *(ptr + (loc + row_stride - 4 + l)); in JNIFUNCF() 76 tmp -= *(ptr + (loc - row_stride - 4 + l)); in JNIFUNCF() 77 tmp -= *(ptr + (loc - row_stride + l)) * 2.0f; in JNIFUNCF() 78 tmp -= *(ptr + (loc - row_stride + 4 + l)); in JNIFUNCF() [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndfdic.c | 334 word->stem.loc = loctset->loct; in njd_f_get_word() 358 NJ_SEARCH_LOCATION *loc; in njd_f_get_stroke() local 369 loc = &word->stem.loc; in njd_f_get_stroke() 370 data = STEM_AREA_TOP_ADDR(loc->handle) + loc->current; in njd_f_get_stroke() 373 area = YOMI_AREA_TOP_ADDR(loc->handle) + DATA_YOMI(data); in njd_f_get_stroke() 375 if (YOMI_INDX_CNT(loc->handle) == 0) { in njd_f_get_stroke() 392 len = convert_to_yomi(loc->handle, area, DATA_YOMI_SIZE(data), stroke, size); in njd_f_get_stroke() 404 NJ_SEARCH_LOCATION *loc; in njd_f_get_candidate() local 412 loc = &word->stem.loc; in njd_f_get_candidate() 413 data = STEM_AREA_TOP_ADDR(loc->handle) + loc->current; in njd_f_get_candidate() [all …]
|
D | ndapi.c | 486 if (result->word.stem.loc.handle == NULL) { in njd_get_stroke() 490 dictype = NJ_GET_DIC_TYPE_EX(result->word.stem.loc.type, result->word.stem.loc.handle); in njd_get_stroke() 499 if (GET_LOCATION_OPERATION(result->word.stem.loc.status) != NJ_CUR_OP_COMP) { in njd_get_stroke() 544 if (result->word.stem.loc.handle == NULL) { in njd_get_candidate() 548 dictype = NJ_GET_DIC_TYPE_EX(result->word.stem.loc.type, result->word.stem.loc.handle); in njd_get_candidate() 896 word->stem.loc.handle = NULL; in njd_init_word() 897 word->stem.loc.type = NJ_DIC_H_TYPE_NORMAL; in njd_init_word() 898 word->stem.loc.current = 0; in njd_init_word() 899 word->stem.loc.top = 0; in njd_init_word() 900 word->stem.loc.bottom = 0; in njd_init_word() [all …]
|
D | ndbdic.c | 1383 word->stem.loc = loctset->loct; in njd_b_get_word() 1390 NJ_SEARCH_LOCATION *loc; in njd_b_get_candidate() local 1404 if ((GET_LOCATION_OPERATION(word->stem.loc.status) == NJ_CUR_OP_COMP) || in njd_b_get_candidate() 1405 (GET_LOCATION_OPERATION(word->stem.loc.status) == NJ_CUR_OP_FORE)) { in njd_b_get_candidate() 1408 loc = &word->stem.loc; in njd_b_get_candidate() 1409 data = STEM_AREA_TOP_ADDR(loc->handle); in njd_b_get_candidate() 1410 data += loc->top + loc->current; in njd_b_get_candidate() 1413 get_stem_cand_data(loc->handle, data, &stem_set); in njd_b_get_candidate() 1424 if (GET_LOCATION_OPERATION(word->stem.loc.status) == NJ_CUR_OP_COMP) { in njd_b_get_candidate() 1436 next = get_stem_next(loc->handle, data); in njd_b_get_candidate() [all …]
|
D | ndldic.c | 1743 word->stem.loc = loctset->loct; in njd_l_get_word() 1745 word->stem.loc.current &= 0x0000ffff; in njd_l_get_word() 1746 word->stem.loc.current |= ((NJ_UINT32)que_id << 16); in njd_l_get_word() 1774 que_id = (NJ_UINT16)(word->stem.loc.current >> 16); in njd_l_get_stroke() 1786 str = get_string(iwnn, word->stem.loc.handle, que_id, &slen); in njd_l_get_stroke() 1812 que_id = (NJ_UINT16)(word->stem.loc.current >> 16); in njd_l_get_candidate() 1821 str = get_hyouki(iwnn, word->stem.loc.handle, que_id, &slen); in njd_l_get_candidate()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | MediaSaverImpl.java | 58 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage() argument 66 (loc == null) ? null : new Location(loc), in addImage() 77 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, in addImage() argument 81 addImage(data, title, date, loc, 0, 0, orientation, exif, l, resolver); in addImage() 84 public void addImage(final byte[] data, String title, Location loc, int width, int height, in addImage() argument 87 addImage(data, title, System.currentTimeMillis(), loc, width, height, in addImage() 124 private final Location loc; field in MediaSaverImpl.ImageSaveTask 131 public ImageSaveTask(byte[] data, String title, long date, Location loc, in ImageSaveTask() argument 137 this.loc = loc; in ImageSaveTask() 162 resolver, title, date, loc, orientation, exif, data, width, height); in doInBackground()
|
D | VideoModule.java | 419 Location loc = mLocationManager.getCurrentLocation(); in takeASnapshot() local 420 CameraUtil.setGpsParameters(mCameraSettings, loc); in takeASnapshot() 425 null, null, null, new JpegPictureCallback(loc)); in takeASnapshot() 1200 Location loc = mLocationManager.getCurrentLocation(); in setRecordLocation() local 1201 if (loc != null) { in setRecordLocation() 1202 mMediaRecorder.setLocation((float) loc.getLatitude(), in setRecordLocation() 1203 (float) loc.getLongitude()); in setRecordLocation() 1238 Location loc = mLocationManager.getCurrentLocation(); in generateVideoFilename() local 1239 if (loc != null) { in generateVideoFilename() 1240 mCurrentVideoValues.put(Video.Media.LATITUDE, loc.getLatitude()); in generateVideoFilename() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | MediaSaver.java | 65 public void addImage(final byte[] data, String title, long date, Location loc, in addImage() argument 71 r.loc = (loc == null) ? null : new Location(loc); // make a copy in addImage() 113 Uri uri = storeImage(r.data, r.title, r.date, r.loc, r.width, r.height, in run() 133 Location loc, int width, int height, int orientation) { in storeImage() argument 134 Uri uri = Storage.addImage(mContentResolver, title, date, loc, in storeImage() 144 Location loc; field in MediaSaver.SaveRequest
|
D | Util.java | 708 public static void setGpsParameters(Parameters parameters, Location loc) { in setGpsParameters() argument 716 if (loc != null) { in setGpsParameters() 717 double lat = loc.getLatitude(); in setGpsParameters() 718 double lon = loc.getLongitude(); in setGpsParameters() 725 parameters.setGpsProcessingMethod(loc.getProvider().toUpperCase()); in setGpsParameters() 726 if (loc.hasAltitude()) { in setGpsParameters() 727 parameters.setGpsAltitude(loc.getAltitude()); in setGpsParameters() 734 if (loc.getTime() != 0) { in setGpsParameters() 737 long utcTimeSeconds = loc.getTime() / 1000; in setGpsParameters() 741 loc = null; in setGpsParameters()
|
D | VideoModule.java | 1269 Location loc = mLocationManager.getCurrentLocation(); in setRecordLocation() local 1270 if (loc != null) { in setRecordLocation() 1271 mMediaRecorder.setLocation((float) loc.getLatitude(), in setRecordLocation() 1272 (float) loc.getLongitude()); in setRecordLocation() 1412 Location loc = mLocationManager.getCurrentLocation(); in generateVideoFilename() local 1413 if (loc != null) { in generateVideoFilename() 1414 mCurrentVideoValues.put(Video.Media.LATITUDE, loc.getLatitude()); in generateVideoFilename() 1415 mCurrentVideoValues.put(Video.Media.LONGITUDE, loc.getLongitude()); in generateVideoFilename() 2483 Location loc = mLocationManager.getCurrentLocation(); in onSingleTapUp() local 2484 Util.setGpsParameters(mParameters, loc); in onSingleTapUp() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DragLayer.java | 306 public float getLocationInDragLayer(View child, int[] loc) { in getLocationInDragLayer() argument 307 loc[0] = 0; in getLocationInDragLayer() 308 loc[1] = 0; in getLocationInDragLayer() 309 return getDescendantCoordRelativeToSelf(child, loc); in getLocationInDragLayer() 344 int[] loc = new int[2]; in getViewRectRelativeToSelf() local 345 getLocationInWindow(loc); in getViewRectRelativeToSelf() 346 int x = loc[0]; in getViewRectRelativeToSelf() 347 int y = loc[1]; in getViewRectRelativeToSelf() 349 v.getLocationInWindow(loc); in getViewRectRelativeToSelf() 350 int vX = loc[0]; in getViewRectRelativeToSelf() [all …]
|
D | DragController.java | 179 int[] loc = mCoordinatesTemp; in startDrag() local 180 mLauncher.getDragLayer().getLocationInDragLayer(v, loc); in startDrag() 183 int dragLayerX = loc[0] + v.getPaddingLeft() + viewExtraPaddingLeft + in startDrag() 185 int dragLayerY = loc[1] + v.getPaddingTop() + viewExtraPaddingTop + in startDrag()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 633 public static void setGpsParameters(Parameters parameters, Location loc) { in setGpsParameters() argument 641 if (loc != null) { in setGpsParameters() 642 double lat = loc.getLatitude(); in setGpsParameters() 643 double lon = loc.getLongitude(); in setGpsParameters() 650 parameters.setGpsProcessingMethod(loc.getProvider().toUpperCase()); in setGpsParameters() 651 if (loc.hasAltitude()) { in setGpsParameters() 652 parameters.setGpsAltitude(loc.getAltitude()); in setGpsParameters() 659 if (loc.getTime() != 0) { in setGpsParameters() 662 long utcTimeSeconds = loc.getTime() / 1000; in setGpsParameters() 666 loc = null; in setGpsParameters()
|
D | VideoCamera.java | 1209 Location loc = mLocationManager.getCurrentLocation(); in initializeRecorder() local 1210 if (loc != null) { in initializeRecorder() 1211 mMediaRecorder.setLocation((float) loc.getLatitude(), in initializeRecorder() 1212 (float) loc.getLongitude()); in initializeRecorder() 1407 Location loc = mLocationManager.getCurrentLocation(); in generateVideoFilename() local 1408 if (loc != null) { in generateVideoFilename() 1409 mCurrentVideoValues.put(Video.Media.LATITUDE, loc.getLatitude()); in generateVideoFilename() 1410 mCurrentVideoValues.put(Video.Media.LONGITUDE, loc.getLongitude()); in generateVideoFilename() 2381 Location loc = mLocationManager.getCurrentLocation(); in onTouch() local 2382 Util.setGpsParameters(mParameters, loc); in onTouch() [all …]
|
D | Camera.java | 747 public JpegPictureCallback(Location loc) { in JpegPictureCallback() argument 748 mLocation = loc; in JpegPictureCallback() 848 Location loc; field in Camera.SaveRequest 887 public void addImage(final byte[] data, Location loc, int width, in addImage() argument 891 r.loc = (loc == null) ? null : new Location(loc); // make a copy in addImage() 935 storeImage(r.data, r.loc, r.width, r.height, r.dateTaken, in run() 991 private void storeImage(final byte[] data, Location loc, int width, in storeImage() argument 996 loc, orientation, data, width, height); in storeImage() 1051 Location loc = mLocationManager.getCurrentLocation(); in capture() local 1052 Util.setGpsParameters(mParameters, loc); in capture() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DragLayer.java | 360 public float getLocationInDragLayer(View child, int[] loc) { in getLocationInDragLayer() argument 361 loc[0] = 0; in getLocationInDragLayer() 362 loc[1] = 0; in getLocationInDragLayer() 363 return getDescendantCoordRelativeToSelf(child, loc); in getLocationInDragLayer() 396 int[] loc = new int[2]; in getViewRectRelativeToSelf() local 397 getLocationInWindow(loc); in getViewRectRelativeToSelf() 398 int x = loc[0]; in getViewRectRelativeToSelf() 399 int y = loc[1]; in getViewRectRelativeToSelf() 401 v.getLocationInWindow(loc); in getViewRectRelativeToSelf() 402 int vX = loc[0]; in getViewRectRelativeToSelf() [all …]
|
D | DragController.java | 175 int[] loc = mCoordinatesTemp; in startDrag() local 176 mLauncher.getDragLayer().getLocationInDragLayer(v, loc); in startDrag() 179 int dragLayerX = loc[0] + v.getPaddingLeft() + viewExtraPaddingLeft + in startDrag() 181 int dragLayerY = loc[1] + v.getPaddingTop() + viewExtraPaddingTop + in startDrag()
|
D | ButtonDropTarget.java | 160 public void getLocationInDragLayer(int[] loc) { in getLocationInDragLayer() argument 161 mLauncher.getDragLayer().getLocationInDragLayer(this, loc); in getLocationInDragLayer()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 818 public static void setGpsParameters(CameraSettings settings, Location loc) { in setGpsParameters() argument 826 if (loc != null) { in setGpsParameters() 827 lat = loc.getLatitude(); in setGpsParameters() 828 lon = loc.getLongitude(); in setGpsParameters() 845 long utcTimeSeconds = loc.getTime() / 1000; in setGpsParameters() 846 settings.setGpsData(new CameraSettings.GpsData(loc.getLatitude(), loc.getLongitude(), in setGpsParameters() 847 (loc.hasAltitude() ? loc.getAltitude() : 0), in setGpsParameters() 849 loc.getProvider().toUpperCase())); in setGpsParameters()
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
D | EasAutoDiscover.java | 188 final String loc = response.getRedirectAddress(); in handleResponse() local 189 if (loc != null && loc.startsWith("http")) { in handleResponse() 190 LogUtils.d(TAG, "Posting autodiscover to redirect: " + loc); in handleResponse() 191 mRedirectUri = loc; in handleResponse() 194 LogUtils.w(TAG, "Invalid redirect %s", loc); in handleResponse()
|
D | EasSyncCalendar.java | 487 String loc = entityValues.getAsString(Events.EVENT_LOCATION); in sendEvent() local 488 if (!TextUtils.isEmpty(loc)) { in sendEvent() 491 loc = Utility.replaceBareLfWithCrlf(loc); in sendEvent() 493 s.data(Tags.CALENDAR_LOCATION, loc); in sendEvent()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RadioInfo.java | 491 GsmCellLocation loc = (GsmCellLocation)location; in updateLocation() local 492 int lac = loc.getLac(); in updateLocation() 493 int cid = loc.getCid(); in updateLocation() 500 CdmaCellLocation loc = (CdmaCellLocation)location; in updateLocation() local 501 int bid = loc.getBaseStationId(); in updateLocation() 502 int sid = loc.getSystemId(); in updateLocation() 503 int nid = loc.getNetworkId(); in updateLocation() 504 int lat = loc.getBaseStationLatitude(); in updateLocation() 505 int lon = loc.getBaseStationLongitude(); in updateLocation()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ModeSelectorItem.java | 239 public void getIconCenterLocationInWindow(int[] loc) { in getIconCenterLocationInWindow() argument 240 mIcon.getLocationInWindow(loc); in getIconCenterLocationInWindow() 241 loc[0] += mMinVisibleWidth / 2; in getIconCenterLocationInWindow() 242 loc[1] += mMinVisibleWidth / 2; in getIconCenterLocationInWindow()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | MediaSaver.java | 84 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage() argument 104 void addImage(byte[] data, String title, long date, Location loc, int orientation, in addImage() argument 126 void addImage(byte[] data, String title, Location loc, int width, int height, int orientation, in addImage() argument
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertUtils.java | 194 String loc; 195 if (location != null && !TextUtils.isEmpty(loc = location.trim())) { 197 sb.append(loc);
|