Home
last modified time | relevance | path

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

123

/packages/services/Car/car-lib/src/com/android/car/internal/util/
DIntArray.java34 private int[] mValues; field in IntArray
38 mValues = array; in IntArray()
54 mValues = EMPTY_INT_ARRAY; in IntArray()
56 mValues = new int[initialCapacity]; in IntArray()
82 if (newSize <= mValues.length) { in resize()
83 Arrays.fill(mValues, newSize, mValues.length, 0); in resize()
111 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
114 mValues[index] = value; in add()
132 return Arrays.binarySearch(mValues, value); in binarySearch()
142 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
[all …]
DLongArray.java36 private long[] mValues; field in LongArray
40 mValues = array; in LongArray()
56 mValues = EmptyArray.LONG; in LongArray()
58 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray()
84 if (newSize <= mValues.length) { in resize()
85 Arrays.fill(mValues, newSize, mValues.length, 0); in resize()
113 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
116 mValues[index] = value; in add()
126 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
136 if (minCapacity >= mValues.length) { in ensureCapacity()
[all …]
DPairSparseArray.java44 private final LongSparseArray<E> mValues; field in PairSparseArray
58 mValues = new LongSparseArray<>(initialCapacity); in PairSparseArray()
63 mValues = other.mValues.clone(); in PairSparseArray()
101 mValues.append(key, value); in append()
109 mValues.clear(); in clear()
128 mValues.delete(key); in delete()
169 return mValues.indexOfKey(key); in indexOfKeyPair()
181 return mValues.indexOfValue(value); in indexOfValue()
193 return decodeKeyPair(mValues.keyAt(index)); in keyPairAt()
203 mValues.put(key, value); in put()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DFakeSharedPreferences.java28 private HashMap<String, Object> mValues = new HashMap<String, Object>(); field in FakeSharedPreferences
31 return mValues.size(); in getValueCount()
41 return mValues.containsKey(key); in contains()
46 return new HashMap<String, Object>(mValues); in getAll()
51 if (mValues.containsKey(key)) { in getBoolean()
52 return ((Boolean) mValues.get(key)).booleanValue(); in getBoolean()
59 if (mValues.containsKey(key)) { in getFloat()
60 return ((Float) mValues.get(key)).floatValue(); in getFloat()
67 if (mValues.containsKey(key)) { in getInt()
68 return ((Integer) mValues.get(key)).intValue(); in getInt()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DLongArray.java29 private long[] mValues; field in LongArray
33 mValues = array; in LongArray()
49 mValues = new long[0]; in LongArray()
51 mValues = new long[initialCapacity]; in LongArray()
77 if (newSize <= mValues.length) { in resize()
78 Arrays.fill(mValues, newSize, mValues.length, 0); in resize()
106 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
109 mValues[index] = value; in add()
119 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
129 if (minCapacity >= mValues.length) { in ensureCapacity()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntArray.java32 /* package private */ int[] mValues; field in IntArray
36 mValues = array; in IntArray()
52 mValues = EMPTY_INT; in IntArray()
54 mValues = new int[initialCapacity]; in IntArray()
87 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
90 mValues[index] = value; in add()
100 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
118 if (minCapacity >= mValues.length) { in ensureCapacity()
123 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
124 mValues = newValues; in ensureCapacity()
[all …]
DContentWriter.java37 private final ContentValues mValues; field in ContentWriter
54 mValues = values; in ContentWriter()
59 mValues.put(key, value); in put()
64 mValues.put(key, value); in put()
69 mValues.put(key, value); in put()
74 mValues.put(key, value == null ? null : value.toString()); in put()
79 mValues.put(key, value == null ? null : value.toUri(0)); in put()
101 mValues.put(LauncherSettings.Favorites.ICON, GraphicsUtils.flattenBitmap(mIcon.icon)); in getValues()
104 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/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/MediaProvider/tests/client/src/com/android/providers/media/client/
DClientPlaylistTest.java82 private final ContentValues mValues = new ContentValues(); field in ClientPlaylistTest
124 mValues.clear(); in testAdd()
125 mValues.put(MediaColumns.DISPLAY_NAME, "Playlist " + System.nanoTime()); in testAdd()
126 mValues.put(MediaColumns.MIME_TYPE, mMimeType); in testAdd()
128 final Uri playlistUri = mContentResolver.insert(mExternalPlaylists, mValues); in testAdd()
139 mValues.clear(); in testAdd()
140 mValues.put(Playlists.Members.AUDIO_ID, mRed); in testAdd()
141 Uri resultUri = mContentResolver.insert(membersUri, mValues); in testAdd()
144 mValues.put(Playlists.Members.AUDIO_ID, mGreen); in testAdd()
145 resultUri = mContentResolver.insert(membersUri, mValues); in testAdd()
[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/modules/StatsD/statsd/src/logd/
DLogEvent.cpp69 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(1)), Value(trainName))); in LogEvent()
70 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(trainVersionCode))); in LogEvent()
71 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(3)), Value((int)requiresStaging))); in LogEvent()
72 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(4)), Value((int)rollbackEnabled))); in LogEvent()
73 mValues.push_back( in LogEvent()
75 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(6)), Value(state))); in LogEvent()
76 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(7)), Value(experimentIds))); in LogEvent()
77 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(8)), Value(userId))); in LogEvent()
86 mValues.push_back( in LogEvent()
90 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(experimentIdsProto))); in LogEvent()
[all …]
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/
DReferenceWithHistory.java71 private ArrayDeque<TimestampedValue<V>> mValues; field in ReferenceWithHistory
98 if (mValues == null || mValues.isEmpty()) { in get()
101 TimestampedValue<V> valueHolder = mValues.getFirst(); in get()
111 if (mValues == null) { in set()
112 mValues = new ArrayDeque<>(mMaxHistorySize); in set()
115 if (mValues.size() >= mMaxHistorySize) { in set()
116 mValues.removeLast(); in set()
123 mValues.addFirst(valueHolder); in set()
132 if (mValues == null) { in dump()
136 for (TimestampedValue<V> valueHolder : mValues) { in dump()
[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 …]
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java188 final ContentValues mValues; field in AutoInstallsLayout
208 mValues = new ContentValues(); in AutoInstallsLayout()
296 mValues.clear(); in parseAndAddNode()
301 mValues.put(Favorites.CONTAINER, container); in parseAndAddNode()
302 mValues.put(Favorites.SCREEN, screenId); in parseAndAddNode()
304 mValues.put(Favorites.CELLX, in parseAndAddNode()
306 mValues.put(Favorites.CELLY, in parseAndAddNode()
310 mValues.put(Favorites.PROFILE_ID, profileId); in parseAndAddNode()
323 mValues.put(Favorites.INTENT, intent.toUri(0)); in addShortcut()
324 mValues.put(Favorites.TITLE, title); in addShortcut()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DHdcpCheckingPreferenceControllerTest.java62 private String[] mValues; field in HdcpCheckingPreferenceControllerTest
69 mValues = mContext.getResources().getStringArray( in setup()
96 mController.onPreferenceChange(mPreference, mValues[0]); in onPreferenceChange_setNeverCheckHdcp_shouldEnableNeverCheckHdcp()
98 assertThat(SystemProperties.get(HDCP_CHECKING_PROPERTY)).isEqualTo(mValues[0]); in onPreferenceChange_setNeverCheckHdcp_shouldEnableNeverCheckHdcp()
103 mController.onPreferenceChange(mPreference, mValues[1]); in onPreferenceChange_setCheckDrm_shouldEnableCheckDrm()
105 assertThat(SystemProperties.get(HDCP_CHECKING_PROPERTY)).isEqualTo(mValues[1]); in onPreferenceChange_setCheckDrm_shouldEnableCheckDrm()
110 SystemProperties.set(HDCP_CHECKING_PROPERTY, mValues[0]); in updateState_neverCheckHdcp_shouldEnableNeverCheckHdcp()
114 verify(mPreference).setValue(mValues[0]); in updateState_neverCheckHdcp_shouldEnableNeverCheckHdcp()
120 SystemProperties.set(HDCP_CHECKING_PROPERTY, mValues[1]); in updateState_checkDrm_shouldEnableCheckDrm()
124 verify(mPreference).setValue(mValues[1]); in updateState_checkDrm_shouldEnableCheckDrm()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalPropValueMatcher.java53 private final int[] mValues; field in HalPropValueMatcher.PropertyIdMatcher
61 mValues = values; in PropertyIdMatcher()
71 if (mValues == null) return true; in matches()
73 if (mValues.length != argument.getInt32ValuesSize()) { in matches()
74 Log.w(TAG, "PropertyIdMatcher: number of values (expected " + mValues.length in matches()
79 for (int i = 0; i < mValues.length; i++) { in matches()
80 if (mValues[i] != argument.getInt32Value(i)) { in matches()
82 + ": expected " + Arrays.toString(mValues)); in matches()
92 return "prop: " + mProp + " values: " + Arrays.toString(mValues); in toString()
/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/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java479 private final ContentValues mValues = new ContentValues(); field in LegacyApiSupport
835 Uri contactUri = mContactsProvider.insertInTransaction(RawContacts.CONTENT_URI, mValues); in insertPeople()
852 ContactsDatabaseHelper.copyLongValue(mValues, Data.RAW_CONTACT_ID, in insertOrganization()
855 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertOrganization()
862 mValues.put(Data.RAW_CONTACT_ID, rawContactId); in insertPhone()
864 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertPhone()
877 mValues.put(Data.RAW_CONTACT_ID, rawContactId); in insertContactMethod()
878 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertContactMethod()
883 mValues.clear(); in insertExtension()
885 mValues.put(Data.RAW_CONTACT_ID, rawContactId); in insertExtension()
[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/Settings/src/com/android/settings/notification/history/
DNotificationHistoryAdapter.java53 private List<HistoricalNotification> mValues; field in NotificationHistoryAdapter
60 mValues = new ArrayList<>(); in NotificationHistoryAdapter()
77 return mValues.get(position).hashCode(); in getItemId()
83 final HistoricalNotification hn = mValues.get(position); in onBindViewHolder()
120 int currPosition = mValues.indexOf(hn); in onBindViewHolder()
131 return mValues.size(); in getItemCount()
135 mValues = notifications; in onRebuildComplete()
136 mValues.sort((o1, o2) -> Long.compare(o2.getPostedTimeMs(), o1.getPostedTimeMs())); in onRebuildComplete()
142 if (position > (mValues.size() - 1)) { in onItemSwipeDeleted()
144 + " size? " + mValues.size()); in onItemSwipeDeleted()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DKeyValueListParser.java33 private final ArrayMap<String, String> mValues = new ArrayMap<>(); field in KeyValueListParser
56 mValues.clear(); in setString()
62 mValues.clear(); in setString()
66 mValues.put(pair.substring(0, sep).trim(), pair.substring(sep + 1).trim()); in setString()
78 String value = mValues.get(key); in getInt()
96 String value = mValues.get(key); in getLong()
114 String value = mValues.get(key); in getFloat()
132 String value = mValues.get(key); in getString()
146 String value = mValues.get(key); in getBoolean()
167 String value = mValues.get(key); in getIntArray()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DBarrierConsumer.kt32 private var mValues: ArrayList<A>? variable in com.android.quicksearchbox.util.BarrierConsumer
51 val values = mValues
52 mValues = null // mark that getValues() has returned
64 if (mValues == null || isFull) { in consume()
67 mValues?.add(value) in consume()
79 get() = mValues!!.size == mExpectedCount
87 mValues = ArrayList<A>(mExpectedCount)
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DCarArgumentMatchers.java135 private final int[] mValues; field in CarArgumentMatchers.PropertyIdMatcher
143 mValues = values; in PropertyIdMatcher()
153 if (mValues == null) return true; in matches()
155 if (mValues.length != argument.value.int32Values.length) { in matches()
156 Log.w(TAG, "PropertyIdMatcher: number of values (expected " + mValues.length in matches()
161 for (int i = 0; i < mValues.length; i++) { in matches()
162 if (mValues[i] != argument.value.int32Values[i]) { in matches()
164 + ": expected " + Arrays.toString(mValues)); in matches()
173 return "prop: " + mProp + " values: " + Arrays.toString(mValues); in toString()

123