Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 45) sorted by relevance

12

/development/tools/external_crates/crate_health/src/
Dpseudo_crate.rs52 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()
Dmigration.rs36 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()
Dcrate_type.rs162 && 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()
Dandroid_bp.rs69 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()
Drepo_path.rs44 pub fn abs(&self) -> PathBuf { in abs() method
64 assert_eq!(p.abs(), PathBuf::from("/foo/bar")); in test_basic()
Dreports.rs109 &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()
Dmain.rs169 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/
DMouseFragment.java97 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/
DCameraHelper.java77 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/
DCameraHelper.java77 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/
DDefaultCardStreamAnimator.java79 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()
DCardLayout.java77 mSwiping = Math.abs(mDownX - event.getX()) > mTouchSlop; in onInterceptTouchEvent()
/development/samples/MultiDisplay/src/com/example/android/multidisplay/wallpaper/
DSampleWallpaper.java187 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/
DCameraPreview.java280 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()
DSensorTest.java90 if (Math.abs(diff[i]) > 0) {
111 boolean gestX = Math.abs(x) > 3;
112 boolean gestY = Math.abs(y) > 3;
DFingerPaint.java101 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/
DCameraFragment.java300 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/
Dutc_offset.ts31 const valueHoursAbs = Math.abs(valueHours);
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSawOscillatorDPW.java32 freq = Math.abs(freq); in setFrequency()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSawOscillatorDPW.java32 freq = Math.abs(freq); in setFrequency()
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/
DScalingOffsettingHelper.java45 mProgressToCenter = Math.abs(0.5f - yRelativeToCenterOffset); in updateChild()
/development/tools/winscope/src/viewers/components/rects/
Dmapper3d.ts286 ...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/
Dbigint_math.ts108 static abs(n: bigint) { method in BigintMath
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java123 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/
DListViewRemovalAnimation.java99 float deltaXAbs = Math.abs(deltaX);
119 float deltaXAbs = Math.abs(deltaX);

12