/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/apps/Camera2/src/com/android/camera/ |
D | MediaSaverImpl.java | 69 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage() argument 71 addImage(data, title, date, loc, width, height, orientation, exif, l, in addImage() 76 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage() argument 84 (loc == null) ? null : new Location(loc), in addImage() 95 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, in addImage() argument 99 addImage(data, title, date, loc, 0, 0, orientation, exif, l, in addImage() 103 public void addImage(final byte[] data, String title, Location loc, int width, int height, in addImage() argument 105 addImage(data, title, System.currentTimeMillis(), loc, width, height, orientation, exif, l, in addImage() 140 private final Location loc; field in MediaSaverImpl.ImageSaveTask 148 public ImageSaveTask(byte[] data, String title, long date, Location loc, in ImageSaveTask() argument [all …]
|
D | VideoModule.java | 413 Location loc = mLocationManager.getCurrentLocation(); in takeASnapshot() local 414 CameraUtil.setGpsParameters(mCameraSettings, loc); in takeASnapshot() 419 null, null, null, new JpegPictureCallback(loc)); in takeASnapshot() 1203 Location loc = mLocationManager.getCurrentLocation(); in setRecordLocation() local 1204 if (loc != null) { in setRecordLocation() 1205 mMediaRecorder.setLocation((float) loc.getLatitude(), in setRecordLocation() 1206 (float) loc.getLongitude()); in setRecordLocation() 1236 Location loc = mLocationManager.getCurrentLocation(); in generateVideoValues() local 1237 if (loc != null) { in generateVideoValues() 1238 mCurrentVideoValues.put(Video.Media.LATITUDE, loc.getLatitude()); in generateVideoValues() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | BaseWidgetSheet.java | 156 int[] loc = new int[2]; in beginDraggingWidget() local 157 getPopupContainer().getLocationInDragLayer(image, loc); in beginDraggingWidget() 160 image.getWidth(), new Point(loc[0], loc[1]), this, new DragOptions()); in beginDraggingWidget() 163 int[] loc = new int[2]; in beginDraggingWidget() local 164 getPopupContainer().getLocationInDragLayer(preview, loc); in beginDraggingWidget() 168 new Point(loc[0], loc[1]), this, new DragOptions()); in beginDraggingWidget()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | BaseDragLayer.java | 379 public float getLocationInDragLayer(View child, int[] loc) { in getLocationInDragLayer() argument 380 loc[0] = 0; in getLocationInDragLayer() 381 loc[1] = 0; in getLocationInDragLayer() 382 return getDescendantCoordRelativeToSelf(child, loc); in getLocationInDragLayer() 433 int[] loc = new int[2]; in getViewRectRelativeToSelf() local 434 getLocationInWindow(loc); in getViewRectRelativeToSelf() 435 int x = loc[0]; in getViewRectRelativeToSelf() 436 int y = loc[1]; in getViewRectRelativeToSelf() 438 v.getLocationInWindow(loc); in getViewRectRelativeToSelf() 439 int vX = loc[0]; in getViewRectRelativeToSelf() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/ |
D | DriverFuzzTest.cpp | 69 DataLocation loc = {}; in createSubgraph() local 71 loc = { in createSubgraph() 79 loc = { in createSubgraph() 87 loc = { in createSubgraph() 106 .location = loc, in createSubgraph() 191 DataLocation loc = {.poolIndex = kInputPoolIndex, in createRequest() local 195 inputs[i] = {.hasNoValue = false, .location = loc, .dimensions = {}}; in createRequest() 213 DataLocation loc = {.poolIndex = kOutputPoolIndex, in createRequest() local 217 outputs[i] = {.hasNoValue = false, .location = loc, .dimensions = {}}; in createRequest()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | MediaSaver.java | 86 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage() argument 108 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage() argument 126 void addImage(byte[] data, String title, long date, Location loc, int orientation, in addImage() argument 146 void addImage(byte[] data, String title, Location loc, int width, int height, int orientation, in addImage() argument
|
/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/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowTextToSpeech.java | 67 protected int setLanguage(final Locale loc) { in setLanguage() argument 68 return sInstance.setLanguage(loc); in setLanguage() 92 protected int isLanguageAvailable(final Locale loc) { in isLanguageAvailable() argument 93 return sInstance.isLanguageAvailable(loc); in isLanguageAvailable()
|
/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/modules/NeuralNetworks/runtime/ |
D | ExecutionPlan.cpp | 563 const auto& loc = it->second; in mapInputsAndOutputs() local 564 executor->setInputFromMemory(stepInputIndex, temporaryMemory, loc.offset, in mapInputsAndOutputs() 565 loc.paddedLength); in mapInputsAndOutputs() 566 } else if (auto loc = dynamicTemporaries.lookup(sourceOperandIndex); loc != std::nullopt) { in mapInputsAndOutputs() local 567 executor->setInputFromMemory(stepInputIndex, loc->memory, loc->offset, in mapInputsAndOutputs() 568 loc->paddedLength, *loc->dimensions); in mapInputsAndOutputs() 582 const auto& loc = it->second; in mapInputsAndOutputs() local 583 executor->setInputFromMemory(stepInputIndex, loc.memory, loc.offset, loc.length); in mapInputsAndOutputs() 593 const auto& loc = it->second; in mapInputsAndOutputs() local 594 executor->setOutputFromMemory(stepOutputIndex, temporaryMemory, loc.offset, in mapInputsAndOutputs() [all …]
|
/packages/modules/adb/fastdeploy/deployagent/src/com/android/fastdeploy/ |
D | ApkArchive.java | 187 private byte[] readMetadata(Location loc) throws IOException { in readMetadata() argument 188 byte[] payload = new byte[(int) loc.size]; in readMetadata() 189 ByteBuffer buffer = mChannel.map(FileChannel.MapMode.READ_ONLY, loc.offset, loc.size); in readMetadata()
|
/packages/services/Car/cpp/evs/support_library/ |
D | RenderDirectView.cpp | 81 GLint loc = glGetUniformLocation(mShaderProgram, "cameraMat"); in drawFrame() local 82 if (loc < 0) { in drawFrame() 87 glUniformMatrix4fv(loc, 1, false, identityMatrix.asArray()); in drawFrame()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 770 public static void setGpsParameters(CameraSettings settings, Location loc) { in setGpsParameters() argument 778 if (loc != null) { in setGpsParameters() 779 lat = loc.getLatitude(); in setGpsParameters() 780 lon = loc.getLongitude(); in setGpsParameters() 797 long utcTimeSeconds = loc.getTime() / 1000; in setGpsParameters() 798 settings.setGpsData(new CameraSettings.GpsData(loc.getLatitude(), loc.getLongitude(), in setGpsParameters() 799 (loc.hasAltitude() ? loc.getAltitude() : 0), in setGpsParameters() 801 loc.getProvider().toUpperCase())); in setGpsParameters()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 404 int[] loc = new int[2]; in handleAccessibleDrop() local 406 loc[0] = clickedTarget.getWidth() / 2; in handleAccessibleDrop() 407 loc[1] = clickedTarget.getHeight() / 2; in handleAccessibleDrop() 409 loc[0] = dropLocation.centerX(); in handleAccessibleDrop() 410 loc[1] = dropLocation.centerY(); in handleAccessibleDrop() 413 mLauncher.getDragLayer().getDescendantCoordRelativeToSelf(clickedTarget, loc); in handleAccessibleDrop() 414 mLauncher.getDragController().completeAccessibleDrag(loc); in handleAccessibleDrop()
|
/packages/services/Car/cpp/evs/apps/default/ |
D | RenderDirectView.cpp | 170 GLint loc = glGetUniformLocation(mShaderProgram, "cameraMat"); in drawFrame() local 171 if (loc < 0) { in drawFrame() 176 glUniformMatrix4fv(loc, 1, false, identityMatrix.asArray()); in drawFrame()
|
D | RenderTopView.cpp | 274 GLint loc = glGetUniformLocation(mPgmAssets.simpleTexture, "cameraMat"); in renderCarTopView() local 275 glUniformMatrix4fv(loc, 1, false, orthoMatrix.asArray()); in renderCarTopView()
|
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | StructInetDiagSockId.java | 53 public StructInetDiagSockId(InetSocketAddress loc, InetSocketAddress rem) { in StructInetDiagSockId() argument 54 mLocSocketAddress = loc; in StructInetDiagSockId()
|
/packages/modules/adb/tls/ |
D | adb_ca_list.cpp | 43 int len, int loc, int set) { in X509_NAME_add_entry_by_NID_const() argument 44 return X509_NAME_add_entry_by_NID(name, nid, type, const_cast<unsigned char*>(bytes), len, loc, in X509_NAME_add_entry_by_NID_const()
|
/packages/modules/adb/fastdeploy/deploypatchgenerator/ |
D | apk_archive.cpp | 204 std::string ApkArchive::ReadMetadata(Location loc) const { in ReadMetadata() 205 FileRegion mapped(fd_, loc.offset, loc.size); in ReadMetadata()
|
D | apk_archive.h | 58 std::string ReadMetadata(Location loc) const;
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | FullScreenAnimation.java | 358 int[] loc = new int[2]; in startAnimation() local 359 mTouchForwardingLayout.getLocationInWindow(loc); in startAnimation() 367 - (loc[1] + mTouchForwardingLayout.getHeight() / 2.0)); in startAnimation()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 488 InetSocketAddress loc = new InetSocketAddress(s.getLocalAddress(), s.getLocalPort()); in checkConnectionOwnerUidUdp() local 490 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_UDP, loc, rem); in checkConnectionOwnerUidUdp() 496 InetSocketAddress loc = new InetSocketAddress(s.getLocalAddress(), s.getLocalPort()); in checkConnectionOwnerUidTcp() local 498 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_TCP, loc, rem); in checkConnectionOwnerUidTcp() 840 InetSocketAddress loc = new InetSocketAddress(s.getLocalAddress(), s.getLocalPort()); in testGetConnectionOwnerUidSecurity() local 843 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_TCP, loc, rem); in testGetConnectionOwnerUidSecurity()
|