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.java61 int initialSize = computeInitialSampleSize( in computeSampleSize() local
64 return initialSize <= 8 in computeSampleSize()
65 ? Utils.nextPowerOf2(initialSize) in computeSampleSize()
66 : (initialSize + 7) / 8 * 8; in computeSampleSize()
89 int initialSize = Math.max(w / minSideLength, h / minSideLength); in computeSampleSizeLarger() local
90 if (initialSize <= 1) return 1; in computeSampleSizeLarger()
92 return initialSize <= 8 in computeSampleSizeLarger()
93 ? Utils.prevPowerOf2(initialSize) in computeSampleSizeLarger()
94 : initialSize / 8 * 8; in computeSampleSizeLarger()
99 int initialSize = (int) FloatMath.floor(1f / scale); in computeSampleSizeLarger() local
[all …]
/frameworks/base/cmds/wm/src/com/android/commands/wm/
DWm.java89 Point initialSize = new Point(); in runDisplaySize() local
92 mWm.getInitialDisplaySize(Display.DEFAULT_DISPLAY, initialSize); in runDisplaySize()
94 System.out.println("Physical size: " + initialSize.x + "x" + initialSize.y); in runDisplaySize()
95 if (!initialSize.equals(baseSize)) { in runDisplaySize()
/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.java152 public NetworkStats(long elapsedRealtime, int initialSize) { in NetworkStats() argument
155 this.iface = new String[initialSize]; in NetworkStats()
156 this.uid = new int[initialSize]; in NetworkStats()
157 this.set = new int[initialSize]; in NetworkStats()
158 this.tag = new int[initialSize]; in NetworkStats()
159 this.rxBytes = new long[initialSize]; in NetworkStats()
160 this.rxPackets = new long[initialSize]; in NetworkStats()
161 this.txBytes = new long[initialSize]; in NetworkStats()
162 this.txPackets = new long[initialSize]; in NetworkStats()
163 this.operations = new long[initialSize]; in NetworkStats()
DNetworkStatsHistory.java98 public NetworkStatsHistory(long bucketDuration, int initialSize) { in NetworkStatsHistory() argument
99 this(bucketDuration, initialSize, FIELD_ALL); in NetworkStatsHistory()
102 public NetworkStatsHistory(long bucketDuration, int initialSize, int fields) { in NetworkStatsHistory() argument
104 bucketStart = new long[initialSize]; in NetworkStatsHistory()
105 if ((fields & FIELD_ACTIVE_TIME) != 0) activeTime = new long[initialSize]; in NetworkStatsHistory()
106 if ((fields & FIELD_RX_BYTES) != 0) rxBytes = new long[initialSize]; in NetworkStatsHistory()
107 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; in NetworkStatsHistory()
108 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory()
109 if ((fields & FIELD_TX_PACKETS) != 0) txPackets = new long[initialSize]; in NetworkStatsHistory()
110 if ((fields & FIELD_OPERATIONS) != 0) operations = new long[initialSize]; in NetworkStatsHistory()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java258 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize() local
262 if (initialSize <= 8 ) { in computeSampleSize()
264 while (roundedSize < initialSize) { in computeSampleSize()
268 roundedSize = (initialSize + 7) / 8 * 8; in computeSampleSize()
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java232 int initialSize = mPreviewSizes.size() - 1; in setUpCamera() local
234 mNextPreviewSize = mPreviewSizes.get(initialSize); in setUpCamera()
235 mResolutionSpinner.setSelection(initialSize); in setUpCamera()