/packages/modules/Bluetooth/tools/pdl/src/ |
D | ast.rs | 35 pub loc: SourceRange, field 49 pub loc: SourceRange, field 57 Identifier { loc: SourceRange, name: String }, 59 Integer { loc: SourceRange, value: usize }, 61 Unary { loc: SourceRange, op: String, operand: Box<Expr> }, 63 Binary { loc: SourceRange, op: String, operands: Box<(Expr, Expr)> }, 70 pub loc: SourceRange, field 78 pub loc: SourceRange, field 86 Checksum { loc: SourceRange, field_id: String }, 88 Padding { loc: SourceRange, width: usize }, [all …]
|
D | lint.rs | 87 fn loc(&self) -> &SourceRange { in loc() method 88 self.0.last().unwrap().loc() in loc() 114 fn err_undeclared(&mut self, id: &str, loc: &SourceRange) { in err_undeclared() 118 .with_labels(vec![loc.primary()]), in err_undeclared() 122 fn err_redeclared(&mut self, id: &str, kind: &str, loc: &SourceRange, prev: &SourceRange) { in err_redeclared() 127 loc.primary(), in err_redeclared() 142 Field::Checksum { loc, field_id, .. } => { in insert() 151 loc.primary(), in insert() 152 prev.loc() in insert() 162 Field::Size { loc, field_id, .. } | Field::Count { loc, field_id, .. } => { in insert() [all …]
|
D | parser.rs | 243 Ok(ast::Expr::Identifier { loc: n.as_loc(context), name: n.as_string() }) in parse_atomic_expr() 246 Ok(ast::Expr::Integer { loc: n.as_loc(context), value: n.as_usize()? }) in parse_atomic_expr() 269 loc: node.as_loc(context), in parse_endianness() 283 let loc = node.as_loc(context); in parse_constraint() localVariable 287 Ok(ast::Constraint { id, loc, value }) in parse_constraint() 303 let loc = node.as_loc(context); in parse_enum_tag() localVariable 307 Ok(ast::Tag { id, loc, value }) in parse_enum_tag() 320 let loc = node.as_loc(context); in parse_field() localVariable 326 ast::Field::Checksum { loc, field_id } in parse_field() 330 ast::Field::Padding { loc, width } in parse_field() [all …]
|
/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/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() 441 int[] loc = getViewLocationRelativeToSelf(v); in getViewRectRelativeToSelf() local 442 r.set(loc[0], loc[1], loc[0] + v.getMeasuredWidth(), loc[1] + v.getMeasuredHeight()); in getViewRectRelativeToSelf() 446 int[] loc = new int[2]; in getViewLocationRelativeToSelf() local 447 getLocationInWindow(loc); in getViewLocationRelativeToSelf() 448 int x = loc[0]; in getViewLocationRelativeToSelf() 449 int y = loc[1]; in getViewLocationRelativeToSelf() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | BaseAccessibilityDelegate.java | 143 int[] loc = new int[2]; in handleAccessibleDrop() local 145 loc[0] = clickedTarget.getWidth() / 2; in handleAccessibleDrop() 146 loc[1] = clickedTarget.getHeight() / 2; in handleAccessibleDrop() 148 loc[0] = dropLocation.centerX(); in handleAccessibleDrop() 149 loc[1] = dropLocation.centerY(); in handleAccessibleDrop() 152 mContext.getDragLayer().getDescendantCoordRelativeToSelf(clickedTarget, loc); in handleAccessibleDrop() 153 mContext.getDragController().completeAccessibleDrag(loc); in handleAccessibleDrop()
|
/packages/modules/Bluetooth/system/gd/packet/parser/fields/ |
D | array_field.cc | 25 ArrayField::ArrayField(std::string name, int element_size, int array_size, ParseLocation loc) in ArrayField() argument 26 …: PacketField(name, loc), element_field_(new ScalarField("val", element_size, loc)), element_size_… in ArrayField() 35 ArrayField::ArrayField(std::string name, TypeDef* type_def, int array_size, ParseLocation loc) in ArrayField() argument 36 : PacketField(name, loc), element_field_(type_def->GetNewField("val", loc)), in ArrayField()
|
D | vector_field.cc | 25 …ield::VectorField(std::string name, int element_size, std::string size_modifier, ParseLocation loc) in VectorField() argument 26 …: PacketField(name, loc), element_field_(new ScalarField("val", element_size, loc)), element_size_… in VectorField() 35 …eld::VectorField(std::string name, TypeDef* type_def, std::string size_modifier, ParseLocation loc) in VectorField() argument 36 : PacketField(name, loc), element_field_(type_def->GetNewField("val", loc)), in VectorField()
|
D | fixed_enum_field.cc | 22 FixedEnumField::FixedEnumField(EnumDef* enum_def, std::string value, ParseLocation loc) in FixedEnumField() argument 23 : FixedField("fixed_enum", enum_def->size_, loc), enum_(enum_def), value_(value) {} in FixedEnumField()
|
D | fixed_field.cc | 22 FixedField::FixedField(std::string name, int size, ParseLocation loc) in FixedField() argument 23 : ScalarField(name + std::to_string(unique_id_++), size, loc) {} in FixedField()
|
/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/Launcher3/src/com/android/launcher3/widget/ |
D | BaseWidgetSheet.java | 225 int[] loc = new int[2]; in beginDraggingWidget() local 226 getPopupContainer().getLocationInDragLayer(image, loc); in beginDraggingWidget() 229 image.getWidth(), new Point(loc[0], loc[1]), this, new DragOptions()); in beginDraggingWidget() 232 int[] loc = new int[2]; in beginDraggingWidget() local 233 getPopupContainer().getLocationInDragLayer(preview, loc); in beginDraggingWidget() 237 new Point(loc[0], loc[1]), this, new DragOptions()); in beginDraggingWidget()
|
/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/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()
|
/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/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/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/modules/Bluetooth/system/gd/packet/parser/ |
D | custom_field_def.cc | 30 PacketField* CustomFieldDef::GetNewField(const std::string& name, ParseLocation loc) const { in GetNewField() 32 return new CustomField(name, name_, loc); in GetNewField() 34 return new CustomFieldFixedSize(name, name_, size_, loc); in GetNewField()
|
D | checksum_def.cc | 24 PacketField* ChecksumDef::GetNewField(const std::string& name, ParseLocation loc) const { in GetNewField() 25 return new ChecksumField(name, name_, size_, loc); in GetNewField()
|
D | enum_def.cc | 40 PacketField* EnumDef::GetNewField(const std::string& name, ParseLocation loc) const { in GetNewField() 41 return new EnumField(name, *this, "What is this for", loc); in GetNewField()
|
/packages/modules/NeuralNetworks/runtime/ |
D | ExecutionPlan.cpp | 603 const auto& loc = it->second; in mapInputsAndOutputs() local 604 executor->setInputFromMemory(stepInputIndex, temporaryMemory, loc.offset, in mapInputsAndOutputs() 605 loc.paddedLength); in mapInputsAndOutputs() 606 } else if (auto loc = dynamicTemporaries.lookup(sourceOperandIndex); loc != std::nullopt) { in mapInputsAndOutputs() local 607 executor->setInputFromMemory(stepInputIndex, loc->memory, loc->offset, in mapInputsAndOutputs() 608 loc->paddedLength, *loc->dimensions); in mapInputsAndOutputs() 622 const auto& loc = it->second; in mapInputsAndOutputs() local 623 executor->setInputFromMemory(stepInputIndex, loc.memory, loc.offset, loc.length); in mapInputsAndOutputs() 633 const auto& loc = it->second; in mapInputsAndOutputs() local 634 executor->setOutputFromMemory(stepOutputIndex, temporaryMemory, loc.offset, in mapInputsAndOutputs() [all …]
|
/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/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()
|