/developers/samples/android/deprecated/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/ |
D | TimerFormat.java | 49 String format; in setTime() local 85 format = showNeg ? NEG_TWO_DIGITS : TWO_DIGITS; in setTime() 86 mHours = String.format(format, hours); in setTime() 88 format = showNeg ? NEG_ONE_DIGIT : ONE_DIGIT; in setTime() 89 mHours = String.format(format, hours); in setTime() 96 format = (showNeg && hours == 0) ? NEG_TWO_DIGITS : TWO_DIGITS; in setTime() 97 mMinutes = String.format(format, minutes); in setTime() 99 format = (showNeg && hours == 0) ? NEG_ONE_DIGIT : ONE_DIGIT; in setTime() 100 mMinutes = String.format(format, minutes); in setTime() 104 mSeconds = String.format(TWO_DIGITS, seconds); in setTime() [all …]
|
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/ |
D | TimerFormat.java | 49 String format; in setTime() local 85 format = showNeg ? NEG_TWO_DIGITS : TWO_DIGITS; in setTime() 86 mHours = String.format(format, hours); in setTime() 88 format = showNeg ? NEG_ONE_DIGIT : ONE_DIGIT; in setTime() 89 mHours = String.format(format, hours); in setTime() 96 format = (showNeg && hours == 0) ? NEG_TWO_DIGITS : TWO_DIGITS; in setTime() 97 mMinutes = String.format(format, minutes); in setTime() 99 format = (showNeg && hours == 0) ? NEG_ONE_DIGIT : ONE_DIGIT; in setTime() 100 mMinutes = String.format(format, minutes); in setTime() 104 mSeconds = String.format(TWO_DIGITS, seconds); in setTime() [all …]
|
/developers/build/prebuilts/gradle/CardView/Application/tests/src/com/example/android/cardview/ |
D | SampleTests.java | 41 assertNotNull(String.format("%s is null", CardViewActivity.class.getSimpleName()), in testPreconditions() 43 assertNotNull(String.format("%s is null", CardViewFragment.class.getSimpleName()), in testPreconditions()
|
/developers/samples/android/ui/views/CardView/Application/tests/src/com/example/android/cardview/ |
D | SampleTests.java | 41 assertNotNull(String.format("%s is null", CardViewActivity.class.getSimpleName()), in testPreconditions() 43 assertNotNull(String.format("%s is null", CardViewFragment.class.getSimpleName()), in testPreconditions()
|
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
D | BluetoothLeService.java | 131 int format = -1; in broadcastUpdate() local 133 format = BluetoothGattCharacteristic.FORMAT_UINT16; in broadcastUpdate() 136 format = BluetoothGattCharacteristic.FORMAT_UINT8; in broadcastUpdate() 139 final int heartRate = characteristic.getIntValue(format, 1); in broadcastUpdate() 140 Log.d(TAG, String.format("Received heart rate: %d", heartRate)); in broadcastUpdate() 148 stringBuilder.append(String.format("%02X ", byteChar)); in broadcastUpdate()
|
/developers/build/prebuilts/gradle/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
D | BluetoothLeService.java | 131 int format = -1; in broadcastUpdate() local 133 format = BluetoothGattCharacteristic.FORMAT_UINT16; in broadcastUpdate() 136 format = BluetoothGattCharacteristic.FORMAT_UINT8; in broadcastUpdate() 139 final int heartRate = characteristic.getIntValue(format, 1); in broadcastUpdate() 140 Log.d(TAG, String.format("Received heart rate: %d", heartRate)); in broadcastUpdate() 148 stringBuilder.append(String.format("%02X ", byteChar)); in broadcastUpdate()
|
/developers/build/prebuilts/gradle/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/ |
D | FloatingActionButtonBasicFragment.java | 58 Log.d(TAG, String.format("FAB 1 was %s.", isChecked ? "checked" : "unchecked")); in onCheckedChanged() 61 Log.d(TAG, String.format("FAB 2 was %s.", isChecked ? "checked" : "unchecked")); in onCheckedChanged()
|
/developers/samples/android/ui/views/FloatingActionButton/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/ |
D | FloatingActionButtonBasicFragment.java | 58 Log.d(TAG, String.format("FAB 1 was %s.", isChecked ? "checked" : "unchecked")); in onCheckedChanged() 61 Log.d(TAG, String.format("FAB 2 was %s.", isChecked ? "checked" : "unchecked")); in onCheckedChanged()
|
/developers/samples/android/ui/views/Clipping/ClippingBasic/Application/src/main/java/com/example/android/clippingbasic/ |
D | ClippingBasicFragment.java | 86 Log.d(TAG, String.format("Clipping to outline is disabled")); in onViewCreated() 92 Log.d(TAG, String.format("Clipping to outline is enabled")); in onViewCreated() 120 Log.d(TAG, String.format("Text was changed.")); in changeText()
|
/developers/build/prebuilts/gradle/ClippingBasic/Application/src/main/java/com/example/android/clippingbasic/ |
D | ClippingBasicFragment.java | 86 Log.d(TAG, String.format("Clipping to outline is disabled")); in onViewCreated() 92 Log.d(TAG, String.format("Clipping to outline is enabled")); in onViewCreated() 120 Log.d(TAG, String.format("Text was changed.")); in changeText()
|
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/ |
D | TvInputPlayer.java | 262 Format format = videoRepresentations.get(i).format; in prepare() local 263 if (format.width * format.height > maxDecodableFrameSize) { in prepare() 265 } else if (!format.mimeType.equals(MimeTypes.VIDEO_MP4) in prepare() 266 && !format.mimeType.equals(MimeTypes.VIDEO_WEBM)) { in prepare() 306 Format format = audioRepresentations.get(i).format; in prepare() local 309 .setAudioChannelCount(format.numChannels) in prepare() 310 .setAudioSampleRate(format.audioSamplingRate) in prepare() 311 .setLanguage(format.language) in prepare()
|
/developers/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
D | DirectorySelectionFragment.java | 136 Log.d(TAG, String.format("Open Directory result Uri : %s", data.getData())); in onActivityResult() 204 Log.i(TAG, String.format( in createDirectory() 207 Toast.makeText(getActivity(), String.format("Created a directory [%s]", in createDirectory() 210 Log.w(TAG, String.format("Failed to create a directory : %s, Uri %s", directoryName, in createDirectory() 212 Toast.makeText(getActivity(), String.format("Failed to created a directory [%s] : ", in createDirectory()
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/playback/ |
D | WatchNextAdapter.java | 36 Log.d(TAG, String.format("Updating the movie (%d) in watch next.", movie.getId())); in updateProgress() 42 String.format( in updateProgress() 110 Log.d(TAG, String.format("Deleted %d programs(s) from watch next", rows)); in removeFromWatchNext()
|
/developers/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
D | DirectorySelectionFragment.java | 138 Log.d(TAG, String.format("Open Directory result Uri : %s", data.getData())); in onActivityResult() 211 Log.i(TAG, String.format( in createDirectory() 214 Toast.makeText(getActivity(), String.format("Created a directory [%s]", in createDirectory() 217 Log.w(TAG, String.format("Failed to create a directory : %s, Uri %s", directoryName, in createDirectory() 219 Toast.makeText(getActivity(), String.format("Failed to created a directory [%s] : ", in createDirectory()
|
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/ |
D | Util.java | 244 Log.d(TAG, String.format(message, params)); in logd() 250 Log.v(TAG, String.format(message, params)); in logv() 263 Log.w(TAG, String.format(message, params)); in logw() 267 Log.w(TAG, String.format(message, params), throwable); in logw() 271 Log.e(TAG, String.format(message, params)); in loge() 275 Log.e(TAG, String.format(message, params), throwable); in loge()
|
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/ |
D | Util.java | 244 Log.d(TAG, String.format(message, params)); in logd() 250 Log.v(TAG, String.format(message, params)); in logv() 263 Log.w(TAG, String.format(message, params)); in logw() 267 Log.w(TAG, String.format(message, params), throwable); in logw() 271 Log.e(TAG, String.format(message, params)); in loge() 275 Log.e(TAG, String.format(message, params), throwable); in loge()
|
/developers/samples/android/ui/views/CardView/Application/src/main/java/com/example/android/cardview/ |
D | CardViewFragment.java | 87 Log.d(TAG, String.format("SeekBar Radius progress : %d", progress)); in onViewCreated() 105 Log.d(TAG, String.format("SeekBar Elevation progress : %d", progress)); in onViewCreated()
|
/developers/build/prebuilts/gradle/CardView/Application/src/main/java/com/example/android/cardview/ |
D | CardViewFragment.java | 87 Log.d(TAG, String.format("SeekBar Radius progress : %d", progress)); in onViewCreated() 105 Log.d(TAG, String.format("SeekBar Elevation progress : %d", progress)); in onViewCreated()
|
/developers/build/prebuilts/gradle/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/ |
D | ElevationDragFragment.java | 89 Log.d(TAG, String.format(Locale.US, "Elevation: %.1f", mElevation)); in onCreateView() 103 Log.d(TAG, String.format(Locale.US, "Elevation: %.1f", mElevation)); in onCreateView()
|
/developers/samples/android/ui/views/Elevation/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/ |
D | ElevationDragFragment.java | 89 Log.d(TAG, String.format(Locale.US, "Elevation: %.1f", mElevation)); in onCreateView() 103 Log.d(TAG, String.format(Locale.US, "Elevation: %.1f", mElevation)); in onCreateView()
|
/developers/samples/android/ui/activitytasks/DocumentCentricApps/Application/src/main/java/com/example/android/documentcentricapps/ |
D | NewDocumentActivity.java | 69 .setText(String.format(getString(resId), String.valueOf(mDocumentCount))); in setDocumentCounterText()
|
/developers/build/prebuilts/gradle/DocumentCentricApps/Application/src/main/java/com/example/android/documentcentricapps/ |
D | NewDocumentActivity.java | 69 .setText(String.format(getString(resId), String.valueOf(mDocumentCount))); in setDocumentCounterText()
|
/developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
D | MessageLogger.java | 41 message = DATE_FORMAT.format(new Date(System.currentTimeMillis())) + ": " + message; in logMessage()
|
/developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
D | MessageLogger.java | 41 message = DATE_FORMAT.format(new Date(System.currentTimeMillis())) + ": " + message; in logMessage()
|
/developers/build/prebuilts/gradle/AgendaData/Wearable/src/main/java/com/example/android/wearable/agendadata/ |
D | HomeListenerService.java | 27 import android.text.format.DateFormat; 119 String startTime = DateFormat.getTimeFormat(this).format(new Date(data.getLong(BEGIN))); in updateNotificationForDataItem() 120 String endTime = DateFormat.getTimeFormat(this).format(new Date(data.getLong(END))); in updateNotificationForDataItem()
|