Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 181) sorted by relevance

12345678

/developers/samples/android/ui/text/TextStyling-Java/app/src/test/java/com/android/example/text/styling/parser/
DParserTest.java41 assertEquals(elements.get(0).getType(), QUOTE); in quoteBeginingOfText()
42 assertEquals(elements.get(0).getText(), "This is a quote.\n"); in quoteBeginingOfText()
43 assertEquals(elements.get(1).getType(), TEXT); in quoteBeginingOfText()
44 assertEquals(elements.get(1).getText(), "This is not"); in quoteBeginingOfText()
54 assertEquals(elements.get(0).getType(), TEXT); in quoteEndOfText()
55 assertEquals(elements.get(0).getText(), "This is not a quote.\n"); in quoteEndOfText()
56 assertEquals(elements.get(1).getType(), QUOTE); in quoteEndOfText()
57 assertEquals(elements.get(1).getText(), "This is a quote"); in quoteEndOfText()
67 assertEquals(elements.get(0).getType(), TEXT); in simpleBulletPoints()
68 assertEquals(elements.get(0).getText(), "Bullet points:\n"); in simpleBulletPoints()
[all …]
/developers/build/lib/
DbuildSrc.jar ... synthetic java.lang.Object this$dist$get$5 (java.lang.String) String ...
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DAutofillHints.java58 !fakeData.strictExampleSet.strings.get(0).isEmpty()) { in generateFakeField()
60 text = choices.get(seed % choices.size()); in generateFakeField()
84 .map(fieldTypesByAutofillHint::get) in getFieldTypeNameFromAutofillHints()
91 return fieldTypeNames.get(0); in getFieldTypeNameFromAutofillHints()
106 String hint = hints.get(i); in removePrefixes()
108 nextHint = hints.get(i + 1); in removePrefixes()
113 hint = hints.get(i); in removePrefixes()
116 nextHint = hints.get(i + 1); in removePrefixes()
/developers/samples/android/wearable/wear/SpeedTracker/Shared/src/main/java/com/example/android/wearable/speedtracker/common/
DUtils.java32 return day.get(Calendar.YEAR) + "-" + day.get(Calendar.DAY_OF_YEAR); in getHashedDay()
/developers/samples/android/wearable/wear/WearDrawers/Wearable/src/main/java/com/example/android/wearable/wear/weardrawers/
DMainActivity.java76 int imageId = getResources().getIdentifier(mSolarSystem.get(mSelectedPlanet).getImage(), in onCreate()
140 toastMessage = mSolarSystem.get(mSelectedPlanet).getName(); in onMenuItemClick()
143 toastMessage = mSolarSystem.get(mSelectedPlanet).getMoons(); in onMenuItemClick()
146 toastMessage = mSolarSystem.get(mSelectedPlanet).getVolume(); in onMenuItemClick()
149 toastMessage = mSolarSystem.get(mSelectedPlanet).getSurfaceArea(); in onMenuItemClick()
173 String selectedPlanetImage = mSolarSystem.get(mSelectedPlanet).getImage(); in onItemSelected()
195 return mSolarSystem.get(pos).getName(); in getItemText()
200 String navigationIcon = mSolarSystem.get(pos).getNavigationIcon(); in getItemDrawable()
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/
DCustomRecyclerAdapter.java105 ImageAssetData imageAssetData = (ImageAssetData) mDataSet.get(position); in onBindViewHolder()
112 EventLoggingData eventLoggingData = (EventLoggingData) mDataSet.get(position); in onBindViewHolder()
137 DataLayerScreenData dataLayerScreenData = mDataSet.get(position); in getItemViewType()
144 if (mDataSet.get(index).getType() == assetType) { in findItemIndex()
155 EventLoggingData dataItemType = (EventLoggingData) mDataSet.get(index); in appendToDataEventLog()
167 ImageAssetData imageAssetData = (ImageAssetData) mDataSet.get(index); in setImageAsset()
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCreditCardExpirationDatePickerView.java73 mYear = mTempCalendar.get(Calendar.YEAR); in CreditCardExpirationDatePickerView()
74 mMonth = mTempCalendar.get(Calendar.MONTH); in CreditCardExpirationDatePickerView()
104 int year = mTempCalendar.get(Calendar.YEAR); in autofill()
105 int month = mTempCalendar.get(Calendar.MONTH); in autofill()
125 setDate(mTempCalendar.get(Calendar.YEAR), mTempCalendar.get(Calendar.MONTH)); in reset()
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
DAsyncTask.java321 postResultIfNotInvoked(get()); in AsyncTask()
335 final boolean wasTaskInvoked = mTaskInvoked.get(); in postResultIfNotInvoked()
459 return mCancelled.get(); in isCancelled()
507 public final Result get() throws InterruptedException, ExecutionException { in get() method in AsyncTask
508 return mFuture.get(); in get()
526 public final Result get(long timeout, TimeUnit unit) throws InterruptedException, in get() method in AsyncTask
528 return mFuture.get(timeout, unit); in get()
/developers/samples/android/media/Camera2Raw/Application/src/main/java/com/example/android/camera2raw/
DCamera2RawFragment.java445 Integer afState = result.get(CaptureResult.CONTROL_AF_STATE);
460 Integer aeState = result.get(CaptureResult.CONTROL_AE_STATE);
461 Integer awbState = result.get(CaptureResult.CONTROL_AWB_STATE);
529 jpegBuilder = mJpegResultQueue.get(requestId);
530 rawBuilder = mRawResultQueue.get(requestId);
547 jpegBuilder = mJpegResultQueue.get(requestId);
548 rawBuilder = mRawResultQueue.get(requestId);
711 if (!contains(characteristics.get( in setUpCameraOutputs()
717 StreamConfigurationMap map = characteristics.get( in setUpCameraOutputs()
738 mJpegImageReader.get().setOnImageAvailableListener( in setUpCameraOutputs()
[all …]
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
DSoundRecorder.java161 SoundRecorder soundRecorder = mSoundRecorderWeakReference.get(); in onPreExecute()
174 SoundRecorder soundRecorder = mSoundRecorderWeakReference.get(); in doInBackground()
222 SoundRecorder soundRecorder = mSoundRecorderWeakReference.get(); in cleanup()
246 SoundRecorder soundRecorder = mSoundRecorderWeakReference.get(); in onPreExecute()
256 SoundRecorder soundRecorder = mSoundRecorderWeakReference.get(); in doInBackground()
293 SoundRecorder soundRecorder = mSoundRecorderWeakReference.get(); in onPostExecute()
303 SoundRecorder soundRecorder = mSoundRecorderWeakReference.get(); in onCancelled()
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/
DUtilityService.java197 showNotification(geofences.get(0).getRequestId(), Constants.USE_MICRO_APP); in geofenceTriggered()
320 List<Attraction> attractions = ATTRACTIONS.get(cityId); in showNotification()
328 Attraction attraction = attractions.get(0); in showNotification()
338 bitmaps.put(attractions.get(i).name, in showNotification()
340 .load(attractions.get(i).imageUrl) in showNotification()
344 .get()); in showNotification()
363 .bigPicture(bitmaps.get(attraction.name)) in showNotification()
385 Utils.getLocation(this), attractions.get(i).location); in showNotification()
389 .setContentTitle(attractions.get(i).name) in showNotification()
393 .setBackground(bitmaps.get(attractions.get(i).name)) in showNotification()
[all …]
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/
DTimePickerFragment.java81 .saveAlarm(alarmTime.get(Calendar.MONTH), alarmTime.get(Calendar.DATE), in onCreateView()
82 … alarmTime.get(Calendar.HOUR_OF_DAY), alarmTime.get(Calendar.MINUTE)); in onCreateView()
/developers/samples/android/ui/views/SlidingTabs/SlidingTabsColors/Application/src/main/java/com/example/android/slidingtabscolors/
DSlidingTabsColorsFragment.java181 return mTabs.get(position).getIndicatorColor(); in onViewCreated()
186 return mTabs.get(position).getDividerColor(); in onViewCreated()
216 return mTabs.get(i).createFragment(); in getItem()
233 return mTabs.get(position).getTitle(); in getPageTitle()
/developers/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/
DDirectoryEntryAdapter.java83 viewHolder.getFileName().setText(mDirectoryEntries.get(position).fileName); in onBindViewHolder()
84 viewHolder.getMimeType().setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder()
86 if (DIRECTORY_MIME_TYPE.equals(mDirectoryEntries.get(position).mimeType)) { in onBindViewHolder()
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DDialogsActivity.java55 public Dialog get() { in onCreate()
81 public Dialog get() { in onCreate()
101 public Dialog get() { in onCreate()
179 mItems.get(position - listView.getHeaderViewsCount()) in onCreate()
181 .get(); in onCreate()
DMenuRecyclerViewAdapter.java55 final AppItem item = mItems.get(position); in onBindViewHolder()
69 mItems.get(pos).launchActivity(mContext); in onBindViewHolder()
81 return mItems.get(position).getViewType(); in getItemViewType()
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/watchface/
DAnalogComplicationWatchFaceService.java344 complicationDrawable = mComplicationDrawableSparseArray.get(complicationId); in setComplicationsActiveAndAmbientColors()
381 complicationDrawable = mComplicationDrawableSparseArray.get(COMPLICATION_IDS[i]); in onPropertiesChanged()
401 mComplicationDrawableSparseArray.get(complicationId); in onComplicationDataUpdate()
419 mComplicationDrawableSparseArray.get(complicationId); in onTapCommand()
452 complicationDrawable = mComplicationDrawableSparseArray.get(COMPLICATION_IDS[i]); in onAmbientModeChanged()
561 mComplicationDrawableSparseArray.get(LEFT_COMPLICATION_ID); in onSurfaceChanged()
573 mComplicationDrawableSparseArray.get(RIGHT_COMPLICATION_ID); in onSurfaceChanged()
581 mComplicationDrawableSparseArray.get(BACKGROUND_COMPLICATION_ID); in onSurfaceChanged()
631 complicationDrawable = mComplicationDrawableSparseArray.get(complicationId); in drawComplications()
664 (mCalendar.get(Calendar.SECOND) + mCalendar.get(Calendar.MILLISECOND) / 1000f); in drawWatchFace()
[all …]
/developers/samples/android/system/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/
DUsageListAdapter.java81 mCustomUsageStatsList.get(position).usageStats.getPackageName()); in onBindViewHolder()
82 long lastTimeUsed = mCustomUsageStatsList.get(position).usageStats.getLastTimeUsed(); in onBindViewHolder()
84 viewHolder.getAppIcon().setImageDrawable(mCustomUsageStatsList.get(position).appIcon); in onBindViewHolder()
/developers/samples/android/content/documentsUi/ScopedDirectoryAccess/Application/src/main/java/com/example/android/scopeddirectoryaccess/
DDirectoryEntryAdapter.java38 viewHolder.fileName.setText(mDirectoryEntries.get(position).fileName); in onBindViewHolder()
39 viewHolder.mimeType.setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder()
42 .equals(mDirectoryEntries.get(position).mimeType)) { in onBindViewHolder()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/
DChatAdapter.java98 Message message = mMessages.get(position); in onBindViewHolder()
99 Profile sender = mChat.getParticipants().get(mMessages.get(position).getSenderId()); in onBindViewHolder()
173 int date = cal.get(Calendar.DAY_OF_MONTH); in millisToDateTime()
174 int hour = cal.get(Calendar.HOUR_OF_DAY); in millisToDateTime()
175 int minute = cal.get(Calendar.MINUTE); in millisToDateTime()
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DNfcProvisioningFragment.java216 mEditPackageName.setText(values.get( in onLoadFinished()
219 ComponentName name = ComponentName.unflattenFromString(values.get( in onLoadFinished()
223 mEditLocale.setText(values.get(DevicePolicyManager.EXTRA_PROVISIONING_LOCALE)); in onLoadFinished()
224 mEditTimezone.setText(values.get(DevicePolicyManager.EXTRA_PROVISIONING_TIME_ZONE)); in onLoadFinished()
225 mEditWifiSsid.setText(values.get(DevicePolicyManager.EXTRA_PROVISIONING_WIFI_SSID)); in onLoadFinished()
226 mEditWifiSecurityType.setText(values.get( in onLoadFinished()
228 mEditWifiPassword.setText(values.get( in onLoadFinished()
/developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/
DScanResultAdapter.java56 return mArrayList.get(position); in getItem()
61 return mArrayList.get(position).getDevice().getAddress().hashCode(); in getItemId()
76 ScanResult scanResult = mArrayList.get(position); in getView()
95 if (mArrayList.get(i).getDevice().getAddress().equals(address)) { in getPosition()
/developers/samples/android/deprecated/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
DSampleGridPagerAdapter.java150 return columns.get(i); in getColumn()
160 Row adapterRow = mRows.get(row); in getFragment()
166 return mRowBackgrounds.get(row); in getBackgroundForRow()
171 return mPageBackgrounds.get(new Point(column, row)); in getBackgroundForPage()
181 return mRows.get(rowNum).getColumnCount(); in getColumnCount()
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/
DWeatherDataProvider.java92 final WeatherDataPoint data = sData.get(i); in query()
122 final int index = Integer.parseInt(uri.getPathSegments().get(0)); in update()
126 final WeatherDataPoint data = sData.get(index); in update()
/developers/samples/android/views/EmojiCompat/app/src/main/java/com/example/android/emojicompat/
DMainActivity.java70 EmojiCompat.get().registerInitCallback(new InitCallback(regularTextView)); in onCreate()
118 final TextView regularTextView = mRegularTextViewRef.get(); in onInitialized()
120 final EmojiCompat compat = EmojiCompat.get(); in onInitialized()

12345678