HomeSort by relevance Sort by last modified time
    Searched refs:formatSize (Results 1 - 16 of 16) sorted by null

  /packages/apps/Email/tests/src/com/android/email/activity/
UiUtilitiesTests.java 35 assertEquals("0B", UiUtilities.formatSize(getContext(), 0));
36 assertEquals("1B", UiUtilities.formatSize(getContext(), 1));
37 assertEquals("1023B", UiUtilities.formatSize(getContext(), 1023));
38 assertEquals("1KB", UiUtilities.formatSize(getContext(), 1024));
39 assertEquals("1023KB", UiUtilities.formatSize(getContext(), 1024 * 1024 - 1));
40 assertEquals("1MB", UiUtilities.formatSize(getContext(), 1024 * 1024));
41 assertEquals("1023MB", UiUtilities.formatSize(getContext(), 1024 * 1024 * 1024 - 1));
42 assertEquals("1GB", UiUtilities.formatSize(getContext(), 1024 * 1024 * 1024));
43 assertEquals("5GB", UiUtilities.formatSize(getContext(), 5L * 1024 * 1024 * 1024));
  /frameworks/base/libs/hwui/
PixelBuffer.h 151 return mWidth * mHeight * formatSize(mFormat);
158 return (y * mWidth + x) * formatSize(mFormat);
168 static uint32_t formatSize(GLenum format) {
RenderBuffer.h 120 return (uint32_t) ((mWidth * mHeight * formatSize(mFormat)) / 8.0f + 0.5f);
127 static uint32_t formatSize(GLenum format) {
PixelBuffer.cpp 52 mBuffer = new uint8_t[width * height * formatSize(format)];
FontRenderer.cpp 336 const size_t formatSize = PixelBuffer::formatSize(GL_RGBA);
337 const size_t borderSize = formatSize * TEXTURE_BORDER_SIZE;
338 size_t rowSize = formatSize * glyph.fWidth;
340 size_t dstStride = formatSize * cacheWidth;
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
StorageActivity.java 107 String.format(getString(R.string.storage_size), formatSize(INVALID_SIZE)),
141 actions.add(StorageItem.APPS.toAction(getResources(), formatSize(appsSize)));
142 actions.add(StorageItem.PICTURES_VIDEO.toAction(getResources(), formatSize(dcimSize)));
143 actions.add(StorageItem.AUDIO.toAction(getResources(), formatSize(musicSize)));
144 actions.add(StorageItem.DOWNLOADS.toAction(getResources(), formatSize(downloadsSize)));
145 actions.add(StorageItem.CACHED_DATA.toAction(getResources(), formatSize(cacheSize)));
146 actions.add(StorageItem.MISC.toAction(getResources(), formatSize(miscSize)));
147 actions.add(StorageItem.AVAILABLE.toAction(getResources(), formatSize(availSize)));
203 private String formatSize(long size) {
225 String.format(getString(R.string.storage_size), formatSize(totalSize)))
    [all...]
  /external/aac/libSYS/include/
wav_file.h 144 UINT formatSize;
  /packages/apps/Email/src/com/android/email/activity/
UiUtilities.java 33 public static String formatSize(Context context, long size) {
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
StorageVolumePreferenceCategory.java 296 mItemTotal.setSummary(formatSize(totalSize));
297 mItemAvailable.setSummary(formatSize(availSize));
325 mItemTotal.setSummary(formatSize(details.totalSize));
326 mItemAvailable.setSummary(formatSize(details.availSize));
357 pref.setSummary(formatSize(size));
398 private String formatSize(long size) {
  /external/aac/libSYS/src/
wav_file.cpp 157 FDKfread_EL(&wav->header.formatSize, 4, 1, wav->fp); /* should be 16 for PCM-format (uncompressed) */
168 offset = wav->header.formatSize - 16;
199 FDKfread(&wav->header.formatSize, 1, 1, wav->fp);
413 wav->header.formatSize = LittleEndian32(16);
  /frameworks/base/libs/hwui/font/
Font.cpp 220 uint32_t formatSize = PixelBuffer::formatSize(pixelBuffer->getFormat());
223 uint32_t srcStride = formatSize * cacheWidth;
232 if (formatSize == 1) {
236 bitmap[bitmapY + dstX + i] = cacheBuffer[cacheY + (glyph->mStartX + i)*formatSize + alpha_channel_offset];
CacheTexture.h 108 return (y * mWidth + x) * PixelBuffer::formatSize(mFormat);
  /external/fonttools/Lib/fontTools/ttLib/
sfnt.py 122 self.nextTableOffset = self.directorySize + numTables * self.DirectoryEntry.formatSize
344 sstruct.unpack(self.format, file.read(self.formatSize), self)
382 formatSize = sfntDirectoryEntrySize
387 formatSize = woffDirectoryEntrySize
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/
StorageResetActivity.java 95 return String.format(getString(R.string.storage_size), formatSize(mSize));
326 private String formatSize(long size) {
  /external/chromium_org/third_party/mesa/src/src/mesa/swrast/
s_blit.c 218 GLint formatSize = _mesa_get_format_bytes(readRb->Format);
229 srcMap = map + srcYpos * rowStride + srcXpos * formatSize;
230 dstMap = map + dstYpos * rowStride + dstXpos * formatSize;
  /external/mesa3d/src/mesa/swrast/
s_blit.c 218 GLint formatSize = _mesa_get_format_bytes(readRb->Format);
229 srcMap = map + srcYpos * rowStride + srcXpos * formatSize;
230 dstMap = map + dstYpos * rowStride + dstXpos * formatSize;

Completed in 762 milliseconds