/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | NetworkStatsUtils.java | 90 public static int constrain(int amount, int low, int high) { in constrain() argument 92 return amount < low ? low : (amount > high ? high : amount); in constrain() 98 public static long constrain(long amount, long low, long high) { in constrain() argument 100 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/ |
D | RealLocationListeningAccountant.java | 106 public void depositActiveListeningAmount(@NonNull Duration amount) { in depositActiveListeningAmount() argument 107 incrementActiveListeningBalanceWithCeiling(amount); in depositActiveListeningAmount() 246 private synchronized void decrementActiveListeningBalanceWithFloor(@NonNull Duration amount) { in decrementActiveListeningBalanceWithFloor() argument 247 checkPositiveOrZero(amount); in decrementActiveListeningBalanceWithFloor() 248 mActiveListeningBalanceMillis -= amount.toMillis(); in decrementActiveListeningBalanceWithFloor() 253 private synchronized void incrementActiveListeningBalanceWithCeiling(@NonNull Duration amount) { in incrementActiveListeningBalanceWithCeiling() argument 254 checkPositiveOrZero(amount); in incrementActiveListeningBalanceWithCeiling() 255 mActiveListeningBalanceMillis += amount.toMillis(); in incrementActiveListeningBalanceWithCeiling()
|
D | DelegatingLocationListeningAccountant.java | 55 public synchronized void depositActiveListeningAmount(@NonNull Duration amount) { in depositActiveListeningAmount() argument 56 mDelegate.depositActiveListeningAmount(amount); in depositActiveListeningAmount()
|
/packages/services/Car/service/src/com/android/car/util/ |
D | BrightnessUtils.java | 204 public static float constrain(float amount, float low, float high) { in constrain() argument 205 return amount < low ? low : (amount > high ? high : amount); in constrain() 224 public static float lerp(float start, float stop, float amount) { in lerp() argument 225 return start + (stop - start) * amount; in lerp()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcStatsPackageEntry.java | 166 public static CharSequence getFrequency(float amount, Context context) { in getFrequency() argument 167 if (amount > ALWAYS_THRESHOLD) { in getFrequency() 169 Utils.formatPercentage((int) (amount * 100))); in getFrequency() 170 } else if (amount > SOMETIMES_THRESHOLD) { in getFrequency() 172 Utils.formatPercentage((int) (amount * 100))); in getFrequency() 175 Utils.formatPercentage((int) (amount * 100))); in getFrequency()
|
D | ProcessStatsPreference.java | 50 double amount = avg ? (statsForeground ? entry.mRunWeight : entry.mBgWeight) * weightToRam in init() local 52 setSummary(Formatter.formatShortFileSize(getContext(), (long) amount)); in init() 53 setProgress((int) (100 * amount / maxMemory)); in init()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | OverScroll.java | 42 public static int dampedScroll(float amount, int max) { in dampedScroll() argument 43 if (Float.compare(amount, 0) == 0) return 0; in dampedScroll() 45 float f = amount / max; in dampedScroll()
|
/packages/providers/MediaProvider/src/com/android/providers/media/playlist/ |
D | Playlist.java | 139 private static int constrain(int amount, int low, int high) { in constrain() argument 140 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/ |
D | FileTsStreamer.java | 368 public int readAt(long pos, byte[] buffer, int offset, int amount) throws IOException { in readAt() argument 371 while (mBytesFetched < pos + amount && mStreaming) { in readAt() 395 int bytesToCopyInFirstPass = amount; in readAt() 400 if (bytesToCopyInFirstPass < amount) { in readAt() 406 amount - bytesToCopyInFirstPass); in readAt() 408 mLastReadPosition = pos + amount; in readAt() 410 return amount; in readAt()
|
D | TunerTsStreamer.java | 421 public int readAt(long pos, byte[] buffer, int offset, int amount) throws IOException { in readAt() argument 431 if (mBytesFetched < pos + amount) { in readAt() 442 int endPos = (int) ((pos + amount) % CIRCULAR_BUFFER_SIZE); in readAt() 445 if (firstLength < amount) { in readAt() 447 mCircularBuffer, 0, buffer, offset + firstLength, amount - firstLength); in readAt() 450 return amount; in readAt()
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/privacy/ |
D | PrivacyChipDrawable.java | 158 private void lerpRect(Rect start, Rect stop, float amount, RectF out) { in lerpRect() argument 159 float left = MathUtils.lerp(start.left, stop.left, amount); in lerpRect() 160 float top = MathUtils.lerp(start.top, stop.top, amount); in lerpRect() 161 float right = MathUtils.lerp(start.right, stop.right, amount); in lerpRect() 162 float bottom = MathUtils.lerp(start.bottom, stop.bottom, amount); in lerpRect()
|
/packages/modules/adb/fastdeploy/deploypatchgenerator/ |
D | patch_utils.cpp | 95 void PatchUtils::Pipe(borrowed_fd input, borrowed_fd output, size_t amount) { in Pipe() argument 99 while (transferAmount != amount) { in Pipe() 100 auto chunkAmount = std::min(amount - transferAmount, BUFFER_SIZE); in Pipe()
|
D | patch_utils.h | 56 size_t amount);
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/ |
D | FakeClock.java | 82 public void increment(TimeUnit unit, long amount) { in increment() argument 83 mCurrentTimeMillis += unit.toMillis(amount); in increment()
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_sco_hci.cc | 522 size_t amount) { in incr_buf_offset() 523 if (bsize - offset > amount) { in incr_buf_offset() 524 offset += amount; in incr_buf_offset() 529 offset = amount - (bsize - offset); in incr_buf_offset() 961 size_t amount) { in incr_buf_offset() 962 if (bsize - offset > amount) { in incr_buf_offset() 963 offset += amount; in incr_buf_offset() 968 offset = amount - (bsize - offset); in incr_buf_offset()
|
D | btm_sco.cc | 227 void incr_btm_pcm_buf_offset(size_t& offset, bool& mirror, size_t amount) { in incr_btm_pcm_buf_offset() argument 229 if (bytes_remaining > amount) { in incr_btm_pcm_buf_offset() 230 offset += amount; in incr_btm_pcm_buf_offset() 235 offset = amount - bytes_remaining; in incr_btm_pcm_buf_offset() 266 size_t write_btm_pcm_buf(uint8_t* source, size_t amount) { in write_btm_pcm_buf() argument 267 if (btm_pcm_buf_avail_len() < amount) { in write_btm_pcm_buf() 272 if (bytes_remaining > amount) { in write_btm_pcm_buf() 273 std::copy(source, source + amount, btm_pcm_buf + btm_pcm_buf_write_offset); in write_btm_pcm_buf() 277 std::copy(source + bytes_remaining, source + amount, btm_pcm_buf); in write_btm_pcm_buf() 281 amount); in write_btm_pcm_buf() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | SummaryPreference.java | 53 public void setAmount(String amount) { in setAmount() argument 54 mAmount = amount; in setAmount()
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperListAdapter.java | 74 private List<LiveWallpaperInfo> generatePlaceholderViews(int amount) { in generatePlaceholderViews() argument 75 ArrayList<LiveWallpaperInfo> list = new ArrayList<LiveWallpaperInfo>(amount); in generatePlaceholderViews() 76 for (int i = 0; i < amount; i++) { in generatePlaceholderViews()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/metrics/ |
D | stats.proto | 34 // The amount of data received from tethered clients. 37 // The amount of data received from remote.
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppMemoryPreferenceController.java | 86 double amount = Math.max(entry.getRunWeight(), entry.getBgWeight()) in onPostExecute() local 89 Formatter.formatShortFileSize(mContext, (long) amount))); in onPostExecute()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | IconView.java | 174 public void setIconColorTint(int color, float amount) { in setIconColorTint() argument 176 mDrawable.setColorFilter(Utilities.makeColorTintingColorFilter(color, amount)); in setIconColorTint()
|
D | DigitalWellBeingToast.java | 392 void setBannerColorTint(int color, float amount) { in setBannerColorTint() argument 396 if (amount == 0) { in setBannerColorTint() 400 layerPaint.setColorFilter(Utilities.makeColorTintingColorFilter(color, amount)); in setBannerColorTint()
|
D | TaskViewIcon.java | 106 void setIconColorTint(int color, float amount); in setIconColorTint() argument
|
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/ |
D | OfflineLocationTimeZoneDelegateTest.java | 126 amount -> amount.compareTo(maximumReturned) <= 0); in locationFoundImmediately() 662 public void depositActiveListeningAmount(@NonNull Duration amount) { 663 mBalanceReturned += amount.toMillis();
|
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/ |
D | LocationListeningAccountant.java | 60 void depositActiveListeningAmount(@NonNull Duration amount); in depositActiveListeningAmount() argument
|