Home
last modified time | relevance | path

Searched refs:getFormat (Results 1 – 25 of 273) sorted by relevance

1234567891011

/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeFrame.java71 if (getFormat().getBaseType() != FrameFormat.TYPE_OBJECT) { in getObjectValue()
76 Class structClass = getFormat().getObjectClass(); in getObjectValue()
111 if (ints.length * nativeIntSize() > getFormat().getSize()) { in setInts()
114 (getFormat().getSize() / nativeIntSize()) + " integers)."); in setInts()
122 return getNativeInts(getFormat().getSize()); in getInts()
128 if (floats.length * nativeFloatSize() > getFormat().getSize()) { in setFloats()
131 (getFormat().getSize() / nativeFloatSize()) + " floats)."); in setFloats()
139 return getNativeFloats(getFormat().getSize()); in getFloats()
152 } else if (getFormat().getSize() != length) { in setData()
154 "Frame size is " + getFormat().getSize() + " bytes, but " + in setData()
[all …]
DGLFrame.java75 FrameFormat format = getFormat(); in init()
83 } else if (getFormat().getSize() < 0) { in init()
116 if (!nativeAllocate(mGLEnvironment, getFormat().getWidth(), getFormat().getHeight())) { in initNew()
123 int width = getFormat().getWidth(); in initWithTexture()
124 int height = getFormat().getHeight(); in initWithTexture()
133 int width = getFormat().getWidth(); in initWithFbo()
134 int height = getFormat().getHeight(); in initWithFbo()
207 if (getFormat().getSize() != bytes.length) { in setData()
226 if (getFormat().getWidth() != bitmap.getWidth() || in setBitmap()
227 getFormat().getHeight() != bitmap.getHeight()) { in setBitmap()
[all …]
DVertexFrame.java36 if (getFormat().getSize() <= 0) { in VertexFrame()
39 if (!nativeAllocate(getFormat().getSize())) { in VertexFrame()
91 if (getFormat().getSize() != bytes.length) { in setData()
125 return "VertexFrame (" + getFormat() + ") with VBO ID " + getVboId(); in toString()
DSimpleFrame.java132 MutableFrameFormat format = getFormat().mutableCopy(); in setFormatObjectClass()
142 FrameFormat format = getFormat(); in setGenericObjectValue()
157 return "SimpleFrame (" + getFormat() + ")"; in toString()
DFrameManager.java37 Frame result = newFrame(frame.getFormat()); in duplicateFrame()
43 MutableFrameFormat newFormat = frame.getFormat().mutableCopy(); in duplicateFrameToTarget()
DCachedFrameManager.java101 int frameSize = frame.getFormat().getSize(); in storeFrame()
125 mStorageSize -= frame.getFormat().getSize(); in dropOldestFrame()
136 if (frame.getFormat().isReplaceableBy(format)) { in findAvailableFrame()
/frameworks/base/core/java/android/text/format/
DTimeFormatter.java256 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
271 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), in handleToken()
278 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
283 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), hour); in handleToken()
287 numberFormatter.format(getFormat(modifier, "%03d", "%3d", "%d", "%03d"), in handleToken()
291 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), in handleToken()
296 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), n2); in handleToken()
299 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
303 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
324 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
[all …]
/frameworks/base/media/java/android/media/
DImageUtils.java98 if (src.getFormat() != dst.getFormat()) { in imageCopy()
101 if (src.getFormat() == ImageFormat.PRIVATE || in imageCopy()
102 dst.getFormat() == ImageFormat.PRIVATE) { in imageCopy()
105 if (src.getFormat() == ImageFormat.RAW_PRIVATE) { in imageCopy()
109 if (src.getFormat() == ImageFormat.RAW_DEPTH) { in imageCopy()
240 switch (image.getFormat()) { in getEffectivePlaneSizeForImage()
273 String.format("Invalid image format %d", image.getFormat())); in getEffectivePlaneSizeForImage()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfileVectorHelper.cpp39 return PolicyAudioPort::compareFormats(a->getFormat(), b->getFormat()) < 0; in sortAudioProfiles()
56 if (profile->getFormat() == format) { in getAudioProfileForFormat()
68 if (profile->getFormat() == format && profile->isDynamicRate()) { in setSampleRatesForAudioProfiles()
88 if (profile->getFormat() == format && profile->isDynamicChannels()) { in setChannelsForAudioProfiles()
132 formats.push_back(profileToAdd->getFormat()); in addDynamicAudioProfileAndSort()
138 audioProfileVector, profileToAdd->getSampleRates(), profileToAdd->getFormat()); in addDynamicAudioProfileAndSort()
143 audioProfileVector, profileToAdd->getChannels(), profileToAdd->getFormat()); in addDynamicAudioProfileAndSort()
171 if (audio_formats_match(format, audioProfile->getFormat()) && in checkExact()
344 audio_format_t formatToCompare = profile->getFormat(); in checkCompatibleProfile()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DResizeFilter.java89 createProgram(env, input.getFormat()); in process()
92 MutableFrameFormat outputFormat = input.getFormat().mutableCopy(); in process()
94 FrameFormat inputFormat = input.getFormat(); in process()
102 GLFrame mipmapped = (GLFrame)env.getFrameManager().newFrame(input.getFormat()); in process()
DImageSlicer.java76 mInputWidth = frame.getFormat().getWidth(); in calcOutputFormatForInput()
77 mInputHeight = frame.getFormat().getHeight(); in calcOutputFormatForInput()
96 FrameFormat inputFormat = mOriginalFrame.getFormat(); in process()
/frameworks/av/media/libaudiofoundation/
DAudioProfile.cpp32 return (left.getFormat() == right.getFormat()) && in operator ==()
125 mFormat == other->getFormat() && in equals()
203 if (profile->isValid() && profile->getFormat() == format) { in getFirstValidProfileFor()
215 supportedFormats.push_back(profile->getFormat()); in getSupportedFormats()
224 if (profile->getFormat() == format && profile->isDynamicChannels()) { in hasDynamicChannelsFor()
254 if (profile->getFormat() == format && profile->isDynamicRate()) { in hasDynamicRateFor()
/frameworks/av/media/libstagefright/
DOggWriter.cpp88 source->getFormat()->findCString(kKeyMIMEType, &mime); in addSource()
103 if (!source->getFormat()->findInt32(kKeyChannelCount, &nChannels)) { in addSource()
105 source->getFormat()->dumpToLog(); in addSource()
108 source->getFormat()->dumpToLog(); in addSource()
111 if (!source->getFormat()->findInt32(kKeySampleRate, &sampleRate)) { in addSource()
113 source->getFormat()->dumpToLog(); in addSource()
122 if (!source->getFormat()->findData(kKeyOpusHeader, &type, &header_data, &packet_size)) { in addSource()
DCallbackMediaSource.cpp35 sp<MetaData> CallbackMediaSource::getFormat() { in getFormat() function in android::CallbackMediaSource
36 return mSource->getFormat(); in getFormat()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java96 dest.writeInt(mix.getFormat().getSampleRate()); in writeToParcel()
97 dest.writeInt(mix.getFormat().getEncoding()); in writeToParcel()
98 dest.writeInt(mix.getFormat().getChannelMask()); in writeToParcel()
170 textDump += " rate=" + mix.getFormat().getSampleRate() + "Hz\n"; in toLogFriendlyString()
171 textDump += " encoding=" + mix.getFormat().getEncoding() + "\n"; in toLogFriendlyString()
173 textDump += Integer.toHexString(mix.getFormat().getChannelMask()).toUpperCase() + "\n"; in toLogFriendlyString()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
DSurfaceTargetFilter.java150 … float currentAspectRatio = (float)input.getFormat().getWidth() / input.getFormat().getHeight(); in process()
159 if (mLogVerbose) Log.v("SurfaceRenderFilter", "Got input format: " + input.getFormat()); in process()
160 int target = input.getFormat().getTarget(); in process()
DSurfaceRenderFilter.java158 … float currentAspectRatio = (float)input.getFormat().getWidth() / input.getFormat().getHeight(); in process()
167 if (mLogVerbose) Log.v("SurfaceRenderFilter", "Got input format: " + input.getFormat()); in process()
168 int target = input.getFormat().getTarget(); in process()
/frameworks/base/core/java/android/hardware/camera2/params/
DInputConfiguration.java78 public int getFormat() { in getFormat() method in InputConfiguration
102 otherInputConfig.getFormat() == mFormat) { in equals()
DStreamConfigurationMap.java253 int fmt = config.getFormat(); in StreamConfigurationMap()
260 if (configurationDuration.getFormat() == fmt && in StreamConfigurationMap()
283 mDepthOutputFormats.put(config.getFormat(), in StreamConfigurationMap()
284 mDepthOutputFormats.get(config.getFormat()) + 1); in StreamConfigurationMap()
292 mDynamicDepthOutputFormats.put(config.getFormat(), in StreamConfigurationMap()
293 mDynamicDepthOutputFormats.get(config.getFormat()) + 1); in StreamConfigurationMap()
303 mHeicOutputFormats.put(config.getFormat(), in StreamConfigurationMap()
304 mHeicOutputFormats.get(config.getFormat()) + 1); in StreamConfigurationMap()
565 if (config.getFormat() == surfaceFormat && config.isOutput()) { in isOutputSupportedFor()
601 if ((config.getFormat() == internalFormat) && config.isOutput() && in isOutputSupportedFor()
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreRSAPublicKey.java40 if (!"X.509".equalsIgnoreCase(info.getFormat())) { in AndroidKeyStoreRSAPublicKey()
42 "Unsupported key export format: " + info.getFormat()); in AndroidKeyStoreRSAPublicKey()
DAndroidKeyStoreECPublicKey.java42 if (!"X.509".equalsIgnoreCase(info.getFormat())) { in AndroidKeyStoreECPublicKey()
44 "Unsupported key export format: " + info.getFormat()); in AndroidKeyStoreECPublicKey()
/frameworks/base/media/mca/effect/java/android/media/effect/
DSizeChangeEffect.java47 int outputWidth = resultFrame.getFormat().getWidth(); in apply()
48 int outputHeight = resultFrame.getFormat().getHeight(); in apply()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp93 if (getFormat() == AUDIO_FORMAT_DEFAULT) { in open()
111 if (getFormat() == AUDIO_FORMAT_PCM_FLOAT in open()
118 setDeviceFormat(getFormat()); in open()
196 if (getFormat() != getDeviceFormat() && !gotFastPath) { in open()
202 setDeviceFormat(getFormat()); in open()
234 && getFormat() == AUDIO_FORMAT_PCM_FLOAT) { in open()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DGLTextureTarget.java50 FrameFormat format = ImageFormat.create(input.getFormat().getWidth(), in process()
51 input.getFormat().getHeight(), in process()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamShared.cpp143 setFormat(configurationInput.getFormat()); in open()
144 if (getFormat() == AUDIO_FORMAT_DEFAULT) { in open()
146 } else if (getFormat() != AUDIO_FORMAT_PCM_FLOAT) { in open()
147 ALOGD("%s() audio_format_t mAudioFormat = %d, need FLOAT", __func__, getFormat()); in open()

1234567891011