/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
D | LocaleUtilsTest.java | 28 import java.util.ArrayList; 39 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterByLanguageEmptyLanguageList() 48 final ArrayList<Locale> dest = new ArrayList<>(); in testFilterByLanguageEmptyLanguageList() 55 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterDoesNotMatchAnything() 64 final ArrayList<Locale> dest = new ArrayList<>(); in testFilterDoesNotMatchAnything() 71 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterByLanguageEmptySource() 75 final ArrayList<Locale> dest = new ArrayList<>(); in testFilterByLanguageEmptySource() 85 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterByLanguageNullAvailableLocales() 87 final ArrayList<Locale> dest = new ArrayList<>(); in testFilterByLanguageNullAvailableLocales() 94 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterByLanguageNullAvailableLocales() [all …]
|
D | InputMethodUtilsTest.java | 52 import java.util.ArrayList; 182 final ArrayList<InputMethodInfo> originalList = getSamplePreinstalledImes("en-rUS"); in testParcelable() 266 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in testGetImplicitlyApplicableSubtypesLocked() 280 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked() 291 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in testGetImplicitlyApplicableSubtypesLocked() 304 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked() 316 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in testGetImplicitlyApplicableSubtypesLocked() 328 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked() 341 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in testGetImplicitlyApplicableSubtypesLocked() 353 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | AlarmManagerServiceTest.java | 33 import java.util.ArrayList; 38 private SparseArray<ArrayList<Alarm>> addPendingAlarm( in addPendingAlarm() 39 SparseArray<ArrayList<Alarm>> all, int uid, String name, boolean removeIt) { in addPendingAlarm() 40 ArrayList<Alarm> uidAlarms = all.get(uid); in addPendingAlarm() 42 all.put(uid, uidAlarms = new ArrayList<>()); in addPendingAlarm() 51 private static String toString(SparseArray<ArrayList<Alarm>> pendingAlarms) { in toString() 67 private static String toString(ArrayList<Alarm> alarms) { in toString() 82 SparseArray<ArrayList<Alarm>> pending, ArrayList<Alarm> alarmsToDeliver) { in runCheckAllPendingAlarms() 90 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty() 92 final ArrayList<Alarm> alarmsToDeliver = new ArrayList<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty() [all …]
|
/frameworks/base/core/java/android/os/ |
D | HwParcel.java | 26 import java.util.ArrayList; 167 public final void writeBoolVector(ArrayList<Boolean> val) { in writeBoolVector() 181 public final void writeInt8Vector(ArrayList<Byte> val) { in writeInt8Vector() 195 public final void writeInt16Vector(ArrayList<Short> val) { in writeInt16Vector() 209 public final void writeInt32Vector(ArrayList<Integer> val) { in writeInt32Vector() 223 public final void writeInt64Vector(ArrayList<Long> val) { in writeInt64Vector() 237 public final void writeFloatVector(ArrayList<Float> val) { in writeFloatVector() 251 public final void writeDoubleVector(ArrayList<Double> val) { in writeDoubleVector() 265 public final void writeStringVector(ArrayList<String> val) { in writeStringVector() 386 public final ArrayList<Boolean> readBoolVector() { in readBoolVector() [all …]
|
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/ |
D | DirectedAcyclicGraph.java | 27 import java.util.ArrayList; 40 private final Pools.Pool<ArrayList<T>> mListPool = new Pools.SimplePool<>(10); 41 private final SimpleArrayMap<T, ArrayList<T>> mGraph = new SimpleArrayMap<>(); 43 private final ArrayList<T> mSortResult = new ArrayList<>(); 81 ArrayList<T> edges = mGraph.get(node); in addEdge() 109 ArrayList<T> result = null; in getOutgoingEdges() 111 ArrayList<T> edges = mGraph.valueAt(i); in getOutgoingEdges() 114 result = new ArrayList<>(); in getOutgoingEdges() 131 ArrayList<T> edges = mGraph.valueAt(i); in hasOutgoingEdges() 144 ArrayList<T> edges = mGraph.valueAt(i); in clear() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 21 import java.util.ArrayList; 40 ArrayList<Object> collection = null; in testUnstableRemoveIf() 43 collection = new ArrayList<>(); in testUnstableRemoveIf() 46 collection = new ArrayList<>(Collections.singletonList(a)); in testUnstableRemoveIf() 51 collection = new ArrayList<>(Collections.singletonList(null)); in testUnstableRemoveIf() 55 collection = new ArrayList<>(Arrays.asList(a, b)); in testUnstableRemoveIf() 61 collection = new ArrayList<>(Arrays.asList(a, null)); in testUnstableRemoveIf() 66 collection = new ArrayList<>(Arrays.asList(null, a)); in testUnstableRemoveIf() 71 collection = new ArrayList<>(Arrays.asList(null, null)); in testUnstableRemoveIf() 75 collection = new ArrayList<>(Arrays.asList(a, b, c)); in testUnstableRemoveIf() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | Learner.java | 19 import java.util.ArrayList; 25 private final ArrayList<Instance> mInstances = new ArrayList<Instance>(); 41 ArrayList<Instance> getInstances() { in getInstances() 51 ArrayList<Instance> instances = mInstances; in removeInstance() 68 final ArrayList<Instance> toDelete = new ArrayList<Instance>(); in removeInstances() 69 final ArrayList<Instance> instances = mInstances; in removeInstances() 83 abstract ArrayList<Prediction> classify(int sequenceType, int orientationType, float[] vector); in classify()
|
D | GestureStore.java | 29 import java.util.ArrayList; 82 private final HashMap<String, ArrayList<Gesture>> mNamedGestures = 83 new HashMap<String, ArrayList<Gesture>>(); 136 public ArrayList<Prediction> recognize(Gesture gesture) { in recognize() 152 ArrayList<Gesture> gestures = mNamedGestures.get(entryName); in addGesture() 154 gestures = new ArrayList<Gesture>(); in addGesture() 171 ArrayList<Gesture> gestures = mNamedGestures.get(entryName); in removeGesture() 205 public ArrayList<Gesture> getGestures(String entryName) { in getGestures() 206 ArrayList<Gesture> gestures = mNamedGestures.get(entryName); in getGestures() 208 return new ArrayList<Gesture>(gestures); in getGestures() [all …]
|
/frameworks/support/fragment/src/main/java/androidx/fragment/app/ |
D | FragmentTransitionImpl.java | 29 import java.util.ArrayList; 63 View nonExistentView, ArrayList<View> sharedViews); in setSharedElementTargets() 88 public abstract void addTargets(Object transitionObj, ArrayList<View> views); in addTargets() 103 ArrayList<View> exitingViews); in scheduleHideFragmentView() 129 ArrayList<String> prepareSetNameOverridesReordered(ArrayList<View> sharedElementsIn) { in prepareSetNameOverridesReordered() 130 final ArrayList<String> names = new ArrayList<>(); in prepareSetNameOverridesReordered() 147 final ArrayList<View> sharedElementsOut, final ArrayList<View> sharedElementsIn, in setNameOverridesReordered() 148 final ArrayList<String> inNames, final Map<String, String> nameOverrides) { in setNameOverridesReordered() 150 final ArrayList<String> outNames = new ArrayList<>(); in setNameOverridesReordered() 188 void captureTransitioningViews(ArrayList<View> transitioningViews, View view) { in captureTransitioningViews() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | TaskStack.java | 28 import java.util.ArrayList; 64 private final ArrayList<Task> mRawTaskList = new ArrayList<>(); 108 ArrayList<Task> tasks = mStackTaskList.getTasks(); in removeAllTasks() 138 ArrayList<Task> addedTasks = new ArrayList<>(); in setTasks() 139 ArrayList<Task> removedTasks = new ArrayList<>(); in setTasks() 140 ArrayList<Task> allTasks = new ArrayList<>(); in setTasks() 208 ArrayList<Task> stackTasks = mStackTaskList.getTasks(); in getFrontMostTask() 216 public ArrayList<TaskKey> getTaskKeys() { in getTaskKeys() 217 ArrayList<TaskKey> taskKeys = new ArrayList<>(); in getTaskKeys() 218 ArrayList<Task> tasks = computeAllTasksList(); in getTaskKeys() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 45 import java.util.ArrayList; 71 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_targetIsNull_returnsFalse() 86 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_systemApplication_returnsTrue() 128 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() 145 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_disallowsUnsignedApps_targetSignatureEmpty_returnsFalse() 162 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_disallowsUnsignedApps_targetSignatureNull_returnsFalse() 192 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_disallowsUnsignedApps_bothSignaturesEmpty_returnsFalse() 212 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_equalSignatures_returnsTrue() 235 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_extraSignatureInTarget_returnsTrue() 257 ArrayList<byte[]> storedSigHashes = new ArrayList<>(); in signaturesMatch_extraSignatureInStored_returnsFalse() [all …]
|
/frameworks/base/core/java/android/transition/ |
D | TransitionManager.java | 28 import java.util.ArrayList; 76 private static ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>> 78 new ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>(); 79 private static ArrayList<ViewGroup> sPendingTransitions = new ArrayList<ViewGroup>(); 210 private static ArrayMap<ViewGroup, ArrayList<Transition>> getRunningTransitions() { in getRunningTransitions() 211 WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>> runningTransitions = in getRunningTransitions() 214 ArrayMap<ViewGroup, ArrayList<Transition>> transitions = in getRunningTransitions() 215 new ArrayMap<ViewGroup, ArrayList<Transition>>(); in getRunningTransitions() 216 runningTransitions = new WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>( in getRunningTransitions() 271 ArrayList<Transition> runningTransitions = getRunningTransitions().get(mSceneRoot); in onViewDetachedFromWindow() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConnectivityHelperTest.java | 35 import java.util.ArrayList; 80 private ArrayList<String> buildBssidBlacklist(int size) { in buildBssidBlacklist() 81 ArrayList<String> bssidBlacklist = new ArrayList<String>(); in buildBssidBlacklist() 92 private ArrayList<String> buildSsidWhitelist(int size) { in buildSsidWhitelist() 93 ArrayList<String> ssidWhitelist = new ArrayList<String>(); in buildSsidWhitelist() 208 ArrayList<String> blacklist = buildBssidBlacklist(MAX_BSSID_BLACKLIST_SIZE); in verifySetFirmwareRoamingConfigurationWithGoodInput() 209 ArrayList<String> whitelist = buildSsidWhitelist(MAX_SSID_WHITELIST_SIZE); in verifySetFirmwareRoamingConfigurationWithGoodInput() 223 ArrayList<String> blacklist = buildBssidBlacklist(MAX_BSSID_BLACKLIST_SIZE); in verifySetFirmwareRoamingConfigurationWithNullInput() 224 ArrayList<String> whitelist = buildSsidWhitelist(MAX_SSID_WHITELIST_SIZE); in verifySetFirmwareRoamingConfigurationWithNullInput() 235 ArrayList<String> blacklist = buildBssidBlacklist(MAX_BSSID_BLACKLIST_SIZE + 1); in verifySetFirmwareRoamingConfigurationWithIncorrectBlacklist() [all …]
|
/frameworks/opt/telephony/src/java/com/google/android/mms/ |
D | ContentType.java | 20 import java.util.ArrayList; 78 private static final ArrayList<String> sSupportedContentTypes = new ArrayList<String>(); 79 private static final ArrayList<String> sSupportedImageTypes = new ArrayList<String>(); 80 private static final ArrayList<String> sSupportedAudioTypes = new ArrayList<String>(); 81 private static final ArrayList<String> sSupportedVideoTypes = new ArrayList<String>(); 212 public static ArrayList<String> getImageTypes() { in getImageTypes() 213 return (ArrayList<String>) sSupportedImageTypes.clone(); in getImageTypes() 217 public static ArrayList<String> getAudioTypes() { in getAudioTypes() 218 return (ArrayList<String>) sSupportedAudioTypes.clone(); in getAudioTypes() 222 public static ArrayList<String> getVideoTypes() { in getVideoTypes() [all …]
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
D | LoggingItemAnimator.java | 21 import java.util.ArrayList; 28 final ArrayList<RecyclerView.ViewHolder> mAddVHs = new ArrayList<RecyclerView.ViewHolder>(); 30 final ArrayList<RecyclerView.ViewHolder> mRemoveVHs = new ArrayList<RecyclerView.ViewHolder>(); 32 final ArrayList<RecyclerView.ViewHolder> mMoveVHs = new ArrayList<RecyclerView.ViewHolder>(); 34 … final ArrayList<RecyclerView.ViewHolder> mChangeOldVHs = new ArrayList<RecyclerView.ViewHolder>(); 36 … final ArrayList<RecyclerView.ViewHolder> mChangeNewVHs = new ArrayList<RecyclerView.ViewHolder>(); 38 … List<BaseRecyclerViewAnimationsTest.AnimateAppearance> mAnimateAppearanceList = new ArrayList<>(); 39 …BaseRecyclerViewAnimationsTest.AnimateDisappearance> mAnimateDisappearanceList = new ArrayList<>(); 40 …List<BaseRecyclerViewAnimationsTest.AnimatePersistence> mAnimatePersistenceList = new ArrayList<>(… 41 List<BaseRecyclerViewAnimationsTest.AnimateChange> mAnimateChangeList = new ArrayList<>();
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageSharedLibraryUpdater.java | 25 import java.util.ArrayList; 49 <T> ArrayList<T> prefix(@Nullable ArrayList<T> cur, T val) { in prefix() 51 cur = new ArrayList<>(); in prefix() 57 private static boolean isLibraryPresent(ArrayList<String> usesLibraries, in isLibraryPresent() 58 ArrayList<String> usesOptionalLibraries, String apacheHttpLegacy) { in isLibraryPresent() 80 ArrayList<String> usesLibraries = pkg.usesLibraries; in prefixImplicitDependency() 81 ArrayList<String> usesOptionalLibraries = pkg.usesOptionalLibraries; in prefixImplicitDependency() 96 ArrayList<String> usesLibraries = pkg.usesLibraries; in prefixRequiredLibrary() 97 ArrayList<String> usesOptionalLibraries = pkg.usesOptionalLibraries; in prefixRequiredLibrary()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DefaultItemAnimator.java | 29 import java.util.ArrayList; 44 private ArrayList<ViewHolder> mPendingRemovals = new ArrayList<>(); 45 private ArrayList<ViewHolder> mPendingAdditions = new ArrayList<>(); 46 private ArrayList<MoveInfo> mPendingMoves = new ArrayList<>(); 47 private ArrayList<ChangeInfo> mPendingChanges = new ArrayList<>(); 49 ArrayList<ArrayList<ViewHolder>> mAdditionsList = new ArrayList<>(); 50 ArrayList<ArrayList<MoveInfo>> mMovesList = new ArrayList<>(); 51 ArrayList<ArrayList<ChangeInfo>> mChangesList = new ArrayList<>(); 53 ArrayList<ViewHolder> mAddAnimations = new ArrayList<>(); 54 ArrayList<ViewHolder> mMoveAnimations = new ArrayList<>(); [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattService.java | 22 import java.util.ArrayList; 110 mCharacteristics = new ArrayList<BluetoothGattCharacteristic>(); in BluetoothGattService() 111 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService() 125 mCharacteristics = new ArrayList<BluetoothGattCharacteristic>(); in BluetoothGattService() 126 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService() 139 mCharacteristics = new ArrayList<BluetoothGattCharacteristic>(); in BluetoothGattService() 140 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService() 157 ArrayList<BluetoothGattIncludedService> includedServices = in writeToParcel() 158 new ArrayList<BluetoothGattIncludedService>(mIncludedServices.size()); in writeToParcel() 182 mCharacteristics = new ArrayList<BluetoothGattCharacteristic>(); in BluetoothGattService() [all …]
|
/frameworks/support/transition/src/main/java/androidx/transition/ |
D | TransitionManager.java | 31 import java.util.ArrayList; 87 private static ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>> 89 private static ArrayList<ViewGroup> sPendingTransitions = new ArrayList<>(); 193 static ArrayMap<ViewGroup, ArrayList<Transition>> getRunningTransitions() { in getRunningTransitions() 194 WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>> runningTransitions = in getRunningTransitions() 197 ArrayMap<ViewGroup, ArrayList<Transition>> transitions = runningTransitions.get(); in getRunningTransitions() 202 ArrayMap<ViewGroup, ArrayList<Transition>> transitions = new ArrayMap<>(); in getRunningTransitions() 251 ArrayList<Transition> runningTransitions = getRunningTransitions().get(mSceneRoot); in onViewDetachedFromWindow() 270 final ArrayMap<ViewGroup, ArrayList<Transition>> runningTransitions = in onPreDraw() 272 ArrayList<Transition> currentTransitions = runningTransitions.get(mSceneRoot); in onPreDraw() [all …]
|
/frameworks/base/core/java/com/google/android/collect/ |
D | Lists.java | 19 import java.util.ArrayList; 36 public static <E> ArrayList<E> newArrayList() { in newArrayList() 37 return new ArrayList<E>(); in newArrayList() 58 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList() 60 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DelayedMessageBuffer.java | 20 import java.util.ArrayList; 29 private final ArrayList<HdmiCecMessage> mBuffer = new ArrayList<>(); 88 ArrayList<HdmiCecMessage> copiedBuffer = new ArrayList<HdmiCecMessage>(mBuffer); in processAllMessages() 107 ArrayList<HdmiCecMessage> copiedBuffer = new ArrayList<HdmiCecMessage>(mBuffer); in processMessagesForDevice() 137 ArrayList<HdmiCecMessage> copiedBuffer = new ArrayList<HdmiCecMessage>(mBuffer); in processActiveSource()
|
/frameworks/base/core/java/android/service/autofill/ |
D | Dataset.java | 32 import java.util.ArrayList; 98 private final ArrayList<AutofillId> mFieldIds; 99 private final ArrayList<AutofillValue> mFieldValues; 100 private final ArrayList<RemoteViews> mFieldPresentations; 101 private final ArrayList<DatasetFieldFilter> mFieldFilters; 117 public @Nullable ArrayList<AutofillId> getFieldIds() { in getFieldIds() 122 public @Nullable ArrayList<AutofillValue> getFieldValues() { in getFieldValues() 197 private ArrayList<AutofillId> mFieldIds; 198 private ArrayList<AutofillValue> mFieldValues; 199 private ArrayList<RemoteViews> mFieldPresentations; [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockWeaverService.java | 15 import java.util.ArrayList; 24 private Pair<ArrayList<Byte>, ArrayList<Byte>>[] slots = new Pair[MAX_SLOTS]; 35 public int write(int slotId, ArrayList<Byte> key, ArrayList<Byte> value) in write() 40 slots[slotId] = Pair.create((ArrayList<Byte>) key.clone(), (ArrayList<Byte>) value.clone()); in write() 45 public void read(int slotId, ArrayList<Byte> key, readCallback cb) throws RemoteException { in read() 65 public ArrayList<String> interfaceChain() throws RemoteException { in interfaceChain() 105 public ArrayList<byte[]> getHashChain() throws RemoteException { in getHashChain()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/ |
D | LicenseHtmlLoaderTest.java | 37 import java.util.ArrayList; 44 LicenseHtmlLoader newLicenseHtmlLoader(ArrayList<File> xmlFiles, in newLicenseHtmlLoader() 62 ArrayList<File> xmlFiles = new ArrayList(); in testLoadInBackground() 74 ArrayList<File> xmlFiles = new ArrayList(); in testLoadInBackgroundWithNoVaildXmlFiles() 85 ArrayList<File> xmlFiles = new ArrayList(); in testLoadInBackgroundWithNonOutdatedCachedHtmlFile() 97 ArrayList<File> xmlFiles = new ArrayList(); in testLoadInBackgroundWithGenerateHtmlFileFailed()
|
/frameworks/base/core/java/android/animation/ |
D | Animator.java | 23 import java.util.ArrayList; 38 ArrayList<AnimatorListener> mListeners = null; 44 ArrayList<AnimatorPauseListener> mPauseListeners = null; 116 ArrayList<AnimatorPauseListener> tmpListeners = in pause() 117 (ArrayList<AnimatorPauseListener>) mPauseListeners.clone(); in pause() 140 ArrayList<AnimatorPauseListener> tmpListeners = in resume() 141 (ArrayList<AnimatorPauseListener>) mPauseListeners.clone(); in resume() 263 mListeners = new ArrayList<AnimatorListener>(); in addListener() 290 public ArrayList<AnimatorListener> getListeners() { in getListeners() 302 mPauseListeners = new ArrayList<AnimatorPauseListener>(); in addPauseListener() [all …]
|