Home
last modified time | relevance | path

Searched refs:initialSize (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java60 int initialSize = computeInitialSampleSize( in computeSampleSize() local
63 return initialSize <= 8 in computeSampleSize()
64 ? Utils.nextPowerOf2(initialSize) in computeSampleSize()
65 : (initialSize + 7) / 8 * 8; in computeSampleSize()
88 int initialSize = Math.max(w / minSideLength, h / minSideLength); in computeSampleSizeLarger() local
89 if (initialSize <= 1) return 1; in computeSampleSizeLarger()
91 return initialSize <= 8 in computeSampleSizeLarger()
92 ? Utils.prevPowerOf2(initialSize) in computeSampleSizeLarger()
93 : initialSize / 8 * 8; in computeSampleSizeLarger()
98 int initialSize = (int) Math.floor(1 / scale); in computeSampleSizeLarger() local
[all …]
/frameworks/base/tools/preload/
DWritePreloadedClassFile.java92 int initialSize = toPreload.size(); in main() local
93 System.out.println(initialSize in main()
109 System.out.println("Added " + (toPreload.size() - initialSize) in main()
/frameworks/base/core/java/android/net/
DNetworkStats.java436 public NetworkStats(long elapsedRealtime, int initialSize) { in NetworkStats() argument
439 if (initialSize > 0) { in NetworkStats()
440 this.capacity = initialSize; in NetworkStats()
441 this.iface = new String[initialSize]; in NetworkStats()
442 this.uid = new int[initialSize]; in NetworkStats()
443 this.set = new int[initialSize]; in NetworkStats()
444 this.tag = new int[initialSize]; in NetworkStats()
445 this.metered = new int[initialSize]; in NetworkStats()
446 this.roaming = new int[initialSize]; in NetworkStats()
447 this.defaultNetwork = new int[initialSize]; in NetworkStats()
[all …]
DNetworkStatsHistory.java116 public NetworkStatsHistory(long bucketDuration, int initialSize) { in NetworkStatsHistory() argument
117 this(bucketDuration, initialSize, FIELD_ALL); in NetworkStatsHistory()
120 public NetworkStatsHistory(long bucketDuration, int initialSize, int fields) { in NetworkStatsHistory() argument
122 bucketStart = new long[initialSize]; in NetworkStatsHistory()
123 if ((fields & FIELD_ACTIVE_TIME) != 0) activeTime = new long[initialSize]; in NetworkStatsHistory()
124 if ((fields & FIELD_RX_BYTES) != 0) rxBytes = new long[initialSize]; in NetworkStatsHistory()
125 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; in NetworkStatsHistory()
126 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory()
127 if ((fields & FIELD_TX_PACKETS) != 0) txPackets = new long[initialSize]; in NetworkStatsHistory()
128 if ((fields & FIELD_OPERATIONS) != 0) operations = new long[initialSize]; in NetworkStatsHistory()
/frameworks/native/services/stats/
DStatsHal.cpp59 int initialSize = buckets.size(); in reportChargeCycles() local
60 for (int i = 0; i < 10 - initialSize; i++) { in reportChargeCycles()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerShellCommand.java151 final Point initialSize = new Point(); in printInitialDisplaySize() local
155 mInterface.getInitialDisplaySize(displayId, initialSize); in printInitialDisplaySize()
157 pw.println("Physical size: " + initialSize.x + "x" + initialSize.y); in printInitialDisplaySize()
158 if (!initialSize.equals(baseSize)) { in printInitialDisplaySize()
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java233 int initialSize = mPreviewSizes.size() - 1; in setUpCamera() local
235 mNextPreviewSize = mPreviewSizes.get(initialSize); in setUpCamera()
236 mResolutionSpinner.setSelection(initialSize); in setUpCamera()