/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | FileRotatorTest.java | 19 import static android.text.format.DateUtils.DAY_IN_MILLIS; 20 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 22 import static android.text.format.DateUtils.SECOND_IN_MILLIS; 23 import static android.text.format.DateUtils.WEEK_IN_MILLIS; 24 import static android.text.format.DateUtils.YEAR_IN_MILLIS;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
H A D | MediaSource.java | 31 import android.filterfw.format.ImageFormat; 320 String temp = String.format("SetSourceRegion: %.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f", 474 throw new RuntimeException(String.format("Unable to set MediaPlayer to URL %s!", mSourceUrl), e); 476 throw new RuntimeException(String.format("Unable to set MediaPlayer to asset %s!", mSourceAsset), e); 482 throw new RuntimeException(String.format("Unable to set MediaPlayer to URL %s!", mSourceUrl), e); 484 throw new RuntimeException(String.format("Unable to set MediaPlayer to asset %s!", mSourceAsset), e);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DatePicker.java | 24 import android.text.format.DateFormat; 189 // re-order the number pickers to match the current date format 206 java.text.DateFormat format; 210 * If the user is in a locale where the medium date format is 212 * the date format order setting. Otherwise, use the order 217 format = DateFormat.getDateFormat(getContext()); 219 format = DateFormat.getMediumDateFormat(getContext()); 222 if (format instanceof SimpleDateFormat) { 223 order = ((SimpleDateFormat) format).toPattern();
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.cpp | 366 static status_t selectEGLConfig(EGLDisplay display, EGLint format, argument 388 wantedAttributeValue = format; 402 EGLConfig RenderEngine::chooseEglConfig(EGLDisplay display, int format) { argument 407 err = selectEGLConfig(display, format, EGL_OPENGL_ES2_BIT, &config); 410 err = selectEGLConfig(display, format, EGL_OPENGL_ES_BIT, &config); 415 err = selectEGLConfig(display, format, 0, &config);
|
/frameworks/av/media/libstagefright/ |
H A D | MediaCodec.cpp | 407 const sp<AMessage> &format, 414 format->findInt32("width", &mVideoWidth); 415 format->findInt32("height", &mVideoHeight); 416 if (!format->findInt32("rotation-degrees", &mRotationDegrees)) { 421 msg->setMessage("format", format); 754 status_t MediaCodec::getOutputFormat(sp<AMessage> *format) const { 763 CHECK(response->findMessage("format", format)); 768 status_t MediaCodec::getInputFormat(sp<AMessage> *format) cons 406 configure( const sp<AMessage> &format, const sp<Surface> &surface, const sp<ICrypto> &crypto, uint32_t flags) argument 825 sp<AMessage> format; local 829 getOutputFormat(size_t index, sp<AMessage> *format) argument 835 sp<AMessage> format; local 843 getBufferAndFormat( size_t portIndex, size_t index, sp<ABuffer> *buffer, sp<AMessage> *format) argument 1547 sp<AMessage> format = new AMessage; local 1614 sp<AMessage> format; local 2073 sp<AMessage> format = local 2146 extractCSD(const sp<AMessage> &format) argument [all...] |
H A D | NuMediaExtractor.cpp | 216 size_t index, sp<AMessage> *format) const { 219 *format = NULL; 230 return convertMetaDataToMessage(meta, format); 233 status_t NuMediaExtractor::getFileFormat(sp<AMessage> *format) const { 236 *format = NULL; 246 *format = new AMessage(); 247 (*format)->setString("mime", mime); 255 (*format)->setBuffer("pssh", buf);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.cpp | 173 disp.format = mFbDev->format; 405 // FIXME: what should we set the format to? 406 mDisplayData[disp].format = HAL_PIXEL_FORMAT_RGBA_8888; 412 uint32_t w, uint32_t h, uint32_t format) { 418 mDisplayData[id].format = format; 470 return mDisplayData[disp].format; 833 return mFbDev->format; 1132 static String8 getFormatStr(PixelFormat format) { 411 setVirtualDisplayProperties(int32_t id, uint32_t w, uint32_t h, uint32_t format) argument [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsHelper.java | 275 final String format; 276 if (power < .00001) format = "%.8f"; 277 else if (power < .0001) format = "%.7f"; 278 else if (power < .001) format = "%.6f"; 279 else if (power < .01) format = "%.5f"; 280 else if (power < .1) format = "%.4f"; 281 else if (power < 1) format = "%.3f"; 282 else if (power < 10) format = "%.2f"; 283 else if (power < 100) format = "%.1f"; 284 else format [all...] |
/frameworks/av/services/audiopolicy/managerdefault/ |
H A D | AudioPolicyManager.cpp | 584 audio_format_t format, 605 format, NULL /*updatedFormat*/, 629 audio_format_t format, 636 ALOGV("getOutput() device %d, stream %d, samplingRate %d, format %x, channelMask %x, flags %x", 637 device, stream, samplingRate, format, channelMask, flags); 640 stream, samplingRate,format, channelMask, 650 audio_format_t format, 675 if (!audio_is_linear_pcm(format)) { 712 ALOGV("getOutputForAttr() device 0x%x, samplingRate %d, format %x, channelMask %x, flags %x", 713 device, samplingRate, format, channelMas 581 getProfileForDirectOutput( audio_devices_t device, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument 627 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument 644 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument 726 getOutputForDevice( audio_devices_t device, audio_session_t session __unused, audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument 948 selectOutput(const SortedVector<audio_io_handle_t>& outputs, audio_output_flags_t flags, audio_format_t format) argument 1284 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId, input_type_t *inputType) argument 2997 int format = AUDIO_FORMAT_INVALID; local 4446 getInputProfile(audio_devices_t device, String8 address, uint32_t& samplingRate, audio_format_t& format, audio_channel_mask_t& channelMask, audio_input_flags_t flags) argument [all...] |
/frameworks/av/include/media/nbaio/ |
H A D | NBLog.h | 126 virtual void logf(const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); 160 virtual void logf(const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
/frameworks/av/media/libstagefright/codecs/aacenc/ |
H A D | SoftAACEncoder2.cpp | 84 def.format.audio.cMIMEType = const_cast<char *>("audio/raw"); 85 def.format.audio.pNativeRender = NULL; 86 def.format.audio.bFlagErrorConcealment = OMX_FALSE; 87 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM; 102 def.format.audio.cMIMEType = const_cast<char *>("audio/aac"); 103 def.format.audio.pNativeRender = NULL; 104 def.format.audio.bFlagErrorConcealment = OMX_FALSE; 105 def.format.audio.eEncoding = OMX_AUDIO_CodingAAC;
|
/frameworks/av/services/audioflinger/ |
H A D | AudioStreamOut.cpp | 132 config->format, 138 mHalFormatIsLinearPcm = audio_is_linear_pcm(config->format);
|
H A D | TrackBase.h | 61 audio_format_t format, 103 audio_format_t format() const { return mFormat; } function in class:TrackBase
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CameraManager.java | 223 throw new IllegalArgumentException(String.format("Camera id %s does not match any" + 1007 String.format("Camera id %s has status changed to 0x%x", id, status)); 1011 Log.e(TAG, String.format("Ignoring invalid device %s status 0x%x", id, 1020 Log.v(TAG, String.format( 1043 String.format( 1072 String.format("Camera id %s has torch status changed to 0x%x", id, status)); 1076 Log.e(TAG, String.format("Ignoring invalid device %s torch status 0x%x", id, 1084 Log.v(TAG, String.format(
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | GLThreadManager.java | 142 TAG = String.format("CameraDeviceGLThread-%d", cameraId); 179 Log.e(TAG, String.format("Thread %s (%d) interrupted while quitting.",
|
H A D | LegacyFocusStateMapper.java | 218 Log.d(TAG, String.format("onAutoFocus - ignoring AF callback " + 292 Log.v(TAG, String.format("mapResultTriggers - afState changed from %s to %s",
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableEnum.java | 66 throw new UnsupportedOperationException(String.format( 211 String.format(
|
/frameworks/base/core/java/android/hardware/location/ |
H A D | ActivityRecognitionHardware.java | 169 String message = String.format( 196 String message = String.format(
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | NetInitiatedActivity.java | 92 p.mPositiveButtonText = String.format(context.getString(R.string.gpsVerifYes)); 94 p.mNegativeButtonText = String.format(context.getString(R.string.gpsVerifNo));
|
/frameworks/base/core/jni/ |
H A D | android_view_Surface.cpp | 165 int format, android_dataspace dataSpace) { 166 switch(format) { 176 return static_cast<PublicFormat>(format); 272 static inline SkColorType convertPixelFormat(PixelFormat format) { argument 278 switch (format) { 317 convertPixelFormat(outBuffer.format), 319 if (outBuffer.format == PIXEL_FORMAT_RGBX_8888) { 324 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); 164 android_view_Surface_mapHalFormatDataspaceToPublicFormat( int format, android_dataspace dataSpace) argument
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerStressTest.java | 84 request.setTitle(String.format("%s--%d", DEFAULT_FILENAME + i, i)); 103 String errorString = String.format(
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
H A D | GridTouchVerticalSpacingStackFromBottomTest.java | 130 assertTrue(String.format("Too many children created: %d expected no more than %d", 148 assertTrue(String.format("Too many children created: %d expected no more than %d",
|
H A D | GridTouchVerticalSpacingTest.java | 114 assertTrue(String.format("Too many children created: %d expected no more than %d", 133 assertTrue(String.format("Too many children created: %d expected no more than %d",
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | audio.c | 135 config.format = PCM_FORMAT_S16_LE; 209 config.format = PCM_FORMAT_S16_LE;
|
/frameworks/base/packages/PrintSpooler/jni/ |
H A D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 101 || readInfo.stride != targetInfo.stride || readInfo.format != targetInfo.format
|