Home
last modified time | relevance | path

Searched refs:Set (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactAggregatorHelper.java26 import java.util.Set;
40 public static void mergeComponentsWithDisjointAccounts(Set<Set<Long>> connectedRawContactSets, in mergeComponentsWithDisjointAccounts()
43 final Map<Integer, Set<Long>> rawContactIds = new HashMap<>(); in mergeComponentsWithDisjointAccounts()
45 final Map<Long, Set<Integer>> accounts = new HashMap<>(); in mergeComponentsWithDisjointAccounts()
48 for (Set<Long> rIds : connectedRawContactSets) { in mergeComponentsWithDisjointAccounts()
52 Set<Integer> s = accounts.get(acctId); in mergeComponentsWithDisjointAccounts()
64 final Set<Integer> s = accounts.get(accountId); in mergeComponentsWithDisjointAccounts()
67 final Set<Long> rIdSet = rawContactIds.get(i); in mergeComponentsWithDisjointAccounts()
76 final Set<Long> mergedSet = new HashSet<>(); in mergeComponentsWithDisjointAccounts()
78 final Set<Integer> s = accounts.get(accountId); in mergeComponentsWithDisjointAccounts()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/
DContactAggregatorHelperTest.java30 import java.util.Set;
47 Set<Set<Long>> connectedRawContactSets = new HashSet<>(); in testMergeComponentsWithDisjointAccounts()
50 Set<Long> rawContactSet = new HashSet<>(); in testMergeComponentsWithDisjointAccounts()
79 Set<Set<Long>> connectedRawContactSets = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2()
82 Set<Long> rawContactSet1 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2()
85 Set<Long> rawContactSet2 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2()
89 Set<Long> rawContactSet3 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2()
109 Set<Long> rawContactIdSet = new HashSet<>(); in testFindConnectedRawContacts()
131 Set<Set<Long>> actual = ContactAggregatorHelper.findConnectedComponents(rawContactIdSet, in testFindConnectedRawContacts()
134 Set<Set<Long>> expected = new HashSet<>(); in testFindConnectedRawContacts()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DMultiLongSparseArray.java24 import java.util.Set;
34 private final LongSparseArray<Set<T>> mSparseArray;
35 private final Set<T>[] mEmptySets;
40 mEmptySets = new Set[DEFAULT_MAX_EMPTIES_KEPT]; in MultiLongSparseArray()
45 mEmptySets = new Set[emptyCacheSize]; in MultiLongSparseArray()
54 Set<T> values = mSparseArray.get(key); in put()
66 Set<T> values = mSparseArray.get(key); in remove()
81 Set<T> values = mSparseArray.get(key); in get()
99 private void cacheEmptySet(Set<T> emptySet) { in cacheEmptySet()
105 private Set<T> getEmptySet() { in getEmptySet()
[all …]
DTvSettings.java27 import java.util.Set;
181 public static void addContentRatingSystems(Context context, Set<String> ids) { in addContentRatingSystems()
182 Set<String> contentRatingSystemSet = getContentRatingSystemSet(context); in addContentRatingSystems()
190 Set<String> contentRatingSystemSet = getContentRatingSystemSet(context); in addContentRatingSystem()
197 public static void removeContentRatingSystems(Context context, Set<String> ids) { in removeContentRatingSystems()
198 Set<String> contentRatingSystemSet = getContentRatingSystemSet(context); in removeContentRatingSystems()
206 Set<String> contentRatingSystemSet = getContentRatingSystemSet(context); in removeContentRatingSystem()
226 private static Set<String> getContentRatingSystemSet(Context context) { in getContentRatingSystemSet()
DSetupUtils.java42 import java.util.Set;
63 private final Set<String> mKnownInputs;
64 private final Set<String> mSetUpInputs;
65 private final Set<String> mRecognizedInputs;
159 Set<String> newInputsWithChannels = new HashSet<>(); in markNewChannelsBrowsable()
273 Set<String> setUpPackages = new HashSet<>(); in grantEpgPermissionToSetUpPackages()
331 Set<String> removedInputList = new HashSet<>(mRecognizedInputs); in onInputListUpdated()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTask.java57 import java.util.Set;
171 Set<String> packagesToDelete = getPackagesToDelete(); in run()
188 private Set<String> getPackagesToDelete() { in getPackagesToDelete()
189 Set<String> packagesToDelete = getCurrentAppsWithLauncher(); in getPackagesToDelete()
204 private Set<String> getNewSystemApps() { in getNewSystemApps()
208 Set<String> currentSystemApps = mUtils.getCurrentSystemApps(mIPackageManager, mUserId); in getNewSystemApps()
209 final Set<String> previousSystemApps; in getNewSystemApps()
224 Set<String> newApps = currentSystemApps; in getNewSystemApps()
232 private void removeNonInstalledPackages(Set<String> packages) { in removeNonInstalledPackages()
233 Set<String> toBeRemoved = new HashSet<String>(); in removeNonInstalledPackages()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DTransactionContext.java25 import java.util.Set;
118 public Set<Long> getInsertedRawContactIds() { in getInsertedRawContactIds()
123 public Set<Long> getUpdatedRawContactIds() { in getUpdatedRawContactIds()
128 public Set<Long> getDirtyRawContactIds() { in getDirtyRawContactIds()
133 public Set<Long> getMetadataDirtyRawContactIds() { in getMetadataDirtyRawContactIds()
138 public Set<Long> getBackupIdChangedRawContacts() { in getBackupIdChangedRawContacts()
143 public Set<Long> getChangedRawContactIds() { in getChangedRawContactIds()
148 public Set<Long> getStaleSearchIndexRawContactIds() { in getStaleSearchIndexRawContactIds()
153 public Set<Long> getStaleSearchIndexContactIds() { in getStaleSearchIndexContactIds()
158 public Set<Entry<Long, Object>> getUpdatedSyncStates() { in getUpdatedSyncStates()
DDbModifierWithNotification.java53 import java.util.Set;
103 Set<String> packagesModified = getModifiedPackages(values); in insert()
120 Set<String> packagesModified = getModifiedPackages(values); in insert()
147 private void notifyVoicemailChangeOnInsert(Uri notificationUri, Set<String> packagesModified) { in notifyVoicemailChangeOnInsert()
159 Set<String> packagesModified = getModifiedPackages(whereClause, whereArgs); in update()
189 Set<String> packagesModified = getModifiedPackages(whereClause, whereArgs); in delete()
226 private Set<String> getModifiedPackages(String whereClause, String[] whereArgs) { in getModifiedPackages()
227 Set<String> modifiedPackages = new HashSet<String>(); in getModifiedPackages()
244 private Set<String> getModifiedPackages(ContentValues values) { in getModifiedPackages()
245 Set<String> impactedPackages = new HashSet<String>(); in getModifiedPackages()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java38 import java.util.Set;
321 public Set<String> getActiveNotificationSet() { in getActiveNotificationSet()
329 public void cacheActiveNotificationSet(final Set<String> notificationSet) { in cacheActiveNotificationSet()
364 public void setSenderWhitelist(Set<String> addresses) { in setSenderWhitelist()
368 public void setSenderWhitelistPatterns(Set<String> patterns) { in setSenderWhitelistPatterns()
386 final Set<String> defaultPatternSet = Collections.emptySet(); in getDisplayImagesFromSender()
387 final Set<String> currentPatterns = sharedPreferences.getStringSet( in getDisplayImagesFromSender()
409 final Set<String> currentPatterns = getSenderWhitelistPatterns(); in setDisplayImagesFromSender()
413 final Set<String> updatedPatterns = Sets.newHashSet(currentPatterns); in setDisplayImagesFromSender()
421 final Set<String> whitelist = getSenderWhitelist(); in setDisplayImagesFromSender()
[all …]
DSimpleBackupSharedPreference.java25 import java.util.Set;
60 if (mValue instanceof Set) { in toJson()
61 final Set<?> set = (Set<?>) mValue; in toJson()
76 final Set<Object> set = Sets.newHashSet(); in fromJson()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAidRoutingManager.java28 import java.util.Set;
65 SparseArray<Set<String>> mAidRoutingTable =
66 new SparseArray<Set<String>>();
112 SparseArray<Set<String>> aidRoutingTable = new SparseArray<Set<String>>(aidMap.size()); in configureRouting()
118 Set<String> entries = aidRoutingTable.get(route, new HashSet<String>()); in configureRouting()
149 Set<String> defaultRouteAids = mAidRoutingTable.get(mDefaultRoute); in configureRouting()
173 Set<String> aidsForRoute = mAidRoutingTable.get(route); in configureRouting()
223 Set<String> aids = mAidRoutingTable.valueAt(i); in dump()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/
DOmtpBootCompletedReceiver.java29 import java.util.Set;
64 Set<String> subIds = in addDeferredSubId()
78 Set<Integer> subIds = readAndDeleteSubIds(context); in onReceive()
88 private static Set<Integer> readAndDeleteSubIds(Context context) { in readAndDeleteSubIds()
90 Set<String> subIdStrings = sharedPreferences.getStringSet(DEFERRED_SUBID_LIST_KEY, null); in readAndDeleteSubIds()
91 Set<Integer> subIds = new ArraySet<>(); in readAndDeleteSubIds()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DTransactionContextTest.java24 import java.util.Set;
41 Set<Long> newDirty = context.getDirtyRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets()
42 Set<Long> newChanged = context.getChangedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets()
43 Set<Long> newInserted = context.getInsertedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets()
44 Set<Long> newUpdated = context.getUpdatedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets()
45 Set<Map.Entry<Long, Object>> newSync = context.getUpdatedSyncStates(); in testClearExceptSearchIndexUpdates_returnsNewSets()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dpointer.h581 …ValueType& Set(ValueType& root, ValueType& value, typename ValueType::AllocatorType& allocator) co… in Set() function
586 …ValueType& Set(ValueType& root, const ValueType& value, typename ValueType::AllocatorType& allocat… in Set() function
591 …ValueType& Set(ValueType& root, const Ch* value, typename ValueType::AllocatorType& allocator) con… in Set() function
597 …ValueType& Set(ValueType& root, const std::basic_string<Ch>& value, typename ValueType::AllocatorT… in Set() function
608 Set(ValueType& root, T value, typename ValueType::AllocatorType& allocator) const { in Set() function
614 …ValueType& Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d… in Set() function
620 …ValueType& Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d… in Set() function
626 …ValueType& Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d… in Set() function
633 …ValueType& Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d… in Set() function
644Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& document, T … in Set() function
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java34 import java.util.Set;
301 public boolean appendTasks(ImageToProcess img, Set<TaskImageContainer> tasks) { in appendTasks()
327 Set<TaskImageContainer> tasks = new HashSet<TaskImageContainer>(1); in appendTasks()
379 Set<TaskImageContainer> passTasks = new HashSet<TaskImageContainer>(1); in receiveImage()
424 public boolean receiveImage(ImageToProcess img, Set<TaskImageContainer> tasks, in receiveImage()
483 Set<ImageTaskFlags> processingFlags, CaptureSession session, in receiveImage()
490 Set<TaskImageContainer> tasksToExecute = new HashSet<TaskImageContainer>(); in receiveImage()
586 protected void initializeTaskDone(Set<TaskImageContainer> tasks, in initializeTaskDone()
588 Set<CaptureSession> sessionSet = new HashSet<>(); in initializeTaskDone()
623 protected void incrementTaskDone(Set<TaskImageContainer> tasks) throws RuntimeException { in incrementTaskDone()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationCheckedSet.java36 import java.util.Set;
73 final Set<ConversationSetObserver> mObservers = new HashSet<ConversationSetObserver>();
267 public Set<Long> keySet() { in keySet()
326 final Set<String> deletedConversations = cursor.getDeletedItems(); in validateAgainstCursor()
329 final Set<Long> itemsToRemoveFromBatch = Sets.newHashSet(); in validateAgainstCursor()
338 final Set<Long> batchConversationToCheck = new HashSet<Long>(keySet()); in validateAgainstCursor()
348 final Set<Long> cursorConversationIds = cursor.getConversationIds(); in validateAgainstCursor()
DContactLoaderCallbacks.java32 import java.util.Set;
41 private Set<String> mSenders;
51 public void setSenders(Set<String> emailAddresses) { in setSenders()
93 protected Set<String> getSenders() { in getSenders()
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultEmergencyPreference.java39 import java.util.Set;
74 new AsyncTask<Void, Void, Set<String>>() { in load()
76 protected Set<String> doInBackground(Void[] params) { in load()
81 protected void onPostExecute(Set<String> entries) { in load()
89 private Set<String> resolveAssistPackageAndQueryApps() { in resolveAssistPackageAndQueryApps()
90 Set<String> packages = new ArraySet<>(); in resolveAssistPackageAndQueryApps()
/packages/apps/Email/tests/src/com/android/email/
DMockSharedPreferences.java25 import java.util.Set;
85 public Set<String> getStringSet(String key, Set<String> defValues) { in getStringSet()
87 return (Set<String>) mValues.get(key); in getStringSet()
127 public Editor putStringSet(String key, Set<String> values) { in putStringSet()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DMockSharedPreferences.java25 import java.util.Set;
83 public Set<String> getStringSet(String key, Set<String> defValues) { in getStringSet()
85 return (Set<String>) mValues.get(key); in getStringSet()
125 public Editor putStringSet(String key, Set<String> values) { in putStringSet()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockSharedPreferences.java25 import java.util.Set;
83 public Set<String> getStringSet(String key, Set<String> defValues) { in getStringSet()
85 return (Set<String>) mValues.get(key); in getStringSet()
125 public Editor putStringSet(String key, Set<String> values) { in putStringSet()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dpointertest.cpp735 TEST(Pointer, Set) { in TEST() argument
741 Pointer("/foo/0").Set(d, Value(123).Move(), a); in TEST()
744 Pointer("/foo/-").Set(d, Value(456).Move(), a); in TEST()
747 Pointer("/foo/null").Set(d, Value().Move(), a); in TEST()
752 Pointer("/clone").Set(d, foo, a); in TEST()
756 Pointer("/foo/int").Set(d, -1, a); in TEST()
759 Pointer("/foo/uint").Set(d, 0x87654321, a); in TEST()
763 Pointer("/foo/int64").Set(d, i64, a); in TEST()
767 Pointer("/foo/uint64").Set(d, u64, a); in TEST()
770 Pointer("/foo/true").Set(d, true, a); in TEST()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragmentTest.java47 import java.util.Set;
65 private class IsSetOfGivenAttachments extends ArgumentMatcher<Set<MessagePartData>> {
66 private final Set<MessagePartData> mGivenParts;
67 public IsSetOfGivenAttachments(final Set<MessagePartData> givenParts) { in IsSetOfGivenAttachments()
74 final Set<MessagePartData> actualSet = (Set<MessagePartData>) set; in matches()
/packages/apps/Calendar/tests/src/com/android/calendar/
DFakeSharedPreferences.java25 import java.util.Set;
88 public Set<String> getStringSet(String key, Set<String> defValues) { in getStringSet()
90 return (Set<String>) mValues.get(key); in getStringSet()
138 public Editor putStringSet(String key, Set<String> values) { in putStringSet()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java48 import java.util.Set;
98 final Set<Long> rawContactIdsInSameAccount = new HashSet<Long>(); in aggregateContact()
99 final Set<Long> rawContactIdsInOtherAccount = new HashSet<Long>(); in aggregateContact()
205 final Set<Long> allRawContactIdSet = new HashSet<Long>(); in aggregateContact()
316 Set<Long> rawContactIdsInSameAccount, Set<Long> rawContactIdsInOtherAccount ) { in canJoinIntoContact()
348 final Set<Long> rawContactIdSet = new HashSet<Long>(); in canJoinIntoContact()
370 private boolean isDataMaching(SQLiteDatabase db, Set<Long> rawContactIdSet1, in isDataMaching()
371 Set<Long> rawContactIdSet2) { in isDataMaching()
418 Set<Long> existingRawContactIds) { in reAggregateRawContacts()
422 final Set<Long> allIds = new HashSet<Long>(); in reAggregateRawContacts()
[all …]

12345678910>>...14