Home
last modified time | relevance | path

Searched refs:mValues (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntArray.java31 /* package private */ int[] mValues; field in IntArray
35 mValues = array; in IntArray()
51 mValues = EMPTY_INT; in IntArray()
53 mValues = new int[initialCapacity]; in IntArray()
86 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
89 mValues[index] = value; in add()
99 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
117 if (minCapacity >= mValues.length) { in ensureCapacity()
122 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
123 mValues = newValues; in ensureCapacity()
[all …]
DContentWriter.java36 private final ContentValues mValues; field in ContentWriter
53 mValues = values; in ContentWriter()
58 mValues.put(key, value); in put()
63 mValues.put(key, value); in put()
68 mValues.put(key, value); in put()
73 mValues.put(key, value == null ? null : value.toString()); in put()
78 mValues.put(key, value == null ? null : value.toUri(0)); in put()
100 mValues.put(LauncherSettings.Favorites.ICON, GraphicsUtils.flattenBitmap(mIcon)); in getValues()
103 return mValues; in getValues()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsConfig.java107 private final Bundle mValues; field in MmsConfig
130 mValues = values; in MmsConfig()
178 return mValues.getInt(CarrierConfigValuesLoader.CONFIG_SMS_TO_MMS_TEXT_THRESHOLD, in getSmsToMmsTextThreshold()
183 return mValues.getInt(CarrierConfigValuesLoader.CONFIG_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD, in getSmsToMmsTextLengthThreshold()
188 return mValues.getInt(CarrierConfigValuesLoader.CONFIG_MAX_MESSAGE_SIZE, in getMaxMessageSize()
204 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_ENABLED_TRANS_ID, in getTransIdEnabled()
209 return mValues.getString(CarrierConfigValuesLoader.CONFIG_EMAIL_GATEWAY_NUMBER, in getEmailGateway()
214 return mValues.getInt(CarrierConfigValuesLoader.CONFIG_MAX_IMAGE_HEIGHT, in getMaxImageHeight()
219 return mValues.getInt(CarrierConfigValuesLoader.CONFIG_MAX_IMAGE_WIDTH, in getMaxImageWidth()
224 final int limit = mValues.getInt(CarrierConfigValuesLoader.CONFIG_RECIPIENT_LIMIT, in getRecipientLimit()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java171 final ContentValues mValues; field in AutoInstallsLayout
190 mValues = new ContentValues(); in AutoInstallsLayout()
267 mValues.clear(); in parseAndAddNode()
272 mValues.put(Favorites.CONTAINER, container); in parseAndAddNode()
273 mValues.put(Favorites.SCREEN, screenId); in parseAndAddNode()
275 mValues.put(Favorites.CELLX, in parseAndAddNode()
277 mValues.put(Favorites.CELLY, in parseAndAddNode()
299 mValues.put(Favorites.INTENT, intent.toUri(0)); in addShortcut()
300 mValues.put(Favorites.TITLE, title); in addShortcut()
301 mValues.put(Favorites.ITEM_TYPE, type); in addShortcut()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactDelta.java64 private ValuesDelta mValues; field in RawContactDelta
82 mValues = values; in RawContactDelta()
91 rawContactDelta.mValues = ValuesDelta.fromBefore(before.getValues()); in fromBefore()
92 rawContactDelta.mValues.setIdColumn(RawContacts._ID); in fromBefore()
107 final ValuesDelta remoteValues = remote.mValues; in mergeAfter()
114 final Long localVersion = (local.mValues == null) ? null : local.mValues in mergeAfter()
116 final Long remoteVersion = remote.mValues.getAsLong(RawContacts.VERSION); in mergeAfter()
122 local.mValues = ValuesDelta.mergeAfter(local.mValues, remote.mValues); in mergeAfter()
144 return mValues; in getValues()
148 return mValues.isInsert(); in isContactInsert()
[all …]
DRawContact.java53 private final ContentValues mValues; field in RawContact
142 mValues = values; in RawContact()
152 mValues = parcel.readParcelable(ContentValues.class.getClassLoader()); in RawContact()
164 parcel.writeParcelable(mValues, i); in writeToParcel()
193 return mValues; in getValues()
346 sb.append("RawContact: ").append(mValues); in toString()
356 return Objects.hashCode(mValues, mDataItems); in hashCode()
365 return Objects.equal(mValues, other.mValues) && in equals()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DMockSharedPreferences.java33 private HashMap<String, Object> mValues = Maps.newHashMap(); field in MockSharedPreferences
41 return mValues.containsKey(key); in contains()
45 return new HashMap<String, Object>(mValues); in getAll()
49 if (mValues.containsKey(key)) { in getBoolean()
50 return ((Boolean)mValues.get(key)).booleanValue(); in getBoolean()
56 if (mValues.containsKey(key)) { in getFloat()
57 return ((Float)mValues.get(key)).floatValue(); in getFloat()
63 if (mValues.containsKey(key)) { in getInt()
64 return ((Integer)mValues.get(key)).intValue(); in getInt()
70 if (mValues.containsKey(key)) { in getLong()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockSharedPreferences.java33 private HashMap<String, Object> mValues = Maps.newHashMap(); field in MockSharedPreferences
41 return mValues.containsKey(key); in contains()
45 return new HashMap<String, Object>(mValues); in getAll()
49 if (mValues.containsKey(key)) { in getBoolean()
50 return ((Boolean)mValues.get(key)).booleanValue(); in getBoolean()
56 if (mValues.containsKey(key)) { in getFloat()
57 return ((Float)mValues.get(key)).floatValue(); in getFloat()
63 if (mValues.containsKey(key)) { in getInt()
64 return ((Integer)mValues.get(key)).intValue(); in getInt()
70 if (mValues.containsKey(key)) { in getLong()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java477 private final ContentValues mValues = new ContentValues(); field in LegacyApiSupport
833 Uri contactUri = mContactsProvider.insertInTransaction(RawContacts.CONTENT_URI, mValues); in insertPeople()
850 ContactsDatabaseHelper.copyLongValue(mValues, Data.RAW_CONTACT_ID, in insertOrganization()
853 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertOrganization()
860 mValues.put(Data.RAW_CONTACT_ID, rawContactId); in insertPhone()
862 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertPhone()
875 mValues.put(Data.RAW_CONTACT_ID, rawContactId); in insertContactMethod()
876 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertContactMethod()
881 mValues.clear(); in insertExtension()
883 mValues.put(Data.RAW_CONTACT_ID, rawContactId); in insertExtension()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DFakeSharedPreferences.java29 private HashMap<String, Object> mValues = new HashMap<String, Object>(); field in FakeSharedPreferences
39 return mValues.containsKey(key); in contains()
44 return new HashMap<String, Object>(mValues); in getAll()
49 if (mValues.containsKey(key)) { in getBoolean()
50 return ((Boolean)mValues.get(key)).booleanValue(); in getBoolean()
57 if (mValues.containsKey(key)) { in getFloat()
58 return ((Float)mValues.get(key)).floatValue(); in getFloat()
65 if (mValues.containsKey(key)) { in getInt()
66 return ((Integer)mValues.get(key)).intValue(); in getInt()
73 if (mValues.containsKey(key)) { in getLong()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DHdcpCheckingPreferenceControllerTest.java65 private String[] mValues; field in HdcpCheckingPreferenceControllerTest
72 mValues = mContext.getResources().getStringArray(R.array.hdcp_checking_values); in setup()
97 mController.onPreferenceChange(mPreference, mValues[0]); in onPreferenceChange_setNeverCheckHdcp_shouldEnableNeverCheckHdcp()
99 assertThat(SystemProperties.get(HDCP_CHECKING_PROPERTY)).isEqualTo(mValues[0]); in onPreferenceChange_setNeverCheckHdcp_shouldEnableNeverCheckHdcp()
104 mController.onPreferenceChange(mPreference, mValues[1]); in onPreferenceChange_setCheckDrm_shouldEnableCheckDrm()
106 assertThat(SystemProperties.get(HDCP_CHECKING_PROPERTY)).isEqualTo(mValues[1]); in onPreferenceChange_setCheckDrm_shouldEnableCheckDrm()
111 SystemProperties.set(HDCP_CHECKING_PROPERTY, mValues[0]); in updateState_neverCheckHdcp_shouldEnableNeverCheckHdcp()
115 verify(mPreference).setValue(mValues[0]); in updateState_neverCheckHdcp_shouldEnableNeverCheckHdcp()
121 SystemProperties.set(HDCP_CHECKING_PROPERTY, mValues[1]); in updateState_checkDrm_shouldEnableCheckDrm()
125 verify(mPreference).setValue(mValues[1]); in updateState_checkDrm_shouldEnableCheckDrm()
[all …]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockSuggestionProviderCursor.java91 private final Object[] mValues; field in MockSuggestionProviderCursor.Row
96 mValues = new Object[mColumns.length]; in Row()
103 mValues[column] = value; in setColumn()
108 return mValues[column]; in get()
112 Object o = mValues[column]; in getDouble()
119 Object o = mValues[column]; in getFloat()
126 Object o = mValues[column]; in getInt()
132 Object o = mValues[column]; in getLong()
138 Object o = mValues[column]; in getShort()
144 Object o = mValues[column]; in getString()
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DSparseArray.java24 private final ArrayList<E> mValues; field in SparseArray
32 mValues = new ArrayList<>(initialCapacity); in SparseArray()
41 mValues.clear(); in clear()
47 mValues.set(index, value); in put()
52 mValues.add(insertIndex, value); in put()
62 return mValues.get(index); in get()
72 return mValues.indexOf(value); in indexOfValue()
80 return mValues.get(index); in valueAt()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DBarrierConsumer.java36 private ArrayList<A> mValues; field in BarrierConsumer
45 mValues = new ArrayList<A>(expectedCount); in BarrierConsumer()
64 ArrayList<A> values = mValues; in getValues()
65 mValues = null; // mark that getValues() has returned in getValues()
77 if (mValues == null || isFull()) { in consume()
80 mValues.add(value); in consume()
92 return mValues.size() == mExpectedCount; in isFull()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyPolicyBuilder.java38 private Map<String, String> mValues; field in AnomalyPolicyBuilder
41 mValues = new HashMap<>(); in AnomalyPolicyBuilder()
45 mValues.put(key, value); in addPolicy()
50 mValues.put(key, Long.toString(value)); in addPolicy()
56 mValues.put(key, value ? "true" : "false"); in addPolicy()
62 for (Map.Entry<String, String> entry : mValues.entrySet()) { in build()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DRawContact.java61 private final ContentValues mValues; field in RawContact
71 mValues = values; in RawContact()
81 mValues = parcel.readParcelable(ContentValues.class.getClassLoader()); in RawContact()
104 parcel.writeParcelable(mValues, i); in writeToParcel()
116 return mValues; in getValues()
256 sb.append("RawContact: ").append(mValues); in toString()
266 return Objects.hash(mValues, mDataItems); in hashCode()
279 return Objects.equals(mValues, other.mValues) && Objects.equals(mDataItems, other.mDataItems); in equals()
/packages/apps/Settings/src/com/android/settings/notification/
DSettingPref.java44 private final int[] mValues; field in SettingPref
55 mValues = values; in SettingPref()
78 CharSequence[] entries = new CharSequence[mValues.length]; in init()
79 CharSequence[] values = new CharSequence[mValues.length]; in init()
80 for (int i = 0; i < mValues.length; i++) { in init()
81 entries[i] = getCaption(context.getResources(), mValues[i]); in init()
82 values[i] = Integer.toString(mValues[i]); in init()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DSettingPref.java44 private final int[] mValues; field in SettingPref
55 mValues = values; in SettingPref()
78 CharSequence[] entries = new CharSequence[mValues.length]; in init()
79 CharSequence[] values = new CharSequence[mValues.length]; in init()
80 for (int i = 0; i < mValues.length; i++) { in init()
81 entries[i] = getCaption(context.getResources(), mValues[i]); in init()
82 values[i] = Integer.toString(mValues[i]); in init()
/packages/services/Telephony/src/com/android/phone/
DCLIRListPreference.java32 private final String[] mValues = getContext().getResources() field in CLIRListPreference
73 String[] noNetworkDefaultValues = {mValues[CommandsInterface.CLIR_INVOCATION], in init()
74 mValues[CommandsInterface.CLIR_SUPPRESSION]}; in init()
123 setValue(mValues[value]); in handleGetCLIRResult()
150 if (mValues[CommandsInterface.CLIR_INVOCATION].equals(value)) { in convertValueToCLIRMode()
152 } else if (mValues[CommandsInterface.CLIR_SUPPRESSION].equals(value)) { in convertValueToCLIRMode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModePriorityMessagesPreferenceControllerTest.java77 private String[] mValues; field in ZenModePriorityMessagesPreferenceControllerTest
86 mValues = mContext.getResources().getStringArray(R.array.zen_mode_contacts_values); in setup()
149 verify(mockPref).setValue(mValues[mController.getIndexOfSendersValue( in onPreferenceChange_setSelectedContacts_any()
158 verify(mockPref).setValue(mValues[mController.getIndexOfSendersValue( in onPreferenceChange_setSelectedContacts_none()
168 verify(mockPref).setValue(mValues[mController.getIndexOfSendersValue( in onPreferenceChange_setSelectedContacts_starred()
178 verify(mockPref).setValue(mValues[mController.getIndexOfSendersValue( in onPreferenceChange_setSelectedContacts_contacts()
DZenModePriorityCallsPreferenceControllerTest.java77 private String[] mValues; field in ZenModePriorityCallsPreferenceControllerTest
86 mValues = mContext.getResources().getStringArray(R.array.zen_mode_contacts_values); in setup()
149 verify(mockPref).setValue(mValues[mController.getIndexOfSendersValue( in onPreferenceChange_setSelectedContacts_any()
158 verify(mockPref).setValue(mValues[mController.getIndexOfSendersValue( in onPreferenceChange_setSelectedContacts_none()
168 verify(mockPref).setValue(mValues[mController.getIndexOfSendersValue( in onPreferenceChange_setSelectedContacts_starred()
178 verify(mockPref).setValue(mValues[mController.getIndexOfSendersValue( in onPreferenceChange_setSelectedContacts_contacts()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringObjectAnimator.java48 private float[] mValues; field in SpringObjectAnimator
68 mValues = values; in SpringObjectAnimator()
142 float startValue = end == 0 ? mValues[1] : mValues[0]; in startSpring()
143 float endValue = end == 0 ? mValues[0] : mValues[1]; in startSpring()
/packages/apps/Settings/src/com/android/settings/display/
DScreenZoomSettings.java44 private int[] mValues; field in ScreenZoomSettings
74 mValues = new int[]{densityDpi}; in onCreate()
79 mValues = density.getValues(); in onCreate()
92 config.densityDpi = mValues[index]; in createConfig()
101 final int densityDpi = mValues[mCurrentIndex]; in commit()
DToggleFontSizePreferenceFragment.java43 private float[] mValues; field in ToggleFontSizePreferenceFragment
67 mValues = new float[strEntryValues.length]; in onCreate()
69 mValues[i] = Float.parseFloat(strEntryValues[i]); in onCreate()
78 config.fontScale = mValues[index]; in createConfig()
89 Settings.System.putFloat(resolver, Settings.System.FONT_SCALE, mValues[mCurrentIndex]); in commit()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DScreenZoomSettings.java44 private int[] mValues; field in ScreenZoomSettings
74 mValues = new int[]{densityDpi}; in onCreate()
79 mValues = density.getValues(); in onCreate()
92 config.densityDpi = mValues[index]; in createConfig()
101 final int densityDpi = mValues[mCurrentIndex]; in commit()

12