/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | IntArray.java | 33 private int[] mValues; field in IntArray 37 mValues = array; in IntArray() 53 mValues = new int[0]; in IntArray() 55 mValues = new int[initialCapacity]; in IntArray() 81 if (newSize <= mValues.length) { in resize() 82 Arrays.fill(mValues, newSize, mValues.length, 0); in resize() 110 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add() 113 mValues[index] = value; in add() 131 return Arrays.binarySearch(mValues, value); in binarySearch() 141 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll() [all …]
|
D | LongArray.java | 37 private long[] mValues; field in LongArray 41 mValues = array; in LongArray() 57 mValues = EmptyArray.LONG; in LongArray() 59 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray() 85 if (newSize <= mValues.length) { in resize() 86 Arrays.fill(mValues, newSize, mValues.length, 0); in resize() 114 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add() 117 mValues[index] = value; in add() 127 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll() 137 if (minCapacity >= mValues.length) { in ensureCapacity() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | FakeSharedPreferences.java | 28 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/ |
D | LongArray.java | 29 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/ |
D | IntArray.java | 32 /* 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 …]
|
D | ContentWriter.java | 36 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.icon)); in getValues() 103 return mValues; in getValues()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsConfig.java | 107 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/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | ClientPlaylistTest.java | 79 private final ContentValues mValues = new ContentValues(); field in ClientPlaylistTest 121 mValues.clear(); in testAdd() 122 mValues.put(MediaColumns.DISPLAY_NAME, "Playlist " + System.nanoTime()); in testAdd() 123 mValues.put(MediaColumns.MIME_TYPE, mMimeType); in testAdd() 125 final Uri playlistUri = mContentResolver.insert(mExternalPlaylists, mValues); in testAdd() 136 mValues.clear(); in testAdd() 137 mValues.put(Playlists.Members.AUDIO_ID, mRed); in testAdd() 138 Uri resultUri = mContentResolver.insert(membersUri, mValues); in testAdd() 141 mValues.put(Playlists.Members.AUDIO_ID, mGreen); in testAdd() 142 resultUri = mContentResolver.insert(membersUri, mValues); in testAdd() [all …]
|
/packages/modules/StatsD/statsd/src/logd/ |
D | LogEvent.cpp | 55 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(1)), Value(trainName))); in LogEvent() 56 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(trainVersionCode))); in LogEvent() 57 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(3)), Value((int)requiresStaging))); in LogEvent() 58 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(4)), Value((int)rollbackEnabled))); in LogEvent() 59 mValues.push_back( in LogEvent() 61 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(6)), Value(state))); in LogEvent() 62 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(7)), Value(experimentIds))); in LogEvent() 63 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(8)), Value(userId))); in LogEvent() 72 mValues.push_back( in LogEvent() 76 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(experimentIdsProto))); in LogEvent() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
D | MockSharedPreferences.java | 33 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/ |
D | MockSharedPreferences.java | 33 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/Calendar/tests/src/com/android/calendar/ |
D | FakeSharedPreferences.java | 29 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/Launcher3/src/com/android/launcher3/ |
D | AutoInstallsLayout.java | 168 final ContentValues mValues; field in AutoInstallsLayout 187 mValues = new ContentValues(); in AutoInstallsLayout() 264 mValues.clear(); in parseAndAddNode() 269 mValues.put(Favorites.CONTAINER, container); in parseAndAddNode() 270 mValues.put(Favorites.SCREEN, screenId); in parseAndAddNode() 272 mValues.put(Favorites.CELLX, in parseAndAddNode() 274 mValues.put(Favorites.CELLY, in parseAndAddNode() 296 mValues.put(Favorites.INTENT, intent.toUri(0)); in addShortcut() 297 mValues.put(Favorites.TITLE, title); in addShortcut() 298 mValues.put(Favorites.ITEM_TYPE, type); in addShortcut() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDelta.java | 64 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/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/ |
D | ReferenceWithHistory.java | 71 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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LegacyApiSupport.java | 479 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/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | HdcpCheckingPreferenceControllerTest.java | 65 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/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | HalPropValueMatcher.java | 48 private final int[] mValues; field in HalPropValueMatcher.PropertyIdMatcher 56 mValues = values; in PropertyIdMatcher() 66 if (mValues == null) return true; in matches() 68 if (mValues.length != argument.getInt32ValuesSize()) { in matches() 69 Log.w(TAG, "PropertyIdMatcher: number of values (expected " + mValues.length in matches() 74 for (int i = 0; i < mValues.length; i++) { in matches() 75 if (mValues[i] != argument.getInt32Value(i)) { in matches() 77 + ": expected " + Arrays.toString(mValues)); in matches() 86 return "prop: " + mProp + " values: " + Arrays.toString(mValues); in toString()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | MockSuggestionProviderCursor.java | 91 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/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | KeyValueListParser.java | 33 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/Settings/src/com/android/settings/notification/history/ |
D | NotificationHistoryAdapter.java | 52 private List<HistoricalNotification> mValues; field in NotificationHistoryAdapter 59 mValues = new ArrayList<>(); in NotificationHistoryAdapter() 76 return mValues.get(position).hashCode(); in getItemId() 82 final HistoricalNotification hn = mValues.get(position); in onBindViewHolder() 118 int currPosition = mValues.indexOf(hn); in onBindViewHolder() 129 return mValues.size(); in getItemCount() 133 mValues = notifications; in onRebuildComplete() 134 mValues.sort((o1, o2) -> Long.compare(o2.getPostedTimeMs(), o1.getPostedTimeMs())); in onRebuildComplete() 140 if (position > (mValues.size() - 1)) { in onItemSwipeDeleted() 142 + " size? " + mValues.size()); in onItemSwipeDeleted() [all …]
|
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/ |
D | SparseArray.java | 24 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/ |
D | BarrierConsumer.java | 36 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/services/Car/car-test-lib/src/android/car/test/mocks/ |
D | CarArgumentMatchers.java | 135 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()
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/ |
D | AnomalyPolicyBuilder.java | 38 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()
|