/frameworks/volley/src/main/java/com/android/volley/ |
H A D | VolleyLog.java | 53 public static void v(String format, Object... args) { argument 55 Log.v(TAG, buildMessage(format, args)); 59 public static void d(String format, Object... args) { argument 60 Log.d(TAG, buildMessage(format, args)); 63 public static void e(String format, Object... args) { argument 64 Log.e(TAG, buildMessage(format, args)); 67 public static void e(Throwable tr, String format, Object... args) { argument 68 Log.e(TAG, buildMessage(format, args), tr); 71 public static void wtf(String format, Object... args) { argument 72 Log.wtf(TAG, buildMessage(format, arg 75 wtf(Throwable tr, String format, Object... args) argument 83 buildMessage(String format, Object... args) argument [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | configbq.c | 95 PCM *format; local 98 for (format = formats; format->numChannels; ++format) { 100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels, 101 format->milliHz / 1000, format->bitsPerSample); 109 format_pcm.numChannels = format->numChannels; 110 format_pcm.samplesPerSec = format->milliHz; 111 format_pcm.bitsPerSample = format [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 17 package android.text.format; 349 * Print the current value given the format string provided. See man 352 * @param format a string containing the desired format. 355 public String format(String format) { argument 357 return calculator.format(format); 361 * Return the current time in YYYYMMDDTHHMMSS<tz> format 373 * Parses a date-time string in either the RFC 2445 format o 1095 format(String format) argument [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | Overlay.cpp | 239 String8 timeStr(String8::format("%s f=%" PRId64 " (%zd)", 258 //const char* format = "%m-%d %T"; // matches log output 259 const char* format = "%T"; local 268 strftime(buf, bufLen, format, &tm); 361 String8::format("Android screenrecord v%d.%d", 383 String8 str(String8::format("%s: [%s]", kPropertyNames[i], valueBuf));
|
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 292 sp<AMessage> format; local 293 status_t err = mExtractor->getTrackFormat(i, &format); 297 CHECK(format->findString("mime", &mime)); 323 format, 332 while (format->findBuffer(AStringPrintf("csd-%d", j).c_str(), &buffer)) { 570 sp<AMessage> format; local 571 status_t err = state->mCodec->getOutputFormat(&format); 578 CHECK(format->findString("mime", &mime)); 583 CHECK(format->findInt32("channel-count", &channelCount)); 584 CHECK(format [all...] |
H A D | codec.cpp | 93 sp<AMessage> format; local 94 status_t err = extractor->getTrackFormat(i, &format); 98 CHECK(format->findString("mime", &mime)); 129 format, isVideo ? surface : NULL, 298 sp<AMessage> format; local 299 CHECK_EQ((status_t)OK, state->mCodec->getOutputFormat(&format)); 301 ALOGV("INFO_FORMAT_CHANGED: %s", format->debugString().c_str());
|
H A D | muxer.cpp | 101 sp<AMessage> format; local 102 status_t err = extractor->getTrackFormat(i, &format); 104 ALOGV("extractor getTrackFormat: %s", format->debugString().c_str()); 107 CHECK(format->findString("mime", &mime)); 122 CHECK(format->findInt32("width", &width)); 123 CHECK(format->findInt32("height", &height)); 128 CHECK(format->findInt64("durationUs", &duration)); 144 ssize_t newTrackIndex = muxer->addTrack(format);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | HTTPLiveSource.cpp | 108 sp<AMessage> format; local 112 &format); 118 return format; 292 sp<AMessage> format = getFormat(false /* audio */); local 295 if (format != NULL && 296 format->findInt32("width", &width) && format->findInt32("height", &height)) { 297 notifyVideoSizeChanged(format);
|
H A D | NuPlayerCCDecoder.cpp | 135 sp<AMessage> format = new AMessage(); local 137 format->setInt32("type", MEDIA_TRACK_TYPE_SUBTITLE); 138 format->setString("language", "und"); 139 format->setString("mime", MEDIA_MIMETYPE_TEXT_CEA_608); 142 format->setInt32("auto", isDefaultAuto); 143 format->setInt32("default", isDefaultAuto); 144 format->setInt32("forced", 0); 146 return format;
|
H A D | NuPlayerDecoderPassThrough.cpp | 62 void NuPlayer::DecoderPassThrough::onConfigure(const sp<AMessage> &format) { argument 72 format->findInt32("has-video", &hasVideo); 76 // format is different. 78 format, true /* offloadOnly */, hasVideo, 245 // will perform seamless format change, 255 // do seamless format change
|
/frameworks/av/media/libnbaio/ |
H A D | MonoPipe.cpp | 52 MonoPipe::MonoPipe(size_t reqFrames, const NBAIO_Format& format, bool writeCanBlock) : argument 53 NBAIO_Sink(format), 57 mBuffer(malloc(mMaxFrames * Format_frameSize(format))), 78 D = Format_sampleRate(format);
|
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 63 void SoftwareRenderer::resetFormatIfChanged(const sp<AMessage> &format) { argument 64 CHECK(format != NULL); 67 CHECK(format->findInt32("color-format", &colorFormatNew)); 70 CHECK(format->findInt32("stride", &widthNew)); 71 CHECK(format->findInt32("slice-height", &heightNew)); 74 if (!format->findRect( 185 if (!format->findInt32("rotation-degrees", &rotationDegrees)) { 207 void* /*platformPrivate*/, const sp<AMessage>& format) { 208 resetFormatIfChanged(format); 205 render( const void *data, size_t size, int64_t mediaTimeUs, nsecs_t renderTimeNs, void* , const sp<AMessage>& format) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | AString.cpp | 369 AString AStringPrintf(const char *format, ...) { argument 371 va_start(ap, format); 374 vasprintf(&buffer, format, ap);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ASessionDescription.cpp | 201 AString format; local 202 getFormat(index, &format); 204 const char *lastSpacePos = strrchr(format.c_str(), ' ');
|
/frameworks/av/media/libstagefright/wifi-display/ |
H A D | MediaSender.cpp | 68 ssize_t MediaSender::addTrack(const sp<AMessage> &format, uint32_t flags) { argument 74 info.mFormat = format; 79 CHECK(format->findString("mime", &mime));
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaFormat.cpp | 149 bool AMediaFormat_getInt32(AMediaFormat* format, const char *name, int32_t *out) { argument 150 return format->mFormat->findInt32(name, out); 154 bool AMediaFormat_getInt64(AMediaFormat* format, const char *name, int64_t *out) { argument 155 return format->mFormat->findInt64(name, out); 159 bool AMediaFormat_getFloat(AMediaFormat* format, const char *name, float *out) { argument 160 return format->mFormat->findFloat(name, out); 164 bool AMediaFormat_getSize(AMediaFormat* format, const char *name, size_t *out) { argument 165 return format->mFormat->findSize(name, out); 169 bool AMediaFormat_getBuffer(AMediaFormat* format, const char *name, void** data, size_t *outsize) { argument 171 if (format 200 AMediaFormat_setInt32(AMediaFormat* format, const char *name, int32_t value) argument 205 AMediaFormat_setInt64(AMediaFormat* format, const char *name, int64_t value) argument 210 AMediaFormat_setFloat(AMediaFormat* format, const char* name, float value) argument 215 AMediaFormat_setString(AMediaFormat* format, const char* name, const char* value) argument 221 AMediaFormat_setBuffer(AMediaFormat* format, const char* name, void* data, size_t size) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioResampler.cpp | 146 AudioResampler* AudioResampler::create(audio_format_t format, int inChannelCount, argument 217 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 222 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 227 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 232 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 239 if (format == AUDIO_FORMAT_PCM_FLOAT) { 243 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 270 LOG_ALWAYS_FATAL("Unsupported sample format %d quality %d channels",
|
H A D | BufferProviders.cpp | 22 #include <audio_utils/format.h> 139 audio_channel_mask_t outputChannelMask, audio_format_t format, 142 audio_bytes_per_sample(format) * audio_channel_count_from_out_mask(inputChannelMask), 143 audio_bytes_per_sample(format) * audio_channel_count_from_out_mask(outputChannelMask), 147 this, inputChannelMask, outputChannelMask, format, 161 mDownmixConfig.inputCfg.format = format; 162 mDownmixConfig.outputCfg.format = format; 279 audio_channel_mask_t outputChannelMask, audio_format_t format, 137 DownmixerBufferProvider( audio_channel_mask_t inputChannelMask, audio_channel_mask_t outputChannelMask, audio_format_t format, uint32_t sampleRate, int32_t sessionId, size_t bufferFrameCount) argument 278 RemixBufferProvider(audio_channel_mask_t inputChannelMask, audio_channel_mask_t outputChannelMask, audio_format_t format, size_t bufferFrameCount) argument 325 TimestretchBufferProvider(int32_t channelCount, audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) argument [all...] |
H A D | PatchPanel.cpp | 257 config.format = newPatch->mPlaybackThread->format(); 407 audio_format_t format = patch->mPlaybackThread->format(); local 413 format, 433 format,
|
/frameworks/av/services/audioflinger/tests/ |
H A D | resampler_tests.cpp | 76 const audio_format_t format = useFloat ? AUDIO_FORMAT_PCM_FLOAT : AUDIO_FORMAT_PCM_16_BIT; local 98 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); 116 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraFlashlight.cpp | 166 String8 id = String8::format("%d", i); 235 if (hasFlashUnitLocked(String8::format("%d", i))) { 237 String8::format("%d", i).string(), 279 if (hasFlashUnitLocked(String8::format("%d", i))) { 281 String8::format("%d", i).string(), 388 int32_t format = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED; local 393 res = mSurfaceTexture->setDefaultBufferFormat(format); 402 res = device->createStream(mSurface, width, height, format, 803 int32_t format = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED; local 808 res = mSurfaceTexture->setDefaultBufferFormat(format); [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3OutputStream.cpp | 36 uint32_t width, uint32_t height, int format, 39 /*maxSize*/0, format, dataSpace, rotation), 52 uint32_t width, uint32_t height, size_t maxSize, int format, 55 format, dataSpace, rotation), 60 if (format != HAL_PIXEL_FORMAT_BLOB) { 61 ALOGE("%s: Bad format for size-only stream: %d", __FUNCTION__, 62 format); 74 int format, 79 format, dataSpace, rotation), 316 camera3_stream::format); 34 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation) argument 50 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation) argument 72 Camera3OutputStream(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ProgressDialog.java | 140 String format = mProgressNumberFormat; 141 mProgressNumber.setText(String.format(format, progress, max)); 147 SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent)); 328 * Change the format of the small text showing current and maximum units 331 * @param format A string passed to {@link String#format String.format()}; 335 public void setProgressNumberFormat(String format) { argument 336 mProgressNumberFormat = format; 348 setProgressPercentFormat(NumberFormat format) argument [all...] |
/frameworks/base/core/java/android/service/carrier/ |
H A D | CarrierMessagingService.java | 94 * @param format the format of the PDUs, typically "3gpp" or "3gpp2" 100 public void onFilterSms(@NonNull MessagePdu pdu, @NonNull String format, int destPort, argument 409 public void filterSms(MessagePdu pdu, String format, int destPort, argument 411 onFilterSms(pdu, format, destPort, subId, new ResultCallback<Boolean>() {
|
/frameworks/base/core/java/android/view/ |
H A D | GraphicBuffer.java | 74 * @param format The format of each pixel as specified in {@link PixelFormat} 79 public static GraphicBuffer create(int width, int height, int format, int usage) { argument 80 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); 82 return new GraphicBuffer(width, height, format, usage, nativeObject); 90 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { argument 93 mFormat = format; 113 * Returns the pixel format of this buffer. The pixel format must be one of 272 int format 286 nCreateGraphicBuffer(int width, int height, int format, int usage) argument [all...] |