Searched refs:amount (Results 1 - 20 of 20) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/touch/
H A DOverScroll.java38 * @param amount The original amount overscrolled.
39 * @param max The maximum amount that the View can overscroll.
40 * @return The dampened overscroll amount.
42 public static int dampedScroll(float amount, int max) { argument
43 if (Float.compare(amount, 0) == 0) return 0;
45 float f = amount / max;
/packages/apps/Settings/src/com/android/settings/
H A DAppProgressPreference.java33 public void setProgress(int amount) { argument
34 mProgress = amount;
H A DSummaryPreference.java54 public void setAmount(String amount) { argument
55 mAmount = amount;
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DFakeClock.java79 * Increment the current time by {@code amount} unit of time.
82 * @param amount The amount of time units to increment by.
84 public void increment(TimeUnit unit, long amount) { argument
85 mCurrentTimeMillis += unit.toMillis(amount);
/packages/apps/Settings/src/com/android/settings/applications/
H A DProcessStatsPreference.java51 double amount = avg ? (statsForeground ? entry.mRunWeight : entry.mBgWeight) * weightToRam
53 setSummary(Formatter.formatShortFileSize(getContext(), (long) amount));
54 setProgress((int) (100 * amount / maxMemory));
H A DProcStatsPackageEntry.java166 public static CharSequence getFrequency(float amount, Context context) { argument
167 if (amount > ALWAYS_THRESHOLD) {
169 Utils.formatPercentage((int) (amount * 100)));
170 } else if (amount > SOMETIMES_THRESHOLD) {
172 Utils.formatPercentage((int) (amount * 100)));
175 Utils.formatPercentage((int) (amount * 100)));
H A DInstalledAppDetails.java1349 double amount = Math.max(entry.mRunWeight, entry.mBgWeight)
1352 Formatter.formatShortFileSize(getContext(), (long) amount)));
/packages/apps/TV/src/com/android/tv/tuner/source/
H A DFileTsStreamer.java353 * @param amount number of bytes to read
357 public int readAt(long pos, byte[] buffer, int offset, int amount) throws IOException { argument
360 while (mBytesFetched < pos + amount && mStreaming) {
384 int bytesToCopyInFirstPass = amount;
389 if (bytesToCopyInFirstPass < amount) {
391 amount - bytesToCopyInFirstPass);
393 mLastReadPosition = pos + amount;
395 return amount;
420 * Keeps reading data in from a {@link StreamProvider} to hold enough amount for buffering.
H A DTunerTsStreamer.java371 * @param amount number of bytes to read
375 public int readAt(long pos, byte[] buffer, int offset, int amount) throws IOException { argument
385 if (mBytesFetched < pos + amount) {
396 int endPos = (int) ((pos + amount) % CIRCULAR_BUFFER_SIZE);
399 if (firstLength < amount) {
401 amount - firstLength);
404 return amount;
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
H A DLiveWallpaperListAdapter.java74 private List<LiveWallpaperInfo> generatePlaceholderViews(int amount) { argument
75 ArrayList<LiveWallpaperInfo> list = new ArrayList<LiveWallpaperInfo>(amount);
76 for (int i = 0; i < amount; i++) {
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DDrawableDownloader.java205 public void trimTo(float amount) { argument
206 if (amount == 0f) {
209 mMemoryCache.trimToSize((int) (amount * mMemoryCache.maxSize()));
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
H A DSimpleCharStream.java250 public void backup(int amount) { argument
252 inBuf += amount;
253 if ((bufpos -= amount) < 0)
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
H A DSimpleCharStream.java250 public void backup(int amount) { argument
252 inBuf += amount;
253 if ((bufpos -= amount) < 0)
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
H A DSimpleCharStream.java250 public void backup(int amount) { argument
252 inBuf += amount;
253 if ((bufpos -= amount) < 0)
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedView.java1161 protected void acceleratedOverScroll(float amount) { argument
1166 float f = OVERSCROLL_ACCELERATE_FACTOR * (amount / screenSize);
1176 if (amount < 0) {
1186 protected void dampedOverScroll(float amount) { argument
1189 float f = (amount / screenSize);
1200 if (amount < 0) {
1210 protected void overScroll(float amount) { argument
1211 dampedOverScroll(amount);
1260 // Only scroll and update mLastMotionX if we have moved some discrete amount. We
H A DAppsCustomizePagedView.java1497 protected void overScroll(float amount) { argument
1498 acceleratedOverScroll(amount);
H A DWorkspace.java1267 protected void overScroll(float amount) { argument
1268 acceleratedOverScroll(amount);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPagedView.java1323 protected void dampedOverScroll(float amount) { argument
1324 if (Float.compare(amount, 0f) == 0) return;
1326 int overScrollAmount = OverScroll.dampedScroll(amount, getViewportWidth());
1327 if (amount < 0) {
1337 protected void overScroll(float amount) { argument
1338 dampedOverScroll(amount);
1458 // Only scroll and update mLastMotionX if we have moved some discrete amount. We
H A DWorkspace.java1378 protected void overScroll(float amount) { argument
1379 boolean shouldOverScroll = (amount <= 0 && (!hasCustomContent() || mIsRtl)) ||
1380 (amount >= 0 && (!hasCustomContent() || !mIsRtl));
1383 ((amount <= 0 && !mIsRtl) || (amount >= 0 && mIsRtl));
1386 ((amount >= 0 && !mIsRtl) || (amount <= 0 && mIsRtl));
1394 mLastOverlayScroll = Math.abs(amount / getViewportWidth());
1397 dampedOverScroll(amount);
1456 * @param translation the amount o
[all...]
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...

Completed in 443 milliseconds