Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/
DTimerFormat.java49 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/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/
DTimerFormat.java49 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/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/
DBluetoothLeService.java131 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/
DBluetoothLeService.java131 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/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/
DTvInputPlayer.java262 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/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/
DDirectorySelectionFragment.java136 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/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/
DDirectorySelectionFragment.java136 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/ui/views/CardView/Application/tests/src/com/example/android/cardview/
DSampleTests.java41 assertNotNull(String.format("%s is null", CardViewActivity.class.getSimpleName()), in testPreconditions()
43 assertNotNull(String.format("%s is null", CardViewFragment.class.getSimpleName()), in testPreconditions()
/developers/build/prebuilts/gradle/CardView/Application/tests/src/com/example/android/cardview/
DSampleTests.java41 assertNotNull(String.format("%s is null", CardViewActivity.class.getSimpleName()), in testPreconditions()
43 assertNotNull(String.format("%s is null", CardViewFragment.class.getSimpleName()), in testPreconditions()
/developers/build/prebuilts/gradle/ClippingBasic/Application/src/main/java/com/example/android/clippingbasic/
DClippingBasicFragment.java86 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/samples/android/ui/views/Clipping/ClippingBasic/Application/src/main/java/com/example/android/clippingbasic/
DClippingBasicFragment.java86 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/MidiScope/Application/src/main/java/com/example/android/midiscope/
DLoggingReceiver.java48 sb.append(String.format("-----0----: ")); in onSend()
52 sb.append(String.format("%10.3f: ", seconds)); in onSend()
/developers/samples/android/media/MidiScope/Application/src/main/java/com/example/android/midiscope/
DLoggingReceiver.java48 sb.append(String.format("-----0----: ")); in onSend()
52 sb.append(String.format("%10.3f: ", seconds)); in onSend()
/developers/samples/android/ui/views/FloatingActionButton/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/
DFloatingActionButtonBasicFragment.java58 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/build/prebuilts/gradle/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/
DFloatingActionButtonBasicFragment.java58 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/build/prebuilts/gradle/CardView/Application/src/main/java/com/example/android/cardview/
DCardViewFragment.java87 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/samples/android/ui/views/CardView/Application/src/main/java/com/example/android/cardview/
DCardViewFragment.java87 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/samples/android/ui/views/Elevation/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/
DElevationDragFragment.java87 Log.d(TAG, String.format("Elevation: %.1f", mElevation)); in onCreateView()
101 Log.d(TAG, String.format("Elevation: %.1f", mElevation)); in onCreateView()
/developers/build/prebuilts/gradle/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/
DElevationDragFragment.java87 Log.d(TAG, String.format("Elevation: %.1f", mElevation)); in onCreateView()
101 Log.d(TAG, String.format("Elevation: %.1f", mElevation)); in onCreateView()
/developers/build/prebuilts/gradle/AgendaData/Wearable/src/main/java/com/example/android/wearable/agendadata/
DHomeListenerService.java27 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()
/developers/samples/android/wearable/wear/AgendaData/Wearable/src/main/java/com/example/android/wearable/agendadata/
DHomeListenerService.java27 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()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DSearchFragment.java75 Log.i(TAG, String.format("Search Query Text Change %s", newQuery)); in onQueryTextChange()
82 Log.i(TAG, String.format("Search Query Text Submit %s", query)); in onQueryTextSubmit()
/developers/samples/android/ui/activitytasks/DocumentCentricApps/Application/src/main/java/com/example/android/documentcentricapps/
DNewDocumentActivity.java69 .setText(String.format(getString(resId), String.valueOf(mDocumentCount))); in setDocumentCounterText()
/developers/build/prebuilts/gradle/DocumentCentricApps/Application/src/main/java/com/example/android/documentcentricapps/
DNewDocumentActivity.java69 .setText(String.format(getString(resId), String.valueOf(mDocumentCount))); in setDocumentCounterText()
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/
DHdrViewfinderActivity.java557 exposureText = String.format("%.2f s", exposureTime / 1e9);
559 exposureText = String.format("%.2f ms", exposureTime / 1e6);
561 exposureText = String.format("%.2f us", exposureTime / 1e3);
563 exposureText = String.format("%d ns", exposureTime);
596 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument

12345678910>>...14