/development/tools/external_crates/crate_health/src/ |
D | pseudo_crate.rs | 52 if self.path.abs().exists() { in init() 55 ensure_exists_and_empty(&self.path.abs())?; in init() 78 let cargo_toml = self.path.join(&"Cargo.toml").abs(); in init() 81 create_dir(self.path.join(&"src").abs()).context("Failed to create src dir")?; in init() 82 write(self.path.join(&"src/lib.rs").abs(), "// Nothing") in init() 95 .current_dir(self.path.abs()) in add() 107 Command::new("cargo").args(["vendor"]).current_dir(self.path.abs()).output()?; in vendor()
|
D | migration.rs | 36 let dest_dir_absolute = self.dest.staging_path().abs(); in copy_customizations() 41 .abs() in copy_customizations() 71 if src_path.abs().is_symlink() { in copy_customizations() 72 let dest = read_link(src_path.abs())?; in copy_customizations() 104 if pseudo_crate.get_path().abs().exists() { in migrate() 105 remove_dir_all(pseudo_crate.get_path().abs()) in migrate()
|
D | crate_type.rs | 162 && self.android_bp().abs().exists() in is_android_bp_healthy() 163 && self.cargo_embargo_json().abs().exists() in is_android_bp_healthy() 194 let staging_path_absolute = self.staging_path().abs(); in stage_crate() 198 copy_dir(&self.path().abs(), &staging_path_absolute).context(format!( in stage_crate() 223 let patch_dir_absolute = self.patch_dir().abs(); in apply_patches() 239 .current_dir(self.staging_path().abs()) in apply_patches() 281 && self.android_bp().abs().exists() in is_migration_eligible() 282 && self.cargo_embargo_json().abs().exists() in is_migration_eligible() 317 assert_eq!(krate.android_bp().abs(), temp_crate_dir.path().join("Android.bp")); in test_from_and_properties() 319 krate.cargo_embargo_json().abs(), in test_from_and_properties()
|
D | android_bp.rs | 69 let host_bin = staging_path.with_same_root(&"out/host/linux-x86/bin").abs(); in run_cargo_embargo() 80 Command::new(staging_path.with_same_root(&"out/host/linux-x86/bin/cargo_embargo").abs()); in run_cargo_embargo() 84 .current_dir(staging_path.abs()) in run_cargo_embargo()
|
D | repo_path.rs | 44 pub fn abs(&self) -> PathBuf { in abs() method 64 assert_eq!(p.abs(), PathBuf::from("/foo/bar")); in test_basic()
|
D | reports.rs | 109 &prefer_yes(krate.android_bp().abs().exists()), in health_table() 129 &prefer_yes(krate.cargo_embargo_json().abs().exists()), in health_table() 182 &prefer_yes(krate.android_bp().abs().exists()), in migration_ineligible_table() 183 &prefer_yes(krate.cargo_embargo_json().abs().exists()), in migration_ineligible_table()
|
D | main.rs | 169 if !krate.android_bp().abs().exists() { in main() 172 if !krate.cargo_embargo_json().abs().exists() { in main()
|
/development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/ |
D | MouseFragment.java | 97 if (Math.abs(mScrollX) > SCROLL_THRESHOLD && Math.abs(distanceY) > SCROLL_THRESHOLD) { in onScroll() 100 } else if (Math.abs(mScrollX) > SCROLL_THRESHOLD) { in onScroll() 103 } else if (Math.abs(mScrollY) > SCROLL_THRESHOLD) { in onScroll() 151 if (Math.abs(x) > SENSOR_EVENT_THRESHOLD && Math.abs(y) > SENSOR_EVENT_THRESHOLD) {
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
D | CameraHelper.java | 77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalVideoSize() 79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize() 81 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize() 89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize() 91 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
|
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
D | CameraHelper.java | 77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalVideoSize() 79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize() 81 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize() 89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize() 91 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | DefaultCardStreamAnimator.java | 79 float deltaXAbs = Math.abs(deltaX); in getSwipeInAnimator() 82 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeInAnimator() 103 float deltaXAbs = Math.abs(deltaX); in getSwipeOutAnimator() 106 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeOutAnimator()
|
D | CardLayout.java | 77 mSwiping = Math.abs(mDownX - event.getX()) > mTouchSlop; in onInterceptTouchEvent()
|
/development/samples/MultiDisplay/src/com/example/android/multidisplay/wallpaper/ |
D | SampleWallpaper.java | 187 if (Math.abs(mCircleRadioShift) > MaxCircleRadioShift) { 194 mCircleShift.x = Math.abs(random.nextInt(5)); 195 mCircleShift.y = Math.abs(5 - mCircleShift.x); 205 int pg = Math.abs(bg - 128); 206 int pr = Math.abs(br - 128); 207 int pb = Math.abs(bb - 128);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | CameraPreview.java | 280 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize() 281 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 283 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize() 291 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 293 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
|
D | SensorTest.java | 90 if (Math.abs(diff[i]) > 0) { 111 boolean gestX = Math.abs(x) > 3; 112 boolean gestY = Math.abs(y) > 3;
|
D | FingerPaint.java | 101 float dx = Math.abs(x - mX); in touch_move() 102 float dy = Math.abs(y - mY); in touch_move()
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | CameraFragment.java | 300 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize() 302 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 304 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize() 312 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 314 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
|
/development/tools/winscope/src/common/ |
D | utc_offset.ts | 31 const valueHoursAbs = Math.abs(valueHours);
|
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/ |
D | SawOscillatorDPW.java | 32 freq = Math.abs(freq); in setFrequency()
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/ |
D | SawOscillatorDPW.java | 32 freq = Math.abs(freq); in setFrequency()
|
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/ |
D | ScalingOffsettingHelper.java | 45 mProgressToCenter = Math.abs(0.5f - yRelativeToCenterOffset); in updateChild()
|
/development/tools/winscope/src/viewers/components/rects/ |
D | mapper3d.ts | 286 ...displays.map((rect2d): number => Math.abs(rect2d.w)), 290 ...displays.map((rect2d): number => Math.abs(rect2d.h)), 306 const height = Math.abs(rect3d.topLeft.y - rect3d.bottomRight.y); 307 const width = Math.abs(rect3d.topLeft.x - rect3d.bottomRight.x);
|
/development/tools/winscope/src/trace_processor/ |
D | bigint_math.ts | 108 static abs(n: bigint) { method in BigintMath
|
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/ |
D | ListViewItemAnimations.java | 123 float deltaXAbs = Math.abs(deltaX); 148 float deltaXAbs = Math.abs(deltaX); 239 float fraction = Math.abs(deltaX) / view.getWidth(); in setSwipePosition()
|
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ |
D | ListViewRemovalAnimation.java | 99 float deltaXAbs = Math.abs(deltaX); 119 float deltaXAbs = Math.abs(deltaX);
|