/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/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/Gallery2/src/com/android/camera/ |
D | MediaSaveService.java | 85 public void addImage(final byte[] data, String title, long date, Location loc, in addImage() argument 93 (loc == null) ? null : new Location(loc), in addImage() 128 private Location loc; field in MediaSaveService.ImageSaveTask 135 public ImageSaveTask(byte[] data, String title, long date, Location loc, in ImageSaveTask() argument 141 this.loc = loc; in ImageSaveTask() 158 resolver, title, date, loc, orientation, exif, data, width, height); in doInBackground()
|
D | Util.java | 709 public static void setGpsParameters(Parameters parameters, Location loc) { in setGpsParameters() argument 717 if (loc != null) { in setGpsParameters() 718 double lat = loc.getLatitude(); in setGpsParameters() 719 double lon = loc.getLongitude(); in setGpsParameters() 726 parameters.setGpsProcessingMethod(loc.getProvider().toUpperCase()); in setGpsParameters() 727 if (loc.hasAltitude()) { in setGpsParameters() 728 parameters.setGpsAltitude(loc.getAltitude()); in setGpsParameters() 735 if (loc.getTime() != 0) { in setGpsParameters() 738 long utcTimeSeconds = loc.getTime() / 1000; in setGpsParameters() 742 loc = null; in setGpsParameters()
|
D | VideoModule.java | 464 Location loc = mLocationManager.getCurrentLocation(); in onSingleTapUp() local 465 Util.setGpsParameters(mParameters, loc); in onSingleTapUp() 469 mActivity.mCameraDevice.takePicture(null, null, null, new JpegPictureCallback(loc)); in onSingleTapUp() 1236 Location loc = mLocationManager.getCurrentLocation(); in setRecordLocation() local 1237 if (loc != null) { in setRecordLocation() 1238 mMediaRecorder.setLocation((float) loc.getLatitude(), in setRecordLocation() 1239 (float) loc.getLongitude()); in setRecordLocation() 1380 Location loc = mLocationManager.getCurrentLocation(); in generateVideoFilename() local 1381 if (loc != null) { in generateVideoFilename() 1382 mCurrentVideoValues.put(Video.Media.LATITUDE, loc.getLatitude()); in generateVideoFilename() [all …]
|
D | PhotoModule.java | 778 public JpegPictureCallback(Location loc) { in JpegPictureCallback() argument 779 mLocation = loc; in JpegPictureCallback() 1015 Location loc = mLocationManager.getCurrentLocation(); in capture() local 1016 Util.setGpsParameters(mParameters, loc); in capture() 1021 new JpegPictureCallback(loc), mCameraState, in capture()
|
/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()
|
D | FolderIcon.java | 260 public void getCell(int[] loc) { in getCell() argument 261 loc[0] = mCellX; in getCell() 262 loc[1] = mCellY; in getCell()
|
D | ButtonDropTarget.java | 163 public void getLocationInDragLayer(int[] loc) { in getLocationInDragLayer() argument 164 mLauncher.getDragLayer().getLocationInDragLayer(this, loc); in getLocationInDragLayer()
|
D | Workspace.java | 3203 private void getFinalPositionForDropAnimation(int[] loc, float[] scaleXY, 3212 loc[0] = r.left; 3213 loc[1] = r.top; 3217 mLauncher.getDragLayer().getDescendantCoordRelativeToSelf(layout, loc); 3232 loc[0] -= (dragView.getMeasuredWidth() - cellLayoutScale * r.width()) / 2; 3233 loc[1] -= (dragView.getMeasuredHeight() - cellLayoutScale * r.height()) / 2; 3877 public void getLocationInDragLayer(int[] loc) { 3878 mLauncher.getDragLayer().getLocationInDragLayer(this, loc);
|
/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/Settings/src/com/android/settings/tts/ |
D | TtsEngineSettingsFragment.java | 207 Locale loc = null; in updateDefaultLocalePref() local 209 loc = new Locale(langCountryVariant[0]); in updateDefaultLocalePref() 211 loc = new Locale(langCountryVariant[0], langCountryVariant[1]); in updateDefaultLocalePref() 213 loc = new Locale(langCountryVariant[0], langCountryVariant[1], in updateDefaultLocalePref() 216 if (loc != null){ in updateDefaultLocalePref() 218 loc.getDisplayName(), availableLangs.get(i))); in updateDefaultLocalePref()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RadioInfo.java | 473 GsmCellLocation loc = (GsmCellLocation)location; in updateLocation() local 474 int lac = loc.getLac(); in updateLocation() 475 int cid = loc.getCid(); in updateLocation() 482 CdmaCellLocation loc = (CdmaCellLocation)location; in updateLocation() local 483 int bid = loc.getBaseStationId(); in updateLocation() 484 int sid = loc.getSystemId(); in updateLocation() 485 int nid = loc.getNetworkId(); in updateLocation() 486 int lat = loc.getBaseStationLatitude(); in updateLocation() 487 int lon = loc.getBaseStationLongitude(); in updateLocation()
|
D | SettingsSafetyLegalActivity.java | 55 String loc = String.format("locale=%s-%s", language, country); in onCreate() local 57 userSafetylegalUrl = String.format("%s&%s", userSafetylegalUrl, loc); in onCreate()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
D | EasSyncService.java | 411 String loc; in getValidateRedirect() local 413 loc = locHeader.getValue(); in getValidateRedirect() 415 mHostAddress = Uri.parse(loc).getHost(); in getValidateRedirect() 418 userLog("Redirecting to: " + loc); in getValidateRedirect() 600 String loc = locHeader.getValue(); in getRedirect() local 603 if (loc != null && loc.startsWith("http")) { in getRedirect() 604 post.setURI(URI.create(loc)); in getRedirect()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertUtils.java | 191 String loc; 192 if (location != null && !TextUtils.isEmpty(loc = location.trim())) { 194 sb.append(loc);
|