/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | Log.java | 30 public void debug(String format, Object... args) { in debug() argument 32 info(format, args); in debug() 36 public void info(String format, Object... args) { in info() argument 37 String s = String.format(format, args); in info() 41 public void error(String format, Object... args) { in error() argument 42 String s = String.format(format, args); in error() 46 public void exception(Throwable t, String format, Object... args) { in exception() argument 51 error(format + "\n" + sw.toString(), args); in exception()
|
/frameworks/base/libs/ui/ |
D | PixelFormat.cpp | 37 ssize_t bytesPerPixel(PixelFormat format) in bytesPerPixel() argument 40 status_t err = getPixelFormatInfo(format, &info); in bytesPerPixel() 44 ssize_t bitsPerPixel(PixelFormat format) in bitsPerPixel() argument 47 status_t err = getPixelFormatInfo(format, &info); in bitsPerPixel() 51 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info) in getPixelFormatInfo() argument 53 if (format < 0) in getPixelFormatInfo() 60 switch (format) { in getPixelFormatInfo() 69 info->format = format; in getPixelFormatInfo() 80 const GGLFormat *i = gglGetPixelFormatTable(&numEntries) + format; in getPixelFormatInfo() 81 bool valid = uint32_t(format) < numEntries; in getPixelFormatInfo() [all …]
|
D | GraphicBuffer.cpp | 46 format = in GraphicBuffer() 60 format = in GraphicBuffer() 77 format = inFormat; in GraphicBuffer() 122 if (handle && w==width && h==height && f==format && reqUsage==usage) in reallocate() 133 status_t GraphicBuffer::initSize(uint32_t w, uint32_t h, PixelFormat format, in initSize() argument 137 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride); in initSize() 141 this->format = format; in initSize() 182 sur->format = format; in lock() 212 buf[4] = format; in flatten() 255 format = buf[4]; in unflatten() [all …]
|
D | GraphicBufferAllocator.cpp | 68 rec.w, rec.s, rec.h, rec.format, rec.usage); in dump() 83 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, in alloc() argument 95 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); in alloc() 97 err = sw_gralloc_handle_t::alloc(w, h, format, usage, handle, stride); in alloc() 101 w, h, format, usage, err, strerror(-err)); in alloc() 110 rec.format = format; in alloc() 112 rec.size = h * stride[0] * bytesPerPixel(format); in alloc()
|
D | EGLUtils.cpp | 58 PixelFormat format, in selectConfigForPixelFormat() argument 84 if (nativeVisualId>0 && format == nativeVisualId) { in selectConfigForPixelFormat() 107 int format; in selectConfigForNativeWindow() local 112 if ((err = window->query(window, NATIVE_WINDOW_FORMAT, &format)) < 0) { in selectConfigForNativeWindow() 116 return selectConfigForPixelFormat(dpy, attrs, format, outConfig); in selectConfigForNativeWindow()
|
/frameworks/base/services/surfaceflinger/ |
D | TextureManager.cpp | 76 status_t TextureManager::initTexture(Image* pImage, int32_t format) in initTexture() argument 90 if (format && isYuvFormat(format)) { in initTexture() 106 bool TextureManager::isSupportedYuvFormat(int format) in isSupportedYuvFormat() argument 108 switch (format) { in isSupportedYuvFormat() 115 bool TextureManager::isYuvFormat(int format) in isYuvFormat() argument 117 switch (format) { in isYuvFormat() 128 if (format>=0x100 && format<=0x1FF) in isYuvFormat() 160 initTexture(pImage, buffer->format); in initEglImage() 213 int unpack = __builtin_ctz(t.stride * bytesPerPixel(t.format)); in loadTexture() 251 if (t.format == HAL_PIXEL_FORMAT_RGB_565) { in loadTexture() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | DateTimeView.java | 26 import android.text.format.Time; 145 DateFormat format; in update() local 148 format = mLastFormat; in update() 152 format = getTimeFormat(); in update() 155 format = getDateFormat(); in update() 160 mLastFormat = format; in update() 164 String text = format.format(mTime); in update() 194 if (android.text.format.DateFormat.is24HourFormat(context)) { 199 String format = context.getString(res); 200 return new SimpleDateFormat(format); [all …]
|
/frameworks/base/voip/java/android/net/sip/ |
D | SimpleSessionDescription.java | 69 mFields.parse(String.format("o=- %d %d %s", sessionId, in SimpleSessionDescription() 96 for (String format : parts[3].split(" ")) { in SimpleSessionDescription() 97 media.setFormat(format, null); in SimpleSessionDescription() 290 public String getFmtp(String format) { in getFmtp() argument 291 return super.get("a=fmtp:" + format, ' '); in getFmtp() 298 public void setFormat(String format, String fmtp) { in setFormat() argument 299 mFormats.remove(format); in setFormat() 300 mFormats.add(format); in setFormat() 301 super.set("a=rtpmap:" + format, ' ', null); in setFormat() 302 super.set("a=fmtp:" + format, ' ', fmtp); in setFormat() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | Clock.java | 30 import android.text.format.DateFormat; 144 String format = context.getString(res); in getSmallTime() local 145 if (!format.equals(mClockFormatString)) { in getSmallTime() 154 for (int i = 0; i < format.length(); i++) { in getSmallTime() 155 char c = format.charAt(i); in getSmallTime() 169 while (a > 0 && Character.isWhitespace(format.charAt(a-1))) { in getSmallTime() 172 format = format.substring(0, a) + MAGIC1 + format.substring(a, b) in getSmallTime() 173 + "a" + MAGIC2 + format.substring(b + 1); in getSmallTime() 177 mClockFormat = sdf = new SimpleDateFormat(format); in getSmallTime() 178 mClockFormatString = format; in getSmallTime() [all …]
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/mockril/ |
D | MockRilTest.java | 65 assertTrue(String.format("expected rs.state == 0 was %d", rs.getState()), in testProtobufSerDes() 68 assertTrue(String.format("expected rs.state == 1 was %d", rs.getState()), in testProtobufSerDes() 73 assertTrue(String.format("expected rsNew.state == 1 was %d", rs.getState()), in testProtobufSerDes() 96 assertTrue(String.format("expected mhd.header.cmd == 0 was %d",respMsg.getCmd()), in testEchoMsg() 98 assertTrue(String.format("expected mhd.header.token == 1 was %d",respMsg.getToken()), in testEchoMsg() 100 assertTrue(String.format("expected mhd.header.status == 2 was %d", respMsg.getStatus()), in testEchoMsg() 102 assertTrue(String.format("expected mhd.data[0] == 3 was %d", respMsg.getData(0)), in testEchoMsg() 104 assertTrue(String.format("expected mhd.data[1] == 4 was %d", respMsg.getData(1)), in testEchoMsg() 106 assertTrue(String.format("expected mhd.data[2] == 5 was %d", respMsg.getData(2)), in testEchoMsg() 127 assertTrue(String.format("expected cmd == 12345 was %d", mhResult.getCmd()), in testGetAs() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | LoggingPrintStream.java | 168 public PrintStream format(String format, Object... args) { in format() method in LoggingPrintStream 169 return format(Locale.getDefault(), format, args); in format() 173 public PrintStream printf(String format, Object... args) { in printf() argument 174 return format(format, args); in printf() 178 public PrintStream printf(Locale l, String format, Object... args) { in printf() argument 179 return format(l, format, args); in printf() 185 public synchronized PrintStream format( in format() method in LoggingPrintStream 186 Locale l, String format, Object... args) { in format() argument 187 if (format == null) { in format() 191 formatter.format(l, format, args); in format()
|
/frameworks/base/graphics/java/android/graphics/ |
D | YuvImage.java | 79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { in YuvImage() argument 80 if (format != ImageFormat.NV21 && in YuvImage() 81 format != ImageFormat.YUY2) { in YuvImage() 97 mStrides = calculateStrides(width, format); in YuvImage() 103 mFormat = format; in YuvImage() 199 private int[] calculateStrides(int width, int format) { in calculateStrides() argument 201 if (format == ImageFormat.NV21) { in calculateStrides() 206 if (format == ImageFormat.YUY2) { in calculateStrides() 238 int format, int width, int height, int[] offsets, int[] strides, in nativeCompressToJpeg() argument
|
/frameworks/base/services/java/com/android/server/ |
D | NetworkManagementService.java | 203 String.format("Invalid event from daemon (%s)", raw)); in onEvent() 216 String.format("Invalid event from daemon (%s)", raw)); in onEvent() 269 Slog.d(TAG, String.format("rsp <%s>", rsp)); in getInterfaceConfig() 280 String.format("Expected code %d, but got %d", in getInterfaceConfig() 285 String.format("Invalid response from daemon (%s)", rsp)); in getInterfaceConfig() 306 String.format("Invalid response from daemon (%s)", rsp)); in getInterfaceConfig() 308 Slog.d(TAG, String.format("flags <%s>", cfg.interfaceFlags)); in getInterfaceConfig() 314 String cmd = String.format("interface setcfg %s %s %s %s", iface, in setInterfaceConfig() 358 throw new IllegalStateException(String.format("Unexpected response code %d", code)); in getIpForwardingEnabled() 367 mConnector.doCommand(String.format("ipfwd %sable", (enable ? "en" : "dis"))); in setIpForwardingEnabled() [all …]
|
D | NativeDaemonConnector.java | 119 if (LOCAL_LOGD) Slog.d(TAG, String.format("RCV <- {%s}", event)); in listenToSocket() 128 Slog.w(TAG, String.format( in listenToSocket() 132 Slog.e(TAG, String.format( in listenToSocket() 143 Slog.w(TAG, String.format("Bad msg (%s)", event)); in listenToSocket() 198 if (LOCAL_LOGD) Slog.d(TAG, String.format("SND -> {%s} {%s}", command, argument)); in sendCommand() 234 if (LOCAL_LOGD) Slog.d(TAG, String.format("RSP <- {%s}", line)); in doCommand() 240 String.format("Invalid response from daemon (%s)", line)); in doCommand() 282 if (LOCAL_LOGD) Slog.d(TAG, String.format("List terminated with {%s}", line)); in doListCommand() 285 … Slog.w(TAG, String.format("Recv'd %d lines after end of list {%s}", (last-i), cmd)); in doListCommand() 287 Slog.w(TAG, String.format("ExtraData <%s>", rsp.get(i))); in doListCommand() [all …]
|
/frameworks/base/libs/surfaceflinger_client/ |
D | ISurface.cpp | 37 : w(0), h(0), hor_stride(0), ver_stride(0), format(0), in BufferHeap() 44 PixelFormat format, const sp<IMemoryHeap>& heap) in BufferHeap() argument 46 format(format), transform(0), flags(0), heap(heap) in BufferHeap() 52 PixelFormat format, uint32_t transform, uint32_t flags, in BufferHeap() argument 55 format(format), transform(transform), flags(flags), heap(heap) in BufferHeap() 75 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) in requestBuffer() argument 82 data.writeInt32(format); in requestBuffer() 108 data.writeInt32(buffers.format); in registerBuffers() 133 uint32_t w, uint32_t h, int32_t format, int32_t orientation) in createOverlay() argument 139 data.writeInt32(format); in createOverlay() [all …]
|
/frameworks/base/services/audioflinger/ |
D | AudioDumpInterface.cpp | 60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument 68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream() 70 lFormat = outFinal->format(); in openOutputStream() 74 if (format != 0) { in openOutputStream() 75 if (*format != 0) { in openOutputStream() 76 lFormat = *format; in openOutputStream() 78 *format = lFormat; in openOutputStream() 126 AudioStreamIn* AudioDumpInterface::openInputStream(uint32_t devices, int *format, uint32_t *channel… in openInputStream() argument 134 …inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream() 136 lFormat = inFinal->format(); in openInputStream() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 17 package android.text.format; 75 value = String.format("%.2f", result); in formatFileSize() 78 value = String.format("%.1f", result); in formatFileSize() 80 value = String.format("%.2f", result); in formatFileSize() 84 value = String.format("%.0f", result); in formatFileSize() 86 value = String.format("%.2f", result); in formatFileSize() 89 value = String.format("%.0f", result); in formatFileSize()
|
D | DateFormat.java | 17 package android.text.format; 287 String format = getDateFormatStringForSetting(context, value); in getDateFormatForSetting() local 289 return new java.text.SimpleDateFormat(format); in getDateFormatForSetting() 302 value = String.format(template, "yyyy", "MM", "dd"); in getDateFormatStringForSetting() 304 value = String.format(template, "yyyy", "dd", "MM"); in getDateFormatStringForSetting() 308 value = String.format(template, "MM", "dd", "yyyy"); in getDateFormatStringForSetting() 310 value = String.format(template, "MM", "yyyy", "dd"); in getDateFormatStringForSetting() 314 value = String.format(template, "dd", "MM", "yyyy"); in getDateFormatStringForSetting() 316 value = String.format(template, "dd", "yyyy", "MM"); in getDateFormatStringForSetting() 406 public static final CharSequence format(CharSequence inFormat, long inTimeInMillis) { in format() method in DateFormat [all …]
|
/frameworks/base/media/libmedia/ |
D | AudioRecord.cpp | 50 int format, in getMinFrameCount() argument 54 if (AudioSystem::getInputBufferSize(sampleRate, format, channelCount, &size) in getMinFrameCount() 62 sampleRate, format, channelCount); in getMinFrameCount() 69 if (AudioSystem::isLinearPCM(format)) { in getMinFrameCount() 70 size /= channelCount * (format == AudioSystem::PCM_16_BIT ? 2 : 1); in getMinFrameCount() 87 int format, in AudioRecord() argument 97 mStatus = set(inputSource, sampleRate, format, channels, in AudioRecord() 120 int format, in set() argument 144 if (format == 0) { in set() 145 format = AudioSystem::PCM_16_BIT; in set() [all …]
|
/frameworks/base/opengl/libagl/ |
D | mipmap.cpp | 34 const GGLFormat& pixelFormat(c->rasterizer.formats[base->format]); in buildAPyramid() 48 base->format, base->compressedFormat, bpr) != NO_ERROR) { in buildAPyramid() 56 if (base->format == GGL_PIXEL_FORMAT_RGB_565) in buildAPyramid() 79 else if (base->format == GGL_PIXEL_FORMAT_RGBA_5551) in buildAPyramid() 99 else if (base->format == GGL_PIXEL_FORMAT_RGBA_8888) in buildAPyramid() 126 else if ((base->format == GGL_PIXEL_FORMAT_RGB_888) || in buildAPyramid() 127 (base->format == GGL_PIXEL_FORMAT_LA_88) || in buildAPyramid() 128 (base->format == GGL_PIXEL_FORMAT_A_8) || in buildAPyramid() 129 (base->format == GGL_PIXEL_FORMAT_L_8)) in buildAPyramid() 132 switch (base->format) { in buildAPyramid() [all …]
|
/frameworks/base/native/graphics/jni/ |
D | bitmap.cpp | 39 info->format = ANDROID_BITMAP_FORMAT_RGBA_8888; in AndroidBitmap_getInfo() 42 info->format = ANDROID_BITMAP_FORMAT_RGB_565; in AndroidBitmap_getInfo() 45 info->format = ANDROID_BITMAP_FORMAT_RGBA_4444; in AndroidBitmap_getInfo() 48 info->format = ANDROID_BITMAP_FORMAT_A_8; in AndroidBitmap_getInfo() 51 info->format = ANDROID_BITMAP_FORMAT_NONE; in AndroidBitmap_getInfo()
|
/frameworks/base/include/surfaceflinger/ |
D | ISurface.h | 63 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) = 0; 87 PixelFormat format, const sp<IMemoryHeap>& heap); 91 PixelFormat format, uint32_t transform, uint32_t flags, 100 PixelFormat format; variable 111 uint32_t w, uint32_t h, int32_t format, int32_t orientation) = 0;
|
/frameworks/base/core/tests/hosttests/src/android/net/ |
D | DownloadManagerHostTests.java | 93 mPMUtils.installAppAndVerifyExistsOnDevice(String.format("%s%s%s", getTestAppPath(), in testLargeDownloadOverWiFi() 110 mPMUtils.installAppAndVerifyExistsOnDevice(String.format("%s%s%s", getTestAppPath(), in testDownloadManagerSingleReboot() 132 mPMUtils.installAppAndVerifyExistsOnDevice(String.format("%s%s%s", getTestAppPath(), in testDownloadManagerMultipleReboots() 165 mPMUtils.installAppAndVerifyExistsOnDevice(String.format("%s%s%s", getTestAppPath(), in testDownloadMultipleWiFiEnableDisable() 180 mPMUtils.installAppAndVerifyExistsOnDevice(String.format("%s%s%s", getTestAppPath(), in testDownloadMultipleSwitching() 195 mPMUtils.installAppAndVerifyExistsOnDevice(String.format("%s%s%s", getTestAppPath(), in testDownloadMultipleAirplaneModeEnableDisable() 210 mPMUtils.installAppAndVerifyExistsOnDevice(String.format("%s%s%s", getTestAppPath(), in testDownloadMultipleSimultaneously()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
D | WifiStressTest.java | 151 writeOutput(String.format("iteration %d out of %d", in testWifiScanning() 153 writeOutput(String.format("average scanning time is %d", averageScanTime)); in testWifiScanning() 154 writeOutput(String.format("ssid appear %d out of %d scan iterations", in testWifiScanning() 188 log(String.format("scan result for %s is: %s", sr.SSID, sr.toString())); in testWifiScanning() 189 log(String.format("signal level for %s is %d ", sr.SSID, sr.level)); in testWifiScanning() 200 writeOutput(String.format("iteration %d out of %d", in testWifiScanning() 202 writeOutput(String.format("average scanning time is %d", scanTimeSum/mScanIterations)); in testWifiScanning() 203 writeOutput(String.format("ssid appear %d out of %d scan iterations", in testWifiScanning() 246 writeOutput(String.format("iteration %d out of %d", in testWifiReconnectionAfterSleep() 281 writeOutput(String.format("iteration %d out of %d", in testWifiReconnectionAfterSleep()
|
/frameworks/base/include/media/ |
D | AudioRecord.h | 69 int format; variable 113 int format, 152 int format = 0, 178 int format = 0, 204 int format() const; 350 int format,
|