/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipImageFormatTest.java | 33 BipImageFormat format = BipImageFormat.parseNative("JPEG", "1280*1024", null); in testParseNative_requiredOnly() local 34 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_requiredOnly() 35 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_requiredOnly() 36 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_requiredOnly() 37 Assert.assertEquals(new BipTransformation(), format.getTransformation()); in testParseNative_requiredOnly() 38 Assert.assertEquals(-1, format.getSize()); in testParseNative_requiredOnly() 39 Assert.assertEquals(-1, format.getMaxSize()); in testParseNative_requiredOnly() 40 Assert.assertEquals(expected, format.toString()); in testParseNative_requiredOnly() 46 BipImageFormat format = BipImageFormat.parseNative("JPEG", "1280*1024", "1048576"); in testParseNative_withSize() local 47 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_withSize() [all …]
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | Log.java | 43 public static void d(String prefix, String format, Object... args) { in d() argument 44 android.util.Log.d(TAG, (args == null || args.length == 0) ? format : in d() 45 String.format(prefix + ": " + format, args)); in d() 48 public static void d(Object objectPrefix, String format, Object... args) { in d() argument 49 android.util.Log.d(TAG, (args == null || args.length == 0) ? format : in d() 50 String.format(getPrefixFromObject(objectPrefix) + ": " + format, args)); in d() 53 public static void i(String prefix, String format, Object... args) { in i() argument 54 android.util.Log.i(TAG, (args == null || args.length == 0) ? format : in i() 55 String.format(prefix + ": " + format, args)); in i() 58 public static void i(Object objectPrefix, String format, Object... args) { in i() argument [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/ |
D | LogUtils.java | 156 public static void v(String tag, String format, Object... args) { in v() argument 158 VvmLog.v(tag, String.format(format, args)); in v() 172 public static void v(String tag, Throwable tr, String format, Object... args) { in v() argument 174 VvmLog.v(tag, String.format(format, args), tr); in v() 187 public static void d(String tag, String format, Object... args) { in d() argument 189 VvmLog.d(tag, String.format(format, args)); in d() 203 public static void d(String tag, Throwable tr, String format, Object... args) { in d() argument 205 VvmLog.d(tag, String.format(format, args), tr); in d() 218 public static void i(String tag, String format, Object... args) { in i() argument 220 VvmLog.i(tag, String.format(format, args)); in i() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | DvrStorageManager.java | 88 private void readFormatInt(DataInputStream in, MediaFormat format, String key) in readFormatInt() argument 92 format.setInteger(key, val); in readFormatInt() 96 private void readFormatLong(DataInputStream in, MediaFormat format, String key) in readFormatLong() argument 100 format.setLong(key, val); in readFormatLong() 104 private void readFormatFloat(DataInputStream in, MediaFormat format, String key) in readFormatFloat() argument 108 format.setFloat(key, val); in readFormatFloat() 122 private void readFormatString(DataInputStream in, MediaFormat format, String key) in readFormatString() argument 126 format.setString(key, str); in readFormatString() 130 private void readFormatStringOptional(DataInputStream in, MediaFormat format, String key) { in readFormatStringOptional() argument 134 format.setString(key, str); in readFormatStringOptional() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipImageProperties.java | 93 public Builder addNativeFormat(BipImageFormat format) { in addNativeFormat() argument 94 mProperties.addNativeFormat(format); in addNativeFormat() 104 public Builder addVariantFormat(BipImageFormat format) { in addVariantFormat() argument 105 mProperties.addVariantFormat(format); in addVariantFormat() 115 public Builder addAttachment(BipAttachmentFormat format) { in addAttachment() argument 116 mProperties.addAttachment(format); in addAttachment() 239 private void addNativeFormat(BipImageFormat format) { in addNativeFormat() argument 240 Objects.requireNonNull(format); in addNativeFormat() 241 if (format.getType() != BipImageFormat.FORMAT_NATIVE) { in addNativeFormat() 242 throw new IllegalArgumentException("Format type '" + format.getType() in addNativeFormat() [all …]
|
/packages/apps/TV/tuner/src/com/google/android/exoplayer/ |
D | MediaFormatUtil.java | 31 public static MediaFormat createMediaFormat(android.media.MediaFormat format) { in createMediaFormat() argument 32 String mimeType = format.getString(android.media.MediaFormat.KEY_MIME); in createMediaFormat() 33 String language = getOptionalStringV16(format, android.media.MediaFormat.KEY_LANGUAGE); in createMediaFormat() 35 getOptionalIntegerV16(format, android.media.MediaFormat.KEY_MAX_INPUT_SIZE); in createMediaFormat() 36 int width = getOptionalIntegerV16(format, android.media.MediaFormat.KEY_WIDTH); in createMediaFormat() 37 int height = getOptionalIntegerV16(format, android.media.MediaFormat.KEY_HEIGHT); in createMediaFormat() 38 int rotationDegrees = getOptionalIntegerV16(format, "rotation-degrees"); in createMediaFormat() 40 getOptionalIntegerV16(format, android.media.MediaFormat.KEY_CHANNEL_COUNT); in createMediaFormat() 41 int sampleRate = getOptionalIntegerV16(format, android.media.MediaFormat.KEY_SAMPLE_RATE); in createMediaFormat() 42 int encoderDelay = getOptionalIntegerV16(format, "encoder-delay"); in createMediaFormat() [all …]
|
/packages/providers/MediaProvider/tools/genfiles/ |
D | genfiles.sh | 54 while read format mediatype mimetype data; 56 if [ "$format" == "14337" ] 60 elif [ "$format" == "14347" ] 64 elif [ "$format" == "14343" -a "$mediatype" == "0" ] 68 elif [ "$format" == "12292" -a "$mediatype" == "0" ] 72 elif [ "$format" == "12293" -a "$mediatype" == "0" ] 76 elif [ "$format" == "12297" ] 80 elif [ "$format" == "12296" ] 84 elif [ "$format" == "12299" -a "$mediatype" == "0" ] 88 elif [ "$format" == "12299" -a "$mediatype" == "3" ] [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | ExoPlayerSampleExtractor.java | 205 MediaFormat convertFormat(Format format) { in convertFormat() argument 206 if (format.sampleMimeType.startsWith("audio/")) { in convertFormat() 208 format.id, in convertFormat() 209 format.sampleMimeType, in convertFormat() 210 format.bitrate, in convertFormat() 211 format.maxInputSize, in convertFormat() 213 format.channelCount, in convertFormat() 214 format.sampleRate, in convertFormat() 215 format.initializationData, in convertFormat() 216 format.language, in convertFormat() [all …]
|
/packages/services/Car/evs/sampleDriver/ |
D | VideoCapture.cpp | 93 v4l2_format format; in open() local 94 format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in open() 95 format.fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; in open() 96 format.fmt.pix.width = 720; in open() 97 format.fmt.pix.height = 240; in open() 99 ((char*)&format.fmt.pix.pixelformat)[0], in open() 100 ((char*)&format.fmt.pix.pixelformat)[1], in open() 101 ((char*)&format.fmt.pix.pixelformat)[2], in open() 102 ((char*)&format.fmt.pix.pixelformat)[3], in open() 103 format.fmt.pix.pixelformat); in open() [all …]
|
/packages/apps/Settings/tests/perftests/src/com/android/settings/tests/perf/ |
D | LaunchSettingsTest.java | 136 fail(String.format("Not found %s.\n %s", title, shellCommandResult)); in handleLaunchResult() 147 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "max"), in putResultToBundle() 149 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "min"), in putResultToBundle() 151 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "avg"), in putResultToBundle() 153 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "25 Percentile"), in putResultToBundle() 155 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "50 Percentile"), in putResultToBundle() 157 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "75 Percentile"), in putResultToBundle() 159 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "all_results"), in putResultToBundle() 161 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "results_count"), in putResultToBundle() 168 return String.format("%s", Collections.max(mResult.get(page))); in getMax() [all …]
|
/packages/apps/Camera2/src/com/android/camera/stats/profiler/ |
D | ProfileBase.java | 76 protected final String format(double totalMillis, String event) { in format() method in ProfileBase 77 return String.format("[%7sms]%s %-6s %s", in format() 78 String.format("%.3f", totalMillis), in format() 88 protected final String format(double totalMillis, String event, String reason) { in format() method in ProfileBase 89 return String.format("[%7sms]%s %-6s %s - %s", in format() 90 String.format("%.3f", totalMillis), in format() 101 …protected final String format(double totalMillis, String event, double lastMillis, String reason) { in format() method in ProfileBase 102 return String.format("[%7sms]%s %-6s %s - [%6sms] %s", in format() 103 String.format("%.3f", totalMillis), in format() 107 String.format("%.3f", lastMillis), in format()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAppParams.java | 857 SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd'T'HHmmss"); in getFilterPeriodBeginString() local 859 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterPeriodBeginString() 867 SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd'T'HHmmss"); in setFilterPeriodBegin() local 868 Date date = format.parse(filterPeriodBegin); in setFilterPeriodBegin() 877 SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd'T'HHmmss"); in getFilterLastActivityBeginString() local 879 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterLastActivityBeginString() 887 SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd'T'HHmmss"); in setFilterLastActivityBegin() local 888 Date date = format.parse(filterPeriodBegin); in setFilterLastActivityBegin() 901 SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd'T'HHmmss"); in getFilterLastActivityEndString() local 903 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterLastActivityEndString() [all …]
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/log/ |
D | L.java | 38 Log.v(tag, String.format(msg, args)); in v() 51 Log.d(tag, String.format(msg, args)); in d() 64 Log.i(tag, String.format(msg, args)); in i() 77 Log.w(tag, String.format(msg, args)); in w() 89 Log.e(tag, String.format(msg, args)); in e() 101 Log.e(tag, String.format(msg, args), e); in e() 112 Log.wtf(tag, String.format(msg, args)); in wtf() 124 Log.wtf(tag, String.format(msg, args), e); in wtf()
|
/packages/apps/Car/Radio/src/com/android/car/radio/util/ |
D | Log.java | 41 public static int v(@Nullable String tag, @NonNull String format, @Nullable Object...args) { in v() argument 45 return android.util.Log.v(tag, String.format(format, args)); in v() 47 return android.util.Log.v(tag, format); in v() 52 public static int d(@Nullable String tag, @NonNull String format, @Nullable Object...args) { in d() argument 56 return android.util.Log.d(tag, String.format(format, args)); in d() 58 return android.util.Log.d(tag, format); in d()
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/consolidator/ |
D | PhoneLookupInfoConsolidator.java | 130 String.format("Unsupported name source: %s", nameSource)); in getContactSource() 174 String.format("Unsupported name source: %s", nameSource)); in getName() 200 String.format("Unsupported name source: %s", nameSource)); in getPhotoThumbnailUri() 227 String.format("Unsupported name source: %s", nameSource)); in getPhotoUri() 249 String.format("Unsupported name source: %s", nameSource)); in getPhotoId() 273 String.format("Unsupported name source: %s", nameSource)); in getLookupUri() 300 String.format("Unsupported name source: %s", nameSource)); in getNumberLabel() 324 String.format("Unsupported name source: %s", nameSource)); in getGeolocation() 346 String.format("Unsupported name source: %s", nameSource)); in isBusiness() 412 String.format("Unsupported name source: %s", nameSource)); in canReportAsInvalidNumber() [all …]
|
/packages/services/Car/evs/app/ |
D | RenderPixelCopy.cpp | 67 tgtBuffer.width, tgtBuffer.height, tgtBuffer.format, 1, tgtBuffer.usage, in drawFrame() 75 if (tgtBuffer.format != HAL_PIXEL_FORMAT_RGBA_8888) { in drawFrame() 87 srcBuffer.width, srcBuffer.height, srcBuffer.format, 1, srcBuffer.usage, in drawFrame() 101 if (srcBuffer.format == HAL_PIXEL_FORMAT_YCRCB_420_SP) { // 420SP == NV21 in drawFrame() 105 } else if (srcBuffer.format == HAL_PIXEL_FORMAT_YV12) { // YUV_420P == YV12 in drawFrame() 109 } else if (srcBuffer.format == HAL_PIXEL_FORMAT_YCBCR_422_I) { // YUYV in drawFrame() 113 } else if (srcBuffer.format == tgtBuffer.format) { // 32bit RGBA in drawFrame()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Dates.java | 20 import android.text.format.DateUtils; 21 import android.text.format.Time; 103 if (android.text.format.DateFormat.is24HourFormat(context)) { in getMessageDetailsTimeString() 117 if (android.text.format.DateFormat.is24HourFormat(context)) { in getTimeString() 156 final String format = getContext().getResources().getQuantityString( in getLessThanAnHourOldTimeString() local 158 return String.format(format, count); in getLessThanAnHourOldTimeString() 174 return formatter.format(new Date(time)); in getExplicitFormattedTime() 264 final String format = context.getResources().getQuantityString(resId, (int) count); in getShortRelativeTimeSpanString() local 265 return String.format(format, count); in getShortRelativeTimeSpanString()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/ |
D | SampleChunkIoHelper.java | 236 private MediaFormat getVideoMediaFormat(Format format) { in getVideoMediaFormat() argument 239 mediaFormat.setString(MediaFormat.KEY_MIME, format.sampleMimeType); in getVideoMediaFormat() 240 mediaFormat.setInteger(MediaFormat.KEY_WIDTH, format.width); in getVideoMediaFormat() 241 mediaFormat.setInteger(MediaFormat.KEY_HEIGHT, format.height); in getVideoMediaFormat() 242 MediaFormatUtil.setCsdBuffers(mediaFormat, format.initializationData); in getVideoMediaFormat() 244 MediaFormatUtil.maybeSetFloat(mediaFormat, MediaFormat.KEY_FRAME_RATE, format.frameRate); in getVideoMediaFormat() 246 mediaFormat, MediaFormat.KEY_ROTATION, format.rotationDegrees); in getVideoMediaFormat() 247 MediaFormatUtil.maybeSetColorInfo(mediaFormat, format.colorInfo); in getVideoMediaFormat() 249 mediaFormat, MediaFormat.KEY_MAX_INPUT_SIZE, format.maxInputSize); in getVideoMediaFormat() 256 private MediaFormat getAudioMediaFormat(Format format) { in getAudioMediaFormat() argument [all …]
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | NetworkedVirtualDisplay.java | 216 @NonNull MediaFormat format) { in createVideoStream() 217 Log.i(TAG, "onOutputFormatChanged, codec: " + codec + ", format: " + format); in createVideoStream() 411 MediaFormat format = MediaFormat.createVideoFormat(MEDIA_FORMAT_MIMETYPE, width, height); in configureVideoEncoder() local 413 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, in configureVideoEncoder() 415 format.setInteger(MediaFormat.KEY_BIT_RATE, BITRATE); in configureVideoEncoder() 416 format.setInteger(MediaFormat.KEY_FRAME_RATE, FPS); in configureVideoEncoder() 417 format.setInteger(MediaFormat.KEY_CAPTURE_RATE, FPS); in configureVideoEncoder() 418 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in configureVideoEncoder() 419 format.setFloat(MediaFormat.KEY_I_FRAME_INTERVAL, 1); // 1 second between I-frames in configureVideoEncoder() 420 format.setInteger(MediaFormat.KEY_LEVEL, CodecProfileLevel.AVCLevel31); in configureVideoEncoder() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseWrapper.java | 112 LogUtil.v(LogUtil.BUGLE_DATABASE_PERF_TAG, String.format(Locale.US, in printTiming() 161 printTiming(t1, String.format(Locale.US, in endTransaction() 192 printTiming(t1, String.format(Locale.US, in insertWithOnConflict() 264 String.format(Locale.US, "query %s with %s ==> %d", in query() 295 String.format(Locale.US, "query %s with %s ==> %d", in query() 313 String.format(Locale.US, "queryNumEntries %s with %s ==> %d", table, in queryNumEntries() 332 String.format(Locale.US, "rawQuery %s ==> %d", sql, cursor.getCount())); in rawQuery() 352 printTiming(t1, String.format(Locale.US, "update %s with %s ==> %d", in update() 373 String.format(Locale.US, "delete from %s with %s ==> %d", table, in delete() 394 printTiming(t1, String.format(Locale.US, "insert to %s", table)); in insert() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | UploadedTexture.java | 194 int format = GLUtils.getInternalFormat(bitmap); in updateContent() local 196 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); in updateContent() 231 int format = GLUtils.getInternalFormat(bitmap); in uploadToCanvas() local 235 canvas.initializeTextureSize(this, format, type); in uploadToCanvas() 236 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); in uploadToCanvas() 241 canvas.texSubImage2D(this, 0, 0, line, format, type); in uploadToCanvas() 245 canvas.texSubImage2D(this, 0, 0, line, format, type); in uploadToCanvas() 251 canvas.texSubImage2D(this, mBorder + bWidth, 0, line, format, type); in uploadToCanvas() 257 canvas.texSubImage2D(this, 0, mBorder + bHeight, line, format, type); in uploadToCanvas()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
D | JPEGOutputStream.java | 38 int format) { in JPEGOutputStream() argument 40 setConfig(width, height, quality, format); in JPEGOutputStream() 43 public boolean setConfig(int width, int height, int quality, int format) { in setConfig() argument 48 switch (format) { in setConfig() 62 mFormat = format; in setConfig() 82 throw new ArrayIndexOutOfBoundsException(String.format( in write() 135 native private int setup(OutputStream out, int width, int height, int format, int quality); in setup() argument
|
D | JPEGInputStream.java | 39 public JPEGInputStream(InputStream in, int format) { in JPEGInputStream() argument 41 setConfig(format); in JPEGInputStream() 44 public boolean setConfig(int format) { in setConfig() argument 46 switch (format) { in setConfig() 55 mFormat = format; in setConfig() 104 throw new ArrayIndexOutOfBoundsException(String.format( in read() 182 native private int setup(Point dimens, InputStream in, int format); in setup() argument
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | VCardService.java | 160 String.format("received multiple import request (uri: %s, displayName: %s)", in handleImportRequest() 193 String.format("The path %s is already reserved. Reject export request", in handleExportRequest() 237 if (DEBUG) Log.d(LOG_TAG, String.format("Received cancel request. (id: %d)", jobId)); in handleCancelRequest() 252 String.format("Cancel reservation for the path %s if appropriate", path)); in handleCancelRequest() 258 Log.w(LOG_TAG, String.format("Tried to remove unknown job (id: %d)", jobId)); in handleCancelRequest() 285 Log.i(LOG_TAG, String.format("Found unfinished job (id: %d)", jobId)); in stopServiceIfAppropriate() 341 Log.d(LOG_TAG, String.format("Received vCard import finish notification (id: %d). " in handleFinishImportNotification() 351 Log.d(LOG_TAG, String.format("Received vCard export finish notification (id: %d). " in handleFinishExportNotification() 357 Log.w(LOG_TAG, String.format("Tried to remove unknown job (id: %d)", jobId)); in handleFinishExportNotification() 360 String.format("Removed job (id: %s) isn't ExportProcessor", jobId)); in handleFinishExportNotification()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainActivity.java | 136 Log.i(TAG, String.format("Requested by app uid %d to provide a private key alias", in chooseCertificate() 143 Log.i(TAG, String.format("Key types specified: %s", Arrays.toString(keyTypes))); in chooseCertificate() 159 Log.i(TAG, String.format("Alias provided by device policy client: %s", alias)); in chooseCertificate() 245 Log.i(TAG, String.format("No certificate associated with alias %s", alias)); in shouldPresentCertificate() 249 Log.i(TAG, String.format("Inspecting certificate %s aliased with %s, chain length %d", in shouldPresentCertificate() 259 Log.i(TAG, String.format("Certificate key algorithm: %s", keyAlgorithm)); in shouldPresentCertificate() 271 Log.i(TAG, String.format("Subject of intermediate in client certificate chain: %s", in shouldPresentCertificate() 282 Log.i(TAG, String.format("Requested issuer found: %s", issuer)); in shouldPresentCertificate() 360 Log.i(TAG, String.format("User chose: %s", alias)); in displayCertChooserDialog() 403 String appMessage = String.format(res.getString(R.string.requesting_application), in displayCertChooserDialog() [all …]
|