/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 | 102 sp<AMessage> format; local 103 status_t err = extractor->getTrackFormat(i, &format); 105 ALOGV("extractor getTrackFormat: %s", format->debugString().c_str()); 108 CHECK(format->findString("mime", &mime)); 123 CHECK(format->findInt32("width", &width)); 124 CHECK(format->findInt32("height", &height)); 129 CHECK(format->findInt64("durationUs", &duration)); 145 ssize_t newTrackIndex = muxer->addTrack(format);
|
/frameworks/av/include/media/ |
H A D | AudioPolicy.h | 82 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, argument 84 mCriteria(criteria), mMixType(mixType), mFormat(format),
|
/frameworks/av/media/libmedia/ |
H A D | MediaCodecInfo.cpp | 111 void MediaCodecInfo::CapabilitiesBuilder::addColorFormat(uint32_t format) { argument 112 mColorFormats.push(format);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | HTTPLiveSource.cpp | 104 sp<AMessage> format; local 110 &format); 114 format = new AMessage(); 115 format->setInt32("err", err); 116 return format; 123 return format; 297 sp<AMessage> format = getFormat(false /* audio */); local 300 if (format != NULL && 301 format->findInt32("width", &width) && format [all...] |
H A D | NuPlayerDecoderPassThrough.cpp | 61 void NuPlayer::DecoderPassThrough::onConfigure(const sp<AMessage> &format) { argument 71 format->findInt32("has-video", &hasVideo); 75 // format is different. 77 format, true /* offloadOnly */, hasVideo, 249 // will perform seamless format change, 259 // do seamless format change
|
H A D | StreamingSource.cpp | 224 sp<AMessage> format = new AMessage; local 226 format->setInt32("err", -EWOULDBLOCK); 227 return format; 231 status_t err = convertMetaDataToMessage(meta, &format); 233 format->setInt32("err", err); 235 return format;
|
/frameworks/av/media/libstagefright/ |
H A D | AudioPlayer.cpp | 98 // updated format, if there isn't, we'll stash away the valid buffer 120 sp<MetaData> format = mSource->getFormat(); local 122 bool success = format->findCString(kKeyMIMEType, &mime); 126 success = format->findInt32(kKeySampleRate, &mSampleRate); 130 success = format->findInt32(kKeyChannelCount, &numChannels); 133 if(!format->findInt32(kKeyChannelMask, &channelMask)) { 136 "source format didn't specify channel mask, using (%d) channel order", numChannels); 142 if (format->findInt32(kKeyPcmEncoding, &pcmEncoding)) { 155 if ((audioFormat == AUDIO_FORMAT_AAC) && format->findInt32(kKeyAACAOT, &aacaot)) { 156 // Redefine AAC format corrospondin [all...] |
H A D | SimpleDecodingSource.cpp | 45 sp<AMessage> format = new AMessage; local 46 convertMetaDataToMessage(source->getFormat(), &format); 70 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */); 72 err = codec->getOutputFormat(&format); 75 return new SimpleDecodingSource(codec, source, looper, surface != NULL, format); 91 bool usingSurface, const sp<AMessage> &format) 96 mProtectedState(format) { 162 SimpleDecodingSource::ProtectedState::ProtectedState(const sp<AMessage> &format) argument 164 mFormat(format), 89 SimpleDecodingSource( const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper, bool usingSurface, const sp<AMessage> &format) argument
|
/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 | NdkImage.cpp | 32 AImage::AImage(AImageReader* reader, int32_t format, argument 35 mReader(reader), mFormat(format), 131 AImage::getFormat(int32_t* format) const { 132 if (format == nullptr) { 135 *format = -1; 140 *format = mFormat; 222 ALOGE("Pixel format: 0x%x is unsupported", fmt); 296 ALOGE("%s Pixel format: 0x%x is unsupported", __FUNCTION__, fmt); 491 ALOGE("Pixel format: 0x%x is unsupported", fmt); 538 media_status_t AImage_getFormat(const AImage* image, /*out*/int32_t* format) { argument [all...] |
H A D | NdkMediaFormat.cpp | 50 ALOGW("got NULL format"); 153 bool AMediaFormat_getInt32(AMediaFormat* format, const char *name, int32_t *out) { argument 154 return format->mFormat->findInt32(name, out); 158 bool AMediaFormat_getInt64(AMediaFormat* format, const char *name, int64_t *out) { argument 159 return format->mFormat->findInt64(name, out); 163 bool AMediaFormat_getFloat(AMediaFormat* format, const char *name, float *out) { argument 164 return format->mFormat->findFloat(name, out); 168 bool AMediaFormat_getSize(AMediaFormat* format, const char *name, size_t *out) { argument 169 return format->mFormat->findSize(name, out); 173 bool AMediaFormat_getBuffer(AMediaFormat* format, cons argument 204 AMediaFormat_setInt32(AMediaFormat* format, const char *name, int32_t value) argument 209 AMediaFormat_setInt64(AMediaFormat* format, const char *name, int64_t value) argument 214 AMediaFormat_setFloat(AMediaFormat* format, const char* name, float value) argument 219 AMediaFormat_setString(AMediaFormat* format, const char* name, const char* value) argument 225 AMediaFormat_setBuffer(AMediaFormat* format, const char* name, void* data, size_t size) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioResampler.cpp | 147 AudioResampler* AudioResampler::create(audio_format_t format, int inChannelCount, argument 218 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 223 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 228 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 233 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 240 if (format == AUDIO_FORMAT_PCM_FLOAT) { 244 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 271 LOG_ALWAYS_FATAL("Unsupported sample format %d quality %d channels",
|
H A D | BufferProviders.cpp | 22 #include <audio_utils/format.h> 138 audio_channel_mask_t outputChannelMask, audio_format_t format, 141 audio_bytes_per_sample(format) * audio_channel_count_from_out_mask(inputChannelMask), 142 audio_bytes_per_sample(format) * audio_channel_count_from_out_mask(outputChannelMask), 146 this, inputChannelMask, outputChannelMask, format, 160 mDownmixConfig.inputCfg.format = format; 161 mDownmixConfig.outputCfg.format = format; 278 audio_channel_mask_t outputChannelMask, audio_format_t format, 136 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 277 RemixBufferProvider(audio_channel_mask_t inputChannelMask, audio_channel_mask_t outputChannelMask, audio_format_t format, size_t bufferFrameCount) argument 324 TimestretchBufferProvider(int32_t channelCount, audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) argument [all...] |
H A D | PatchPanel.cpp | 274 config.format = patch->sources[0].format; 276 config.format = newPatch->mPlaybackThread->format(); 431 audio_format_t format = patch->mPlaybackThread->format(); local 437 format, 457 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/audiopolicy/common/managerdefinitions/include/ |
H A D | AudioProfile.h | 39 AudioProfile(audio_format_t format, argument 43 mFormat(format) 49 AudioProfile(audio_format_t format, argument 53 mFormat(format), 97 status_t checkExact(uint32_t rate, audio_channel_mask_t channels, audio_format_t format) const; 143 // TODO: compareFormats could be a lambda to convert between pointer-to-format to format: 152 // for a profile with dynamic format, rate and channels attributes 181 profileToAdd->setDynamicFormat(true); // set the format as dynamic to allow removal 198 audio_format_t format) cons 299 setSampleRatesFor(const SampleRateVector &sampleRates, audio_format_t format) argument 318 setChannelsFor(const ChannelsVector &channelMasks, audio_format_t format) argument [all...] |
H A D | Serializer.h | 61 // A profile section contains a name, one audio format and the list of supported sampling rates 62 // and channel masks for this format 72 static const char format[]; member in struct:android::AudioProfileTraits::Attributes 221 static const uint32_t gMajor; /**< the major number of the policy xml format version. */ 222 static const uint32_t gMinor; /**< the minor number of the policy xml format version. */
|
H A D | TypeConverter.h | 151 audio_format_t format; local 155 FormatConverter::fromString(literalFormat, format); 156 return format;
|