Home
last modified time | relevance | path

Searched refs:ArrayList (Results 1 – 25 of 2058) sorted by relevance

12345678910>>...83

/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DLocaleUtilsTest.java23 import java.util.ArrayList;
38 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterByLanguageEmptyLanguageList()
47 final ArrayList<Locale> dest = new ArrayList<>(); in testFilterByLanguageEmptyLanguageList()
54 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterDoesNotMatchAnything()
63 final ArrayList<Locale> dest = new ArrayList<>(); in testFilterDoesNotMatchAnything()
70 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterByLanguageEmptySource()
74 final ArrayList<Locale> dest = new ArrayList<>(); in testFilterByLanguageEmptySource()
84 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterByLanguageNullAvailableLocales()
86 final ArrayList<Locale> dest = new ArrayList<>(); in testFilterByLanguageNullAvailableLocales()
93 final ArrayList<Locale> availableLocales = new ArrayList<>(); in testFilterByLanguageNullAvailableLocales()
[all …]
DInputMethodUtilsTest.java35 import java.util.ArrayList;
141 final ArrayList<InputMethodInfo> originalList = getSamplePreinstalledImes("en-rUS"); in testParcelable()
225 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in testGetImplicitlyApplicableSubtypesLocked()
239 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
250 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in testGetImplicitlyApplicableSubtypesLocked()
263 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
275 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in testGetImplicitlyApplicableSubtypesLocked()
287 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
300 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in testGetImplicitlyApplicableSubtypesLocked()
312 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
[all …]
/frameworks/base/core/java/android/os/
DHwParcel.java19 import java.util.ArrayList;
68 public final void writeBoolVector(ArrayList<Boolean> val) { in writeBoolVector()
78 public final void writeInt8Vector(ArrayList<Byte> val) { in writeInt8Vector()
88 public final void writeInt16Vector(ArrayList<Short> val) { in writeInt16Vector()
98 public final void writeInt32Vector(ArrayList<Integer> val) { in writeInt32Vector()
108 public final void writeInt64Vector(ArrayList<Long> val) { in writeInt64Vector()
118 public final void writeFloatVector(ArrayList<Float> val) { in writeFloatVector()
128 public final void writeDoubleVector(ArrayList<Double> val) { in writeDoubleVector()
138 public final void writeStringVector(ArrayList<String> val) { in writeStringVector()
163 public final ArrayList<Boolean> readBoolVector() { in readBoolVector()
[all …]
/frameworks/support/design/src/android/support/design/widget/
DDirectedAcyclicGraph.java24 import java.util.ArrayList;
32 private final Pools.Pool<ArrayList<T>> mListPool = new Pools.SimplePool<>(10);
33 private final SimpleArrayMap<T, ArrayList<T>> mGraph = new SimpleArrayMap<>();
35 private final ArrayList<T> mSortResult = new ArrayList<>();
73 ArrayList<T> edges = mGraph.get(node); in addEdge()
101 ArrayList<T> result = null; in getOutgoingEdges()
103 ArrayList<T> edges = mGraph.valueAt(i); in getOutgoingEdges()
106 result = new ArrayList<>(); in getOutgoingEdges()
116 ArrayList<T> edges = mGraph.valueAt(i); in hasOutgoingEdges()
129 ArrayList<T> edges = mGraph.valueAt(i); in clear()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DArrayUtilsTest.java21 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/
DLearner.java19 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()
DGestureStore.java29 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/java/android/support/v4/app/
DFragmentTransitionImpl.java28 import java.util.ArrayList;
62 View nonExistentView, ArrayList<View> sharedViews); in setSharedElementTargets()
87 public abstract void addTargets(Object transitionObj, ArrayList<View> views); in addTargets()
102 ArrayList<View> exitingViews); in scheduleHideFragmentView()
128 ArrayList<String> prepareSetNameOverridesReordered(ArrayList<View> sharedElementsIn) { in prepareSetNameOverridesReordered()
129 final ArrayList<String> names = new ArrayList<>(); in prepareSetNameOverridesReordered()
146 final ArrayList<View> sharedElementsOut, final ArrayList<View> sharedElementsIn, in setNameOverridesReordered()
147 final ArrayList<String> inNames, final Map<String, String> nameOverrides) { in setNameOverridesReordered()
149 final ArrayList<String> outNames = new ArrayList<>(); in setNameOverridesReordered()
187 void captureTransitioningViews(ArrayList<View> transitioningViews, View view) { in captureTransitioningViews()
[all …]
/frameworks/base/core/java/android/transition/
DTransitionManager.java28 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/telephony/src/java/com/google/android/mms/
DContentType.java20 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityHelperTest.java35 import java.util.ArrayList;
79 private ArrayList<String> buildBssidBlacklist(int size) { in buildBssidBlacklist()
80 ArrayList<String> bssidBlacklist = new ArrayList<String>(); in buildBssidBlacklist()
91 private ArrayList<String> buildSsidWhitelist(int size) { in buildSsidWhitelist()
92 ArrayList<String> ssidWhitelist = new ArrayList<String>(); in buildSsidWhitelist()
204 ArrayList<String> blacklist = buildBssidBlacklist(MAX_BSSID_BLACKLIST_SIZE); in verifySetFirmwareRoamingConfigurationWithGoodInput()
205 ArrayList<String> whitelist = buildSsidWhitelist(MAX_SSID_WHITELIST_SIZE); in verifySetFirmwareRoamingConfigurationWithGoodInput()
219 ArrayList<String> blacklist = buildBssidBlacklist(MAX_BSSID_BLACKLIST_SIZE); in verifySetFirmwareRoamingConfigurationWithNullInput()
220 ArrayList<String> whitelist = buildSsidWhitelist(MAX_SSID_WHITELIST_SIZE); in verifySetFirmwareRoamingConfigurationWithNullInput()
231 ArrayList<String> blacklist = buildBssidBlacklist(MAX_BSSID_BLACKLIST_SIZE + 1); in verifySetFirmwareRoamingConfigurationWithIncorrectBlacklist()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DDefaultItemAnimator.java28 import java.util.ArrayList;
43 private ArrayList<ViewHolder> mPendingRemovals = new ArrayList<>();
44 private ArrayList<ViewHolder> mPendingAdditions = new ArrayList<>();
45 private ArrayList<MoveInfo> mPendingMoves = new ArrayList<>();
46 private ArrayList<ChangeInfo> mPendingChanges = new ArrayList<>();
48 ArrayList<ArrayList<ViewHolder>> mAdditionsList = new ArrayList<>();
49 ArrayList<ArrayList<MoveInfo>> mMovesList = new ArrayList<>();
50 ArrayList<ArrayList<ChangeInfo>> mChangesList = new ArrayList<>();
52 ArrayList<ViewHolder> mAddAnimations = new ArrayList<>();
53 ArrayList<ViewHolder> mMoveAnimations = new ArrayList<>();
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DDefaultItemAnimator.java29 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/services/core/java/com/android/server/backup/
DBackupUtils.java26 import java.util.ArrayList;
35 public static boolean signaturesMatch(ArrayList<byte[]> storedSigHashes, PackageInfo target) { in signaturesMatch()
70 ArrayList<byte[]> deviceHashes = new ArrayList<byte[]>(nDevice); in signaturesMatch()
109 public static ArrayList<byte[]> hashSignatureArray(Signature[] sigs) { in hashSignatureArray()
114 ArrayList<byte[]> hashes = new ArrayList<>(sigs.length); in hashSignatureArray()
121 public static ArrayList<byte[]> hashSignatureArray(List<byte[]> sigs) { in hashSignatureArray()
126 ArrayList<byte[]> hashes = new ArrayList<>(sigs.size()); in hashSignatureArray()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattService.java21 import java.util.ArrayList;
104 mCharacteristics = new ArrayList<BluetoothGattCharacteristic>(); in BluetoothGattService()
105 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService()
118 mCharacteristics = new ArrayList<BluetoothGattCharacteristic>(); in BluetoothGattService()
119 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService()
131 mCharacteristics = new ArrayList<BluetoothGattCharacteristic>(); in BluetoothGattService()
132 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService()
149 ArrayList<BluetoothGattIncludedService> includedServices = in writeToParcel()
150 new ArrayList<BluetoothGattIncludedService>(mIncludedServices.size()); in writeToParcel()
174 mCharacteristics = new ArrayList<BluetoothGattCharacteristic>(); in BluetoothGattService()
[all …]
/frameworks/base/core/java/android/service/autofill/
DDataset.java32 import java.util.ArrayList;
55 private final ArrayList<AutofillId> mFieldIds;
56 private final ArrayList<AutofillValue> mFieldValues;
57 private final ArrayList<RemoteViews> mFieldPresentations;
72 public @Nullable ArrayList<AutofillId> getFieldIds() { in getFieldIds()
77 public @Nullable ArrayList<AutofillValue> getFieldValues() { in getFieldValues()
127 private ArrayList<AutofillId> mFieldIds;
128 private ArrayList<AutofillValue> mFieldValues;
129 private ArrayList<RemoteViews> mFieldPresentations;
272 mFieldIds = new ArrayList<>(); in setValueAndPresentation()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLoggingItemAnimator.java18 import java.util.ArrayList;
29 final ArrayList<RecyclerView.ViewHolder> mAddVHs = new ArrayList<RecyclerView.ViewHolder>();
31 final ArrayList<RecyclerView.ViewHolder> mRemoveVHs = new ArrayList<RecyclerView.ViewHolder>();
33 final ArrayList<RecyclerView.ViewHolder> mMoveVHs = new ArrayList<RecyclerView.ViewHolder>();
35 … final ArrayList<RecyclerView.ViewHolder> mChangeOldVHs = new ArrayList<RecyclerView.ViewHolder>();
37 … final ArrayList<RecyclerView.ViewHolder> mChangeNewVHs = new ArrayList<RecyclerView.ViewHolder>();
39 List<AnimateAppearance> mAnimateAppearanceList = new ArrayList<>();
40 List<AnimateDisappearance> mAnimateDisappearanceList = new ArrayList<>();
41 List<AnimatePersistence> mAnimatePersistenceList = new ArrayList<>();
42 List<AnimateChange> mAnimateChangeList = new ArrayList<>();
/frameworks/base/core/java/com/google/android/collect/
DLists.java19 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/
DDelayedMessageBuffer.java20 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/support/transition/src/android/support/transition/
DTransitionManager.java30 import java.util.ArrayList;
86 private static ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>
88 private static ArrayList<ViewGroup> sPendingTransitions = new ArrayList<>();
192 static ArrayMap<ViewGroup, ArrayList<Transition>> getRunningTransitions() { in getRunningTransitions()
193 WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>> runningTransitions = in getRunningTransitions()
196 ArrayMap<ViewGroup, ArrayList<Transition>> transitions = new ArrayMap<>(); in getRunningTransitions()
246 ArrayList<Transition> runningTransitions = getRunningTransitions().get(mSceneRoot); in onViewDetachedFromWindow()
265 final ArrayMap<ViewGroup, ArrayList<Transition>> runningTransitions = in onPreDraw()
267 ArrayList<Transition> currentTransitions = runningTransitions.get(mSceneRoot); in onPreDraw()
268 ArrayList<Transition> previousRunningTransitions = null; in onPreDraw()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptorParser.java20 import java.util.ArrayList;
30 private ArrayList<UsbDescriptor> mDescriptors = new ArrayList<UsbDescriptor>();
196 public ArrayList<UsbDescriptor> getDescriptors() { in getDescriptors()
203 public ArrayList<UsbDescriptor> getDescriptors(byte type) { in getDescriptors()
204 ArrayList<UsbDescriptor> list = new ArrayList<UsbDescriptor>(); in getDescriptors()
216 public ArrayList<UsbDescriptor> getInterfaceDescriptorsForClass(byte usbClass) { in getInterfaceDescriptorsForClass()
217 ArrayList<UsbDescriptor> list = new ArrayList<UsbDescriptor>(); in getInterfaceDescriptorsForClass()
238 public ArrayList<UsbDescriptor> getACInterfaceDescriptors(byte subtype, byte subclass) { in getACInterfaceDescriptors()
239 ArrayList<UsbDescriptor> list = new ArrayList<UsbDescriptor>(); in getACInterfaceDescriptors()
262 ArrayList<UsbDescriptor> descriptors = in hasHIDDescriptor()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockWeaverService.java15 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/core/java/android/animation/
DAnimator.java23 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 …]
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodUtils.java47 import java.util.ArrayList;
96 private static ArrayList<InputMethodSubtype> sCachedResult;
149 public static Locale getFallbackLocaleForDefaultIme(final ArrayList<InputMethodInfo> imis, in getFallbackLocaleForDefaultIme()
213 public InputMethodListBuilder fillImes(final ArrayList<InputMethodInfo> imis, in fillImes()
229 public InputMethodListBuilder fillAuxiliaryImes(final ArrayList<InputMethodInfo> imis, in fillAuxiliaryImes()
264 public ArrayList<InputMethodInfo> build() { in build()
265 return new ArrayList<>(mInputMethodSet); in build()
270 final ArrayList<InputMethodInfo> imis, final Context context, in getMinimumKeyboardSetWithSystemLocale()
318 public static ArrayList<InputMethodInfo> getDefaultEnabledImes(final Context context, in getDefaultEnabledImes()
319 final ArrayList<InputMethodInfo> imis) { in getDefaultEnabledImes()
[all …]
/frameworks/support/core-utils/java/android/support/v4/content/
DLocalBroadcastManager.java19 import java.util.ArrayList;
75 final ArrayList<ReceiverRecord> receivers;
77 BroadcastRecord(Intent _intent, ArrayList<ReceiverRecord> _receivers) { in BroadcastRecord()
88 private final HashMap<BroadcastReceiver, ArrayList<ReceiverRecord>> mReceivers
90 private final HashMap<String, ArrayList<ReceiverRecord>> mActions = new HashMap<>();
92 private final ArrayList<BroadcastRecord> mPendingBroadcasts = new ArrayList<>();
138 ArrayList<ReceiverRecord> filters = mReceivers.get(receiver); in registerReceiver()
140 filters = new ArrayList<>(1); in registerReceiver()
146 ArrayList<ReceiverRecord> entries = mActions.get(action); in registerReceiver()
148 entries = new ArrayList<ReceiverRecord>(1); in registerReceiver()
[all …]

12345678910>>...83