Home
last modified time | relevance | path

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

12

/packages/apps/TV/usbtuner/src/com/android/usbtuner/
DUsbTunerDataSource.java209 public int readAt(long pos, byte[] buffer, int offset, int amount) throws IOException { in readAt() argument
221 while (mBytesFetched < pos + amount && mStreaming) { in readAt()
246 int bytesToCopyInFirstPass = amount; in readAt()
251 if (bytesToCopyInFirstPass < amount) { in readAt()
253 amount - bytesToCopyInFirstPass); in readAt()
255 mLastReadPosition.set(pos + amount); in readAt()
262 return amount; in readAt()
DFileDataSource.java259 public int readAt(long pos, byte[] buffer, int offset, int amount) throws IOException { in readAt() argument
262 while (mBytesFetched < pos + amount && mStreaming) { in readAt()
286 int bytesToCopyInFirstPass = amount; in readAt()
291 if (bytesToCopyInFirstPass < amount) { in readAt()
293 amount - bytesToCopyInFirstPass); in readAt()
295 mLastReadPosition = pos + amount; in readAt()
297 return amount; in readAt()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsPackageEntry.java164 public static CharSequence getFrequency(float amount, Context context) { in getFrequency() argument
165 if (amount > ALWAYS_THRESHOLD) { in getFrequency()
167 Utils.formatPercentage((int) (amount * 100))); in getFrequency()
168 } else if (amount > SOMETIMES_THRESHOLD) { in getFrequency()
170 Utils.formatPercentage((int) (amount * 100))); in getFrequency()
173 Utils.formatPercentage((int) (amount * 100))); in getFrequency()
DProcessStatsPreference.java45 double amount = avg ? (statsForeground ? entry.mRunWeight : entry.mBgWeight) * weightToRam in init() local
47 setSummary(Formatter.formatShortFileSize(getContext(), (long) amount)); in init()
48 setProgress((int) (100 * amount / maxMemory)); in init()
DInstalledAppDetails.java1110 double amount = Math.max(entry.mRunWeight, entry.mBgWeight)
1113 Formatter.formatShortFileSize(getContext(), (long) amount)));
/packages/apps/Settings/src/com/android/settings/
DAppProgressPreference.java33 public void setProgress(int amount) { in setProgress() argument
34 mProgress = amount; in setProgress()
DSummaryPreference.java47 public void setAmount(String amount) { in setAmount() argument
48 mAmount = amount; in setAmount()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeClock.java84 public void increment(TimeUnit unit, long amount) { in increment() argument
85 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/services/Telephony/src/org/apache/james/mime4j/field/datetime/parser/
DSimpleCharStream.java250 public void backup(int amount) { in backup() argument
252 inBuf += amount; in backup()
253 if ((bufpos -= amount) < 0) in backup()
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/
DSimpleCharStream.java250 public void backup(int amount) { in backup() argument
252 inBuf += amount; in backup()
253 if ((bufpos -= amount) < 0) in backup()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DSimpleCharStream.java250 public void backup(int amount) { in backup() argument
252 inBuf += amount; in backup()
253 if ((bufpos -= amount) < 0) in backup()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DDrawableDownloader.java209 public void trimTo(float amount) { in trimTo() argument
210 if (amount == 0f) { in trimTo()
213 mMemoryCache.trimToSize((int) (amount * mMemoryCache.maxSize())); in trimTo()
/packages/services/Telephony/src/org/apache/james/mime4j/field/contenttype/parser/
DSimpleCharStream.java250 public void backup(int amount) { in backup() argument
252 inBuf += amount; in backup()
253 if ((bufpos -= amount) < 0) in backup()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DSimpleCharStream.java250 public void backup(int amount) { in backup() argument
252 inBuf += amount; in backup()
253 if ((bufpos -= amount) < 0) in backup()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DSimpleCharStream.java250 public void backup(int amount) { in backup() argument
252 inBuf += amount; in backup()
253 if ((bufpos -= amount) < 0) in backup()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java1161 protected void acceleratedOverScroll(float amount) { in acceleratedOverScroll() argument
1166 float f = OVERSCROLL_ACCELERATE_FACTOR * (amount / screenSize); in acceleratedOverScroll()
1176 if (amount < 0) { in acceleratedOverScroll()
1186 protected void dampedOverScroll(float amount) { in dampedOverScroll() argument
1189 float f = (amount / screenSize); in dampedOverScroll()
1200 if (amount < 0) { in dampedOverScroll()
1210 protected void overScroll(float amount) { in overScroll() argument
1211 dampedOverScroll(amount); in overScroll()
DAppsCustomizePagedView.java1497 protected void overScroll(float amount) {
1498 acceleratedOverScroll(amount);
DWorkspace.java1267 protected void overScroll(float amount) {
1268 acceleratedOverScroll(amount);
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1529 protected void dampedOverScroll(float amount) { in dampedOverScroll() argument
1531 float f = (amount / screenSize); in dampedOverScroll()
1542 protected void overScroll(float amount) { in overScroll() argument
1543 dampedOverScroll(amount); in overScroll()
DWorkspace.java1302 protected void overScroll(float amount) { in overScroll() argument
1303 boolean shouldOverScroll = (amount <= 0 && (!hasCustomContent() || mIsRtl)) || in overScroll()
1304 (amount >= 0 && (!hasCustomContent() || !mIsRtl)); in overScroll()
1307 ((amount <= 0 && !mIsRtl) || (amount >= 0 && mIsRtl)); in overScroll()
1310 ((amount >= 0 && !mIsRtl) || (amount <= 0 && mIsRtl)); in overScroll()
1318 mLastOverlaySroll = Math.abs(amount / getViewportWidth()); in overScroll()
1321 dampedOverScroll(amount); in overScroll()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcp.java868 private void changePositionBy(long amount) { in changePositionBy() argument
871 long newPosMs = Math.max(0L, currentPosMs + amount); in changePositionBy()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Ddom.md174 … is said to be an in situ algorithm, or in-place algorithm, if the extra amount of memory required…
Dfaq.md271 …ery large JSON files. Some server-side applications need to process huge amount of JSONs. Being hi…
DDoxyfile.in66 # option can be useful when feeding doxygen a huge amount of source files, where
1194 # a fully collapsed tree already exceeds this amount). So setting the number of
2190 # but if the number exceeds 15, the total amount of fields shown is limited to

12