Home
last modified time | relevance | path

Searched refs:amount (Results 1 – 25 of 43) sorted by relevance

12

/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/
DRealLocationListeningAccountant.java106 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()
DDelegatingLocationListeningAccountant.java55 public synchronized void depositActiveListeningAmount(@NonNull Duration amount) { in depositActiveListeningAmount() argument
56 mDelegate.depositActiveListeningAmount(amount); in depositActiveListeningAmount()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsPackageEntry.java166 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()
DProcessStatsPreference.java50 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/TV/tuner/src/com/android/tv/tuner/source/
DFileTsStreamer.java368 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()
DTunerTsStreamer.java421 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/providers/MediaProvider/src/com/android/providers/media/playlist/
DPlaylist.java139 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/Launcher3/src/com/android/launcher3/touch/
DOverScroll.java42 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/modules/adb/fastdeploy/deploypatchgenerator/
Dpatch_utils.cpp95 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()
Dpatch_utils.h56 size_t amount);
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeClock.java82 public void increment(TimeUnit unit, long amount) { in increment() argument
83 mCurrentTimeMillis += unit.toMillis(amount); in increment()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperListAdapter.java74 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/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DIconView.java114 public void setIconColorTint(int color, float amount) { in setIconColorTint() argument
116 mDrawable.setColorFilter(Utilities.makeColorTintingColorFilter(color, amount)); in setIconColorTint()
DDigitalWellBeingToast.java290 void setBannerColorTint(int color, float amount) { in setBannerColorTint() argument
294 if (amount == 0) { in setBannerColorTint()
298 layerPaint.setColorFilter(Utilities.makeColorTintingColorFilter(color, amount)); in setBannerColorTint()
DTaskView.java1476 public void setColorTint(float amount, int tintColor) { in setColorTint() argument
1477 mSnapshotView.setDimAlpha(amount); in setColorTint()
1478 mIconView.setIconColorTint(tintColor, amount); in setColorTint()
1479 mDigitalWellBeingToast.setBannerColorTint(tintColor, amount); in setColorTint()
/packages/apps/Settings/src/com/android/settings/
DSummaryPreference.java53 public void setAmount(String amount) { in setAmount() argument
54 mAmount = amount; in setAmount()
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/
DOfflineLocationTimeZoneDelegateTest.java128 amount -> amount.compareTo(maximumReturned) <= 0); in locationFoundImmediately()
565 public void depositActiveListeningAmount(@NonNull Duration amount) {
566 mBalanceReturned += amount.toMillis();
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppMemoryPreferenceController.java86 double amount = Math.max(entry.getRunWeight(), entry.getBgWeight()) in onPostExecute() local
89 Formatter.formatShortFileSize(mContext, (long) amount))); in onPostExecute()
/packages/apps/Car/libs/car-uxr-client-lib/
DREADME.md2 Components and resources designed to reduce the amount of work needed by
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/
DLocationListeningAccountant.java60 void depositActiveListeningAmount(@NonNull Duration amount); in depositActiveListeningAmount() argument
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DEdgeBackGesturePanel.java438 private static float lerp(float start, float stop, float amount) { in lerp() argument
439 return start + (stop - start) * amount; in lerp()
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DREADME.md12 amount of time tests take to find problematic code.
296 `libprotobuf-mutator`) converge slower when the amount of randomly generated
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/
Dvoicemail_transcription.proto123 // The estimated amount of time in seconds before the transcription will be
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto547 // High amount of traffic
550 // Intermediate amount of traffic
/packages/modules/GeoTZ/s2storage/
DREADME.md16 A "block file" is a general-purpose file format containing a small amount of header information,

12