Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 430) sorted by relevance

12345678910>>...18

/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DProvisioningValuesLoader.java61 HashMap<String, String> values = new HashMap<>(); in loadInBackground() local
62 loadFromDisk(values); in loadInBackground()
63 gatherAdminExtras(values); in loadInBackground()
64 loadSystemValues(values); in loadInBackground()
65 return values; in loadInBackground()
69 public void deliverResult(Map<String, String> values) { in deliverResult() argument
73 mValues = values; in deliverResult()
74 super.deliverResult(values); in deliverResult()
99 private void loadFromDisk(HashMap<String, String> values) { in loadFromDisk() argument
107 loadFromFile(values, file); in loadFromDisk()
[all …]
DNfcProvisioningFragment.java212 public void onLoadFinished(Loader<Map<String, String>> loader, Map<String, String> values) { in onLoadFinished() argument
214 mProvisioningValues = values; in onLoadFinished()
216 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/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DProvisioningValuesLoader.java61 HashMap<String, String> values = new HashMap<>(); in loadInBackground() local
62 loadFromDisk(values); in loadInBackground()
63 gatherAdminExtras(values); in loadInBackground()
64 loadSystemValues(values); in loadInBackground()
65 return values; in loadInBackground()
69 public void deliverResult(Map<String, String> values) { in deliverResult() argument
73 mValues = values; in deliverResult()
74 super.deliverResult(values); in deliverResult()
99 private void loadFromDisk(HashMap<String, String> values) { in loadFromDisk() argument
107 loadFromFile(values, file); in loadFromDisk()
[all …]
DNfcProvisioningFragment.java212 public void onLoadFinished(Loader<Map<String, String>> loader, Map<String, String> values) { in onLoadFinished() argument
214 mProvisioningValues = values; in onLoadFinished()
216 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/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/simple/
DSimpleTvInputSetupActivity.java75 ContentValues values = new ContentValues(); in registerChannels() local
76 values.put(TvContract.Channels.COLUMN_INPUT_ID, mInputId); in registerChannels()
79 values.put(TvContract.Channels.COLUMN_DISPLAY_NUMBER, CHANNEL_1_NUMBER); in registerChannels()
80 values.put(TvContract.Channels.COLUMN_DISPLAY_NAME, CHANNEL_1_NAME); in registerChannels()
81 values.put(TvContract.Channels.COLUMN_ORIGINAL_NETWORK_ID, CHANNEL_1_ORIG_NETWORK_ID); in registerChannels()
82 values.put(TvContract.Channels.COLUMN_TRANSPORT_STREAM_ID, CHANNEL_1_TRANSPORT_STREAM_ID); in registerChannels()
83 values.put(TvContract.Channels.COLUMN_SERVICE_ID, CHANNEL_1_SERVICE_ID); in registerChannels()
84 getContentResolver().insert(TvContract.Channels.CONTENT_URI, values); in registerChannels()
87 values.put(TvContract.Channels.COLUMN_DISPLAY_NUMBER, CHANNEL_2_NUMBER); in registerChannels()
88 values.put(TvContract.Channels.COLUMN_DISPLAY_NAME, CHANNEL_2_NAME); in registerChannels()
[all …]
/developers/samples/android/ui/transition/CustomTransition/Application/src/main/java/com/example/android/customtransition/
DChangeColor.java44 private void captureValues(TransitionValues values) { in captureValues() argument
46 values.values.put(PROPNAME_BACKGROUND, values.view.getBackground()); in captureValues()
79 Drawable startBackground = (Drawable) startValues.values.get(PROPNAME_BACKGROUND); in createAnimator()
80 Drawable endBackground = (Drawable) endValues.values.get(PROPNAME_BACKGROUND); in createAnimator()
/developers/build/prebuilts/gradle/CustomTransition/Application/src/main/java/com/example/android/customtransition/
DChangeColor.java44 private void captureValues(TransitionValues values) { in captureValues() argument
46 values.values.put(PROPNAME_BACKGROUND, values.view.getBackground()); in captureValues()
79 Drawable startBackground = (Drawable) startValues.values.get(PROPNAME_BACKGROUND); in createAnimator()
80 Drawable endBackground = (Drawable) endValues.values.get(PROPNAME_BACKGROUND); in createAnimator()
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/
DTvContractUtils.java91 ContentValues values = new ContentValues(); in updateChannels() local
92 values.put(Channels.COLUMN_INPUT_ID, inputId); in updateChannels()
95 values.put(Channels.COLUMN_DISPLAY_NUMBER, channel.number); in updateChannels()
96 values.put(Channels.COLUMN_DISPLAY_NAME, channel.name); in updateChannels()
97 values.put(Channels.COLUMN_ORIGINAL_NETWORK_ID, channel.originalNetworkId); in updateChannels()
98 values.put(Channels.COLUMN_TRANSPORT_STREAM_ID, channel.transportStreamId); in updateChannels()
99 values.put(Channels.COLUMN_SERVICE_ID, channel.serviceId); in updateChannels()
102 values.put(Channels.COLUMN_VIDEO_FORMAT, videoFormat); in updateChannels()
104 values.putNull(Channels.COLUMN_VIDEO_FORMAT); in updateChannels()
109 uri = resolver.insert(TvContract.Channels.CONTENT_URI, values); in updateChannels()
[all …]
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/
DSyncAdapter.java99 ContentValues values = new ContentValues(); in insertPrograms() local
100 values.put(TvContract.Programs.COLUMN_CHANNEL_ID, ContentUris.parseId(channelUri)); in insertPrograms()
101 values.put(TvContract.Programs.COLUMN_TITLE, program.title); in insertPrograms()
102 values.put(TvContract.Programs.COLUMN_SHORT_DESCRIPTION, program.description); in insertPrograms()
103 values.put(TvContract.Programs.COLUMN_CONTENT_RATING, in insertPrograms()
106 values.put(TvContract.Programs.COLUMN_POSTER_ART_URI, program.posterArtUri); in insertPrograms()
111 values.put(TvContract.Programs.COLUMN_INTERNAL_PROVIDER_DATA, in insertPrograms()
114 programs.add(values); in insertPrograms()
/developers/build/prebuilts/gradle/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/
DLocationDbHelper.java91 ContentValues values = new ContentValues(); in insert() local
92 values.put(COLUMN_NAME_DAY, entry.day); in insert()
93 values.put(COLUMN_NAME_LONGITUDE, entry.longitude); in insert()
94 values.put(COLUMN_NAME_LATITUDE, entry.latitude); in insert()
95 values.put(COLUMN_NAME_TIME, entry.calendar.getTimeInMillis()); in insert()
98 return db.insert(TABLE_NAME, "null", values); in insert()
/developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/
DLocationDbHelper.java91 ContentValues values = new ContentValues(); in insert() local
92 values.put(COLUMN_NAME_DAY, entry.day); in insert()
93 values.put(COLUMN_NAME_LONGITUDE, entry.longitude); in insert()
94 values.put(COLUMN_NAME_LATITUDE, entry.latitude); in insert()
95 values.put(COLUMN_NAME_TIME, entry.calendar.getTimeInMillis()); in insert()
98 return db.insert(TABLE_NAME, "null", values); in insert()
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCustomVirtualView.java67 public void autofill(SparseArray<AutofillValue> values) { in autofill() argument
76 Log.d(TAG, "autofill(): " + values); in autofill()
81 for (int i = 0; i < values.size(); i++) { in autofill()
82 int id = values.keyAt(i); in autofill()
100 for (int i = 0; i < values.size(); i++) { in autofill()
101 int id = values.keyAt(i); in autofill()
102 AutofillValue value = values.valueAt(i); in autofill()
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCustomVirtualView.java67 public void autofill(SparseArray<AutofillValue> values) { in autofill() argument
76 Log.d(TAG, "autofill(): " + values); in autofill()
81 for (int i = 0; i < values.size(); i++) { in autofill()
82 int id = values.keyAt(i); in autofill()
100 for (int i = 0; i < values.size(); i++) { in autofill()
101 int id = values.keyAt(i); in autofill()
102 AutofillValue value = values.valueAt(i); in autofill()
/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java373 mSensorX = event.values[0]; in onSensorChanged()
374 mSensorY = event.values[1]; in onSensorChanged()
377 mSensorX = -event.values[1]; in onSensorChanged()
378 mSensorY = event.values[0]; in onSensorChanged()
381 mSensorX = -event.values[0]; in onSensorChanged()
382 mSensorY = -event.values[1]; in onSensorChanged()
385 mSensorX = event.values[1]; in onSensorChanged()
386 mSensorY = -event.values[0]; in onSensorChanged()
/developers/samples/android/connectivity/network/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/
DNetworkFragment.java185 protected void onProgressUpdate(Integer... values) { in onProgressUpdate() argument
186 super.onProgressUpdate(values); in onProgressUpdate()
187 if (values.length >= 2) { in onProgressUpdate()
188 mCallback.onProgressUpdate(values[0], values[1]); in onProgressUpdate()
/developers/build/prebuilts/gradle/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/
DNetworkFragment.java185 protected void onProgressUpdate(Integer... values) { in onProgressUpdate() argument
186 super.onProgressUpdate(values); in onProgressUpdate()
187 if (values.length >= 2) { in onProgressUpdate()
188 mCallback.onProgressUpdate(values[0], values[1]); in onProgressUpdate()
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/
DWeatherDataProvider.java104 public Uri insert(Uri uri, ContentValues values) { in insert() argument
116 public synchronized int update(Uri uri, ContentValues values, String selection, in update() argument
127 data.degrees = values.getAsInteger(Columns.TEMPERATURE); in update()
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java122 public Uri insert(Uri uri, ContentValues values) { in insert() argument
129 long id = db.insertOrThrow(FeedContract.Entry.TABLE_NAME, null, values); in insert()
180 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
189 .update(db, values); in update()
196 .update(db, values); in update()
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java122 public Uri insert(Uri uri, ContentValues values) { in insert() argument
129 long id = db.insertOrThrow(FeedContract.Entry.TABLE_NAME, null, values); in insert()
180 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
189 .update(db, values); in update()
196 .update(db, values); in update()
/developers/build/prebuilts/gradle/DarkTheme/
DREADME.md24 `AndroidManifest.xml#L23`) extends from DayNight (`values/styles.xml#L16`).
27 `?attr/colorOnBackground` for the generic text color of the app (`values/styles.xml#35`).
30 extract hard-coded values and switch them out when the configuration changes to night mode.
31 For example, we use a different primary colour in dark mode. Check `values-night/colors.xml`
35 `getDelegate().setLocalNightMode()`. It can take different values:
97 in `values/styles.xml#L21` where we set "colorPrimary" to `@color/primary`.
98 `@color/primary` is defined in both `values/colors.xml` and `values-night/colors.xml`.
100 - *Text color*. Same way as we did before, the text color is defined in `values/styles.xml`
103 - *Window background*. The window background is set in `values/styles.xml` with the
108 Instead of creating a new color with an alpha in hexadecimal values, we reuse the color and specify
/developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
DAssetProvider.java58 public Uri insert(@NonNull Uri uri, ContentValues values) { in insert() argument
72 public int update(@NonNull Uri uri, ContentValues values, String selection, in update() argument
/developers/build/prebuilts/gradle/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
DAssetProvider.java58 public Uri insert(@NonNull Uri uri, ContentValues values) { in insert() argument
72 public int update(@NonNull Uri uri, ContentValues values, String selection, in update() argument
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DCustomVirtualView.kt70 override fun autofill(values: SparseArray<AutofillValue>) { in autofill()
75 Log.d(TAG, "autofill(): " + values) in autofill()
76 for (i in 0 until values.size()) { in autofill()
77 val id = values.keyAt(i) in autofill()
78 val value = values.valueAt(i) in autofill()
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DCustomVirtualView.kt70 override fun autofill(values: SparseArray<AutofillValue>) { in autofill()
75 Log.d(TAG, "autofill(): " + values) in autofill()
76 for (i in 0 until values.size()) { in autofill()
77 val id = values.keyAt(i) in autofill()
78 val value = values.valueAt(i) in autofill()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/
DMyPreferences.java95 return Util.LogLevel.values()[mPrefs.getInt(LOGGING_LEVEL, Util.LogLevel.Off.ordinal())]; in getLoggingLevel()
104 return Util.DalCheckRequirement.values()[mPrefs.getInt(DAL_CHECK_REQUIRED, in getDalCheckRequirement()

12345678910>>...18