/frameworks/support/v17/leanback/tests/ |
D | generatev4.py | 32 print "copy {}Fragment to {}SupportFragment".format(w, w) 34 file = open('java/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') 35 outfile = open('java/android/support/v17/leanback/app/{}SupportFragment.java'.format(w), 'w') 38 …file.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w)) 42 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w)) 55 print "copy {}FrgamentTestBase to {}SupportFragmentTestBase".format(w, w) 57 file = open('java/android/support/v17/leanback/app/{}FragmentTestBase.java'.format(w), 'r') 58 …outfile = open('java/android/support/v17/leanback/app/{}SupportFragmentTestBase.java'.format(w), '… 61 …te("/* This file is auto-generated from {}FrgamentTestBase.java. DO NOT MODIFY. */\n\n".format(w)) 65 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w)) [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | StreamConfigurationMap.java | 266 public Size[] getInputSizes(final int format) { in getInputSizes() argument 267 return getPublicFormatSizes(format, /*output*/false, /*highRes*/false); in getInputSizes() 294 public boolean isOutputSupportedFor(int format) { in isOutputSupportedFor() argument 295 checkArgumentFormat(format); in isOutputSupportedFor() 297 int internalFormat = imageFormatToInternal(format); in isOutputSupportedFor() 298 int dataspace = imageFormatToDataspace(format); in isOutputSupportedFor() 487 public Size[] getOutputSizes(int format) { in getOutputSizes() argument 488 return getPublicFormatSizes(format, /*output*/true, /*highRes*/ false); in getOutputSizes() 555 throw new IllegalArgumentException(String.format( in getHighSpeedVideoFpsRangesFor() 636 throw new IllegalArgumentException(String.format( in getHighSpeedVideoSizesFor() [all …]
|
D | ReprocessFormatsMap.java | 86 String.format("Input %x had no output format length listed", inputFormat)); in ReprocessFormatsMap() 101 String.format( in ReprocessFormatsMap() 134 final int format = mEntry[i]; in getInputs() local 141 String.format("Input %x had no output format length listed", format)); in getInputs() 151 String.format( in getInputs() 153 "expected: %d)", format, left, length)); in getInputs() 160 inputs[j] = format; in getInputs() 178 public int[] getOutputs(final int format) { in getOutputs() argument 189 String.format("Input %x had no output format length listed", format)); in getOutputs() 199 String.format( in getOutputs() [all …]
|
/frameworks/av/media/libstagefright/omx/ |
D | SoftVideoEncoderOMXComponent.cpp | 101 def.format.video.pNativeRender = NULL; in initPorts() 102 def.format.video.nFrameWidth = mWidth; in initPorts() 103 def.format.video.nFrameHeight = mHeight; in initPorts() 104 def.format.video.nStride = def.format.video.nFrameWidth; in initPorts() 105 def.format.video.nSliceHeight = def.format.video.nFrameHeight; in initPorts() 106 def.format.video.nBitrate = 0; in initPorts() 108 def.format.video.xFramerate = mFramerate; in initPorts() 109 def.format.video.bFlagErrorConcealment = OMX_FALSE; in initPorts() 111 def.format.video.cMIMEType = const_cast<char *>("video/raw"); in initPorts() 112 def.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused; in initPorts() [all …]
|
D | SoftVideoDecoderOMXComponent.cpp | 114 def.format.video.cMIMEType = const_cast<char *>(mimeType); in initPorts() 115 def.format.video.pNativeRender = NULL; in initPorts() 117 def.format.video.nBitrate = 0; in initPorts() 118 def.format.video.xFramerate = 0; in initPorts() 119 def.format.video.bFlagErrorConcealment = OMX_FALSE; in initPorts() 120 def.format.video.eCompressionFormat = mCodingType; in initPorts() 121 def.format.video.eColorFormat = OMX_COLOR_FormatUnused; in initPorts() 122 def.format.video.pNativeWindow = NULL; in initPorts() 136 def.format.video.cMIMEType = const_cast<char *>("video/raw"); in initPorts() 137 def.format.video.pNativeRender = NULL; in initPorts() [all …]
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/ |
D | InstanceAdapter.java | 24 private final String format; field in InstanceAdapter 26 public InstanceAdapter(String format) { in InstanceAdapter() argument 27 this.format = format; in InstanceAdapter() 32 view.setText(String.format(format, text, "foo", "bar", "baz")); in setInstanceAttr0() 37 view.setText(String.format(format, text, text2, "foo", "bar")); in setInstanceAttr1() 42 view.setText(String.format(format, oldText, text, "foo", "bar")); in setInstanceAttr3() 48 view.setText(String.format(format, oldText1, oldText2, text1, text2)); in setInstanceAttr4() 53 view.setText(String.format("%s %s", text, component == null ? "null" : "component")); in setInstanceAttr6() 58 … view.setText(String.format(format, text, component == null ? "null" : "component", "bar", "baz")); in setInstanceAttr7() 63 view.setText(String.format(format, text, text2, component == null ? "null" : "component", in setInstanceAttr8()
|
/frameworks/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() 37 public void debugNoln(String format, Object... args) { in debugNoln() argument 39 String s = String.format(format, args); in debugNoln() 44 public void info(String format, Object... args) { in info() argument 45 String s = String.format(format, args); in info() 49 public void error(String format, Object... args) { in error() argument 50 String s = String.format(format, args); in error() 54 public void exception(Throwable t, String format, Object... args) { in exception() argument 59 error(format + "\n" + sw.toString(), args); in exception()
|
/frameworks/rs/tests/java_api/RSUnitTests/ |
D | RSUnitTests.py | 200 ' $(my_rs_unit_tests_path)/UnitTest.java\\\n'.format( 208 .format(JavaFileForUnitTest(test)) 212 ' $(my_rs_unit_tests_path)/{}\\\n'.format( 247 return 'UT_{}.java'.format(test) 256 return ['{}.rs'.format(test)] 360 .format(SupportLibGenTestDir())) 403 .format(SupportLib19MakefileLocation())) 411 make_target_name = 'RSTestForward_{}'.format(build_tool_version_name) 469 '</manifest>\n'.format(package, package) 500 'my_rs_path :=\n'.format( [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | SimpleFrame.java | 23 import android.filterfw.format.ObjectFormat; 35 SimpleFrame(FrameFormat format, FrameManager frameManager) { in SimpleFrame() argument 36 super(format, frameManager); in SimpleFrame() 37 initWithFormat(format); in SimpleFrame() 42 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE); in wrapObject() local 43 SimpleFrame result = new SimpleFrame(format, frameManager); in wrapObject() 48 private void initWithFormat(FrameFormat format) { in initWithFormat() argument 49 final int count = format.getLength(); in initWithFormat() 50 final int baseType = format.getBaseType(); in initWithFormat() 132 MutableFrameFormat format = getFormat().mutableCopy(); in setFormatObjectClass() local [all …]
|
D | SimpleFrameManager.java | 37 public Frame newFrame(FrameFormat format) { in newFrame() argument 38 return createNewFrame(format); in newFrame() 42 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { in newBoundFrame() argument 44 switch(format.getTarget()) { in newBoundFrame() 46 GLFrame glFrame = new GLFrame(format, this, bindingType, bindingId); in newBoundFrame() 54 + FrameFormat.targetToString(format.getTarget()) + "!"); in newBoundFrame() 59 private Frame createNewFrame(FrameFormat format) { in createNewFrame() argument 61 switch(format.getTarget()) { in createNewFrame() 63 result = new SimpleFrame(format, this); in createNewFrame() 67 result = new NativeFrame(format, this); in createNewFrame() [all …]
|
/frameworks/av/media/libnbaio/ |
D | NBAIO.cpp | 25 size_t Format_frameSize(const NBAIO_Format& format) in Format_frameSize() argument 27 return format.mFrameSize; in Format_frameSize() 32 unsigned Format_sampleRate(const NBAIO_Format& format) in Format_sampleRate() argument 34 if (!Format_isValid(format)) { in Format_sampleRate() 37 return format.mSampleRate; in Format_sampleRate() 40 unsigned Format_channelCount(const NBAIO_Format& format) in Format_channelCount() argument 42 if (!Format_isValid(format)) { in Format_channelCount() 45 return format.mChannelCount; in Format_channelCount() 49 audio_format_t format) in Format_from_SR_C() argument 51 if (sampleRate == 0 || channelCount == 0 || !audio_is_valid_format(format)) { in Format_from_SR_C() [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | Log.java | 80 public static void d(String prefix, String format, Object... args) { in d() argument 83 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in d() 85 android.util.Slog.d(TAG, buildMessage(prefix, format, args)); in d() 89 public static void d(Object objectPrefix, String format, Object... args) { in d() argument 92 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in d() 94 android.util.Slog.d(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in d() 98 public static void i(String prefix, String format, Object... args) { in i() argument 100 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in i() 104 public static void i(Object objectPrefix, String format, Object... args) { in i() argument 106 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in i() [all …]
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcCommit.cpp | 169 uint32_t format; member in Rectangle 240 uint32_t format; member 276 uint32_t maxOverlays(uint32_t format, bool allowOverlap); 277 list<uint32_t> supportedTransforms(uint32_t format); 278 list<uint32_t> supportedBlends(uint32_t format); 279 uint32_t dfMinWidth(uint32_t format); 280 uint32_t dfMinHeight(uint32_t format); 281 uint32_t dfMaxWidth(uint32_t format); 282 uint32_t dfMaxHeight(uint32_t format); 283 HwcTestDim dfMinDim(uint32_t format); [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | configbq.c | 95 PCM *format; in main() local 98 for (format = formats; format->numChannels; ++format) { in main() 100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels, in main() 101 format->milliHz / 1000, format->bitsPerSample); in main() 109 format_pcm.numChannels = format->numChannels; in main() 110 format_pcm.samplesPerSec = format->milliHz; in main() 111 format_pcm.bitsPerSample = format->bitsPerSample; in main() 112 format_pcm.containerSize = format->bitsPerSample; in main() 150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / in main() 151 format->milliHz; in main() [all …]
|
/frameworks/base/tools/bit/ |
D | print.cpp | 59 print_status(const char* format, ...) in print_status() argument 64 va_start(args, format); in print_status() 65 vfprintf(stdout, format, args); in print_status() 91 print_error(const char* format, ...) in print_error() argument 96 va_start(args, format); in print_error() 97 vfprintf(stderr, format, args); in print_error() 105 print_warning(const char* format, ...) in print_warning() argument 110 va_start(args, format); in print_warning() 111 vfprintf(stderr, format, args); in print_warning() 119 print_one_line(const char* format, ...) in print_one_line() argument [all …]
|
/frameworks/av/media/ndk/ |
D | NdkMediaFormat.cpp | 153 bool AMediaFormat_getInt32(AMediaFormat* format, const char *name, int32_t *out) { in AMediaFormat_getInt32() argument 154 return format->mFormat->findInt32(name, out); in AMediaFormat_getInt32() 158 bool AMediaFormat_getInt64(AMediaFormat* format, const char *name, int64_t *out) { in AMediaFormat_getInt64() argument 159 return format->mFormat->findInt64(name, out); in AMediaFormat_getInt64() 163 bool AMediaFormat_getFloat(AMediaFormat* format, const char *name, float *out) { in AMediaFormat_getFloat() argument 164 return format->mFormat->findFloat(name, out); in AMediaFormat_getFloat() 168 bool AMediaFormat_getSize(AMediaFormat* format, const char *name, size_t *out) { in AMediaFormat_getSize() argument 169 return format->mFormat->findSize(name, out); in AMediaFormat_getSize() 173 bool AMediaFormat_getBuffer(AMediaFormat* format, const char *name, void** data, size_t *outsize) { in AMediaFormat_getBuffer() argument 175 if (format->mFormat->findBuffer(name, &buf)) { in AMediaFormat_getBuffer() [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | ion_buffer.cpp | 20 IonBuffer::IonBuffer(uint32_t width, uint32_t height, uint32_t format, in IonBuffer() argument 23 Alloc(width, height, kDefaultGraphicBufferLayerCount, format, usage); in IonBuffer() 27 uint32_t stride, uint32_t format, uint64_t usage) in IonBuffer() argument 29 format, usage) {} in IonBuffer() 32 uint32_t layer_count, uint32_t stride, uint32_t format, in IonBuffer() argument 38 handle, width, height, layer_count, stride, format, usage); in IonBuffer() 40 Import(handle, width, height, layer_count, stride, format, usage); in IonBuffer() 48 handle(), width(), height(), stride(), format(), usage()); in ~IonBuffer() 75 uint32_t format, uint64_t usage) { in Alloc() argument 78 "usage=%" PRIx64, width, height, layer_count, format, usage); in Alloc() [all …]
|
/frameworks/av/include/media/nbaio/ |
D | NBAIO.h | 71 size_t Format_frameSize(const NBAIO_Format& format); 75 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format); 78 unsigned Format_sampleRate(const NBAIO_Format& format); 81 unsigned Format_channelCount(const NBAIO_Format& format); 88 bool Format_isValid(const NBAIO_Format& format); 128 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; } in format() function 131 NBAIO_Port(const NBAIO_Format& format) : mNegotiated(false), mFormat(format), in NBAIO_Port() argument 132 mFrameSize(Format_frameSize(format)) { } in NBAIO_Port() 226 NBAIO_Sink(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesWritten(0) in NBAIO_Port() argument 324 NBAIO_Source(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesRead(0) in NBAIO_Port() argument
|
/frameworks/av/media/libnbaio/include_mono/media/nbaio/ |
D | NBAIO.h | 71 size_t Format_frameSize(const NBAIO_Format& format); 75 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format); 78 unsigned Format_sampleRate(const NBAIO_Format& format); 81 unsigned Format_channelCount(const NBAIO_Format& format); 88 bool Format_isValid(const NBAIO_Format& format); 128 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; } in format() function 131 NBAIO_Port(const NBAIO_Format& format) : mNegotiated(false), mFormat(format), in NBAIO_Port() argument 132 mFrameSize(Format_frameSize(format)) { } in NBAIO_Port() 226 NBAIO_Sink(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesWritten(0) in NBAIO_Port() argument 324 NBAIO_Source(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesRead(0) in NBAIO_Port() argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | LogcatLog.java | 52 public LogMessage err(String format) { in err() argument 53 return makeLogMessage(Log.ERROR, format); in err() 57 public LogMessage warn(String format) { in warn() argument 58 return makeLogMessage(Log.WARN, format); in warn() 62 public LogMessage info(String format) { in info() argument 63 return makeLogMessage(Log.INFO, format); in info() 67 public LogMessage trace(String format) { in trace() argument 68 return makeLogMessage(Log.DEBUG, format); in trace() 72 public LogMessage dump(String format) { in dump() argument 73 return makeLogMessage(Log.VERBOSE, format); in dump() [all …]
|
/frameworks/av/media/libstagefright/ |
D | BufferImpl.cpp | 32 SharedMemoryBuffer::SharedMemoryBuffer(const sp<AMessage> &format, const sp<IMemory> &mem) in SharedMemoryBuffer() argument 33 : MediaCodecBuffer(format, new ABuffer(mem->pointer(), mem->size())), in SharedMemoryBuffer() 37 SharedMemoryBuffer::SharedMemoryBuffer(const sp<AMessage> &format, const sp<TMemory> &mem) in SharedMemoryBuffer() argument 38 : MediaCodecBuffer(format, new ABuffer(mem->getPointer(), mem->getSize())), in SharedMemoryBuffer() 42 SecureBuffer::SecureBuffer(const sp<AMessage> &format, const void *ptr, size_t size) in SecureBuffer() argument 43 : MediaCodecBuffer(format, new ABuffer(nullptr, size)), in SecureBuffer() 48 const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size) in SecureBuffer() argument 49 : MediaCodecBuffer(format, new ABuffer(nullptr, size)), in SecureBuffer()
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 453 writeOutput(String.format("enable() completed in 0 ms")); in enable() 459 fail(String.format("enable() timeout: state=%d (expected %d)", btState, in enable() 496 writeOutput(String.format("disable() completed in 0 ms")); in disable() 502 fail(String.format("disable() timeout: state=%d (expected %d)", btState, in disable() 546 writeOutput(String.format("discoverable() completed in 0 ms")); in discoverable() 552 fail(String.format("discoverable() timeout: scanMode=%d (expected %d)", scanMode, in discoverable() 596 writeOutput(String.format("undiscoverable() completed in 0 ms")); in undiscoverable() 602 fail(String.format("undiscoverable() timeout: scanMode=%d (expected %d)", scanMode, in undiscoverable() 631 writeOutput(String.format("startScan() completed in %d ms", in startScan() 641 fail(String.format("startScan() timeout: isDiscovering=%b, flags=0x%x (expected 0x%x)", in startScan() [all …]
|
/frameworks/base/location/java/android/location/ |
D | GpsNavigationMessage.java | 295 final String format = " %-15s = %s\n"; in toString() local 298 builder.append(String.format(format, "Type", getTypeString())); in toString() 299 builder.append(String.format(format, "Prn", mPrn)); in toString() 300 builder.append(String.format(format, "Status", getStatusString())); in toString() 301 builder.append(String.format(format, "MessageId", mMessageId)); in toString() 302 builder.append(String.format(format, "SubmessageId", mSubmessageId)); in toString() 304 builder.append(String.format(format, "Data", "{")); in toString()
|
D | GpsMeasurement.java | 1249 final String format = " %-29s = %s\n"; in toString() local 1253 builder.append(String.format(format, "Prn", mPrn)); in toString() 1255 builder.append(String.format(format, "TimeOffsetInNs", mTimeOffsetInNs)); in toString() 1257 builder.append(String.format(format, "State", getStateString())); in toString() 1259 builder.append(String.format( in toString() 1266 builder.append(String.format(format, "Cn0InDbHz", mCn0InDbHz)); in toString() 1268 builder.append(String.format( in toString() 1274 builder.append(String.format( in toString() 1275 format, in toString() 1279 builder.append(String.format( in toString() [all …]
|
D | GnssMeasurement.java | 1005 final String format = " %-29s = %s\n"; in toString() local 1009 builder.append(String.format(format, "Svid", mSvid)); in toString() 1010 builder.append(String.format(format, "ConstellationType", mConstellationType)); in toString() 1011 builder.append(String.format(format, "TimeOffsetNanos", mTimeOffsetNanos)); in toString() 1013 builder.append(String.format(format, "State", getStateString())); in toString() 1015 builder.append(String.format( in toString() 1022 builder.append(String.format(format, "Cn0DbHz", mCn0DbHz)); in toString() 1024 builder.append(String.format( in toString() 1031 builder.append(String.format( in toString() 1032 format, in toString() [all …]
|