Home
last modified time | relevance | path

Searched refs:updates (Results 1 – 25 of 75) sorted by relevance

123

/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp52 std::vector<Update> updates; member in android::os::statsd::TestStateListener
57 updates.emplace_back(primaryKey, newState.mValue.int_value); in onStateChanged()
261 ASSERT_EQ(1, listener->updates.size()); in TEST()
262 EXPECT_EQ(1000, listener->updates[0].mKey.getValues()[0].mValue.int_value); in TEST()
263 EXPECT_EQ(1, listener->updates[0].mState); in TEST()
264 listener->updates.clear(); in TEST()
269 ASSERT_EQ(0, listener->updates.size()); in TEST()
274 ASSERT_EQ(0, listener->updates.size()); in TEST()
279 ASSERT_EQ(1, listener->updates.size()); in TEST()
280 EXPECT_EQ(1000, listener->updates[0].mKey.getValues()[0].mValue.int_value); in TEST()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DVpnSettingsTest.java134 Set<Preference> updates = new ArraySet<>(); in setShownAdvancedPreferences_hasGeneralVpn_returnsVpnCountAs1() local
137 updates.add(pref); in setShownAdvancedPreferences_hasGeneralVpn_returnsVpnCountAs1()
139 mVpnSettings.setShownAdvancedPreferences(updates); in setShownAdvancedPreferences_hasGeneralVpn_returnsVpnCountAs1()
148 Set<Preference> updates = new ArraySet<>(); in setShownAdvancedPreferences_hasAdvancedVpn_returnsAdvancedVpnCountAs1() local
151 updates.add(pref); in setShownAdvancedPreferences_hasAdvancedVpn_returnsAdvancedVpnCountAs1()
153 mVpnSettings.setShownAdvancedPreferences(updates); in setShownAdvancedPreferences_hasAdvancedVpn_returnsAdvancedVpnCountAs1()
162 Set<Preference> updates = new ArraySet<>(); in setShownAdvancedPreferences_noVpn_returnsEmpty() local
164 mVpnSettings.setShownAdvancedPreferences(updates); in setShownAdvancedPreferences_noVpn_returnsEmpty()
203 Set<Preference> updates = new ArraySet<>(); in clickVpn_VpnConnected_doesNotStartVpnLaunchIntent() local
206 updates.add(pref); in clickVpn_VpnConnected_doesNotStartVpnLaunchIntent()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLauncherBindableItemsContainer.java47 final HashSet<WorkspaceItemInfo> updates = new HashSet<>(shortcuts); in updateWorkspaceItems() local
49 if (v instanceof BubbleTextView && updates.contains(info)) { in updateWorkspaceItems()
62 ((FolderIcon) v).updatePreviewItems(updates::contains); in updateWorkspaceItems()
64 appPairIcon.maybeRedrawForWorkspaceUpdate(updates::contains); in updateWorkspaceItems()
82 default void updateRestoreItems(final HashSet<ItemInfo> updates, ActivityContext context) { in updateRestoreItems() argument
85 && updates.contains(info)) { in updateRestoreItems()
89 && updates.contains(info)) { in updateRestoreItems()
92 ((FolderIcon) v).updatePreviewItems(updates::contains); in updateRestoreItems()
94 appPairIcon.maybeRedrawForWorkspaceUpdate(updates::contains); in updateRestoreItems()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/
DCallLogMutations.java28 private final ArrayMap<Long, ContentValues> updates = new ArrayMap<>(); field in CallLogMutations
38 Assert.checkArgument(!updates.containsKey(id), "Can't insert row scheduled for update"); in insert()
58 ContentValues existingContentValues = updates.get(id); in update()
62 updates.put(id, contentValues); in update()
72 Assert.checkArgument(!updates.containsKey(id), "Can't delete row scheduled for update"); in delete()
79 return inserts.isEmpty() && updates.isEmpty() && deletes.isEmpty(); in isEmpty()
99 return updates; in getUpdates()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/updateprocessors/
DUpdateProcessorUtils.java42 public static JSONArray castToJSONArray(String commandName, Object updates) { in castToJSONArray() argument
43 if (!(updates instanceof JSONArray)) { in castToJSONArray()
47 return (JSONArray) updates; in castToJSONArray()
59 public static JSONObject castToJSONObject(String commandName, Object updates) { in castToJSONObject() argument
60 if (!(updates instanceof JSONObject)) { in castToJSONObject()
64 return (JSONObject) updates; in castToJSONObject()
DRemove.java45 Object updates, Map<ByteBuffer, Set<DBProtectedSignal>> current) throws JSONException { in processUpdates() argument
47 JSONArray updatesArray = UpdateProcessorUtils.castToJSONArray(REMOVE, updates); in processUpdates()
DUpdateEncoder.java56 Object updates, Map<ByteBuffer, Set<DBProtectedSignal>> current) throws JSONException { in processUpdates() argument
58 JSONObject updatesObject = UpdateProcessorUtils.castToJSONObject(UPDATE_ENCODER, updates); in processUpdates()
DPutIfNotPresent.java46 Object updates, Map<ByteBuffer, Set<DBProtectedSignal>> current) throws JSONException { in processUpdates() argument
49 UpdateProcessorUtils.castToJSONObject(PUT_IF_NOT_PRESENT, updates); in processUpdates()
DPut.java46 Object updates, Map<ByteBuffer, Set<DBProtectedSignal>> current) throws JSONException { in processUpdates() argument
48 JSONObject updatesObject = UpdateProcessorUtils.castToJSONObject(PUT, updates); in processUpdates()
DAppend.java62 Object updates, Map<ByteBuffer, Set<DBProtectedSignal>> current) throws JSONException { in processUpdates() argument
64 JSONObject updatesObject = UpdateProcessorUtils.castToJSONObject(APPEND, updates); in processUpdates()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java325 final Set<Preference> updates = new ArraySet<>(); in run() local
337 updates.add(p); in run()
349 updates.add(p); in run()
361 updates.add(p); in run()
369 mSettings.setShownAdvancedPreferences(updates); in run()
371 mSettings.setShownPreferences(updates); in run()
382 public void setShownPreferences(final Collection<Preference> updates) { in setShownPreferences() argument
383 retainAllPreference(updates); in setShownPreferences()
386 updatePreferenceGroup(vpnGroup, updates); in setShownPreferences()
389 for (Preference pref : updates) { in setShownPreferences()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageInstallStateChangedTask.java79 final HashSet<ItemInfo> updates = new HashSet<>(); in execute() local
84 updates.add(si); in execute()
91 updates.add(widget); in execute()
95 if (!updates.isEmpty()) { in execute()
97 callbacks -> callbacks.bindRestoreItemsChange(updates)); in execute()
/packages/apps/Settings/src/com/android/settings/shortcut/
DShortcutsUpdateTask.java47 List<ShortcutInfo> updates = new ArrayList<>(); in doInBackground() local
58 updates.add(new ShortcutInfo.Builder(mContext, info.getId()) in doInBackground()
61 if (!updates.isEmpty()) { in doInBackground()
62 sm.updateShortcuts(updates); in doInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/
DShortcutsUpdateTaskTest.java106 final List<ShortcutInfo> updates = mListCaptor.getValue(); in shortcutsUpdateTask() local
108 assertThat(updates).hasSize(2); in shortcutsUpdateTask()
109 assertThat(pinnedShortcuts.get(2).getId()).isEqualTo(updates.get(0).getId()); in shortcutsUpdateTask()
110 assertThat(pinnedShortcuts.get(4).getId()).isEqualTo(updates.get(1).getId()); in shortcutsUpdateTask()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/v34/
DAppDataSharingUpdate.kt51 val updates = getUpdatesForCategories(listOf(CATEGORY_LOCATION)) in buildUpdateIfSignificantChange() constant
53 return if (updates.isEmpty()) null in buildUpdateIfSignificantChange()
54 else AppDataSharingUpdate(safetyLabelBefore.appInfo.packageName, updates) in buildUpdateIfSignificantChange()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DCustomAudienceDaoTest.java2601 List<DBScheduledCustomAudienceUpdate> updates = in testInsertAndQueryScheduledCustomAudienceUpdate_Success() local
2604 assertThat(updates).isEmpty(); in testInsertAndQueryScheduledCustomAudienceUpdate_Success()
2608 updates = in testInsertAndQueryScheduledCustomAudienceUpdate_Success()
2611 assertEquals("There should have been 1 entry", 1, updates.size()); in testInsertAndQueryScheduledCustomAudienceUpdate_Success()
2612 assertNotNull("UpdateId should not have been null", updates.get(0).getUpdateId()); in testInsertAndQueryScheduledCustomAudienceUpdate_Success()
2613 assertUpdateEqualsExceptId(updates.get(0), anUpdate); in testInsertAndQueryScheduledCustomAudienceUpdate_Success()
2623 List<DBScheduledCustomAudienceUpdate> updates = in testDeleteScheduledCustomAudienceUpdate_Success() local
2626 assertEquals("There should have been 1 entry", 1, updates.size()); in testDeleteScheduledCustomAudienceUpdate_Success()
2628 for (DBScheduledCustomAudienceUpdate updatesToDelete : updates) { in testDeleteScheduledCustomAudienceUpdate_Success()
2645 List<DBScheduledCustomAudienceUpdate> updates = in testInsertAndQueryScheduledCustomAudienceUpdate_SimilarUpdateReplaces() local
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DPlayerApplicationSettings.java101 public void setSupport(PlayerApplicationSettings updates) { in setSupport() argument
102 mSettings = updates.mSettings; in setSupport()
103 mSupportedValues = updates.mSupportedValues; in setSupport()
/packages/apps/Settings/src/com/android/settings/
DSettingsInitialize.java137 final List<ShortcutInfo> updates = new ArrayList<>(); in refreshExistingShortcuts() local
147 updates.add(updatedInfo); in refreshExistingShortcuts()
149 shortcutManager.updateShortcuts(updates); in refreshExistingShortcuts()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DPackageInstallStateChangedTaskTest.java111 IntSet updates = IntSet.wrap(idsUpdated); in verifyProgressUpdate() local
113 int expectedProgress = updates.contains(info.id) ? progress in verifyProgressUpdate()
DCacheDataUpdatedTaskTest.java148 IntSet updates = IntSet.wrap(idsUpdated); in verifyUpdate() local
150 if (updates.contains(info.id)) { in verifyUpdate()
/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java385 private static boolean containsAll(Bundle original, Bundle updates) { in containsAll() argument
386 for (String key : updates.keySet()) { in containsAll()
387 Object value1 = updates.get(key); in containsAll()
/packages/providers/PartnerBookmarksProvider/
DOWNERS1 # This project has no significant updates recently.
/packages/apps/Gallery/
DOWNERS1 # This project has no significant updates recently.
/packages/apps/BasicSmsReceiver/
DOWNERS1 # This project has no significant updates recently.
/packages/apps/LegacyCamera/
DOWNERS1 # This project has no significant updates recently.

123