Searched refs:from (Results 76 - 100 of 511) sorted by last modified time

1234567891011>>

/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreferenceDialogFragmentCompat.java220 LayoutInflater inflater = LayoutInflater.from(context);
H A DPreferenceGroupAdapter.java44 * The group that we are providing data from.
273 final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
H A DAdapterHelperTest.java163 public void offsetPositionsForMove(int from, int to) {
165 if (from < to) {
166 start = from;
171 end = from;
178 if (holder.mPosition == from) {
179 holder.offsetPosition(to - from, false);
883 int from = nextInt(random, mTestAdapter.mItems.size());
887 } while (to == from);
888 mv(from, to);
1014 private void mv(int from, in argument
1076 move(int from, int to) argument
[all...]
H A DOpReorderTest.java261 int from = nextInt(random, updatedItemCount);
265 } while (to == from);
266 mv(from, to);
291 UpdateOp mv(int from, int to) { argument
292 return record(new UpdateOp(MOVE, from, to, null));
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DSortedList.java218 * Remove duplicate items, leaving only the last item from each group of "same" items.
266 private int findSameItem(T item, T[] items, int from, int to) { argument
267 for (int pos = from; pos < to; pos++) {
331 throw new IllegalStateException("Cannot call this method from within addAll");
417 * Removes the provided item from the list and calls {@link Callback#onRemoved(int, int)}.
419 * @param item The item to be removed from the list.
560 // The call is made from a callback during addAll execution. The data is split
663 * Removes all items from the SortedList.
708 * Called by the SortedList when an item is removed from the given position.
797 * Other method calls (e.g. {@link #compare(Object, Object)} from
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DAdapterHelper.java540 boolean onItemRangeMoved(int from, int to, int itemCount) { argument
541 if (from == to) {
547 mPendingUpdates.add(obtainUpdateOp(UpdateOp.MOVE, from, to, null));
775 void offsetPositionsForMove(int from, int to); argument
H A DGridLayoutManager.java58 // re-used variable to acquire decor insets from RecyclerView
92 * @param reverseLayout When set to true, layouts from end to start.
108 "GridLayoutManager does not support stack from end."
220 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { argument
574 // Unless the child has MATCH_PARENT, measure it from its specs before adding insets.
698 * @param maxSizeInOther The maximum size per span ratio from the measurement of the children.
746 // make sure we traverse from min position to max position
756 if (mOrientation == VERTICAL && isLayoutRTL()) { // start from last span
877 * disabled, default implementation traverses all items from 0 to
878 * <code>position</code>. When caching is enabled, it calculates from th
[all...]
H A DRecyclerView.java103 * from the parent RecyclerView, either unmodified if no rebinding is required or modified
113 * calculation. This saves LayoutManager from tracking adapter changes to calculate animations.
120 * position from the LayoutManager's perspective.</li>
121 * <li>adapter position: Position of an item in the adapter. This is the position from
144 * <code>null</code> results from these methods.
163 * On Kitkat and JB MR2, there is a bug which prevents DisplayList from being invalidated if
173 * this value might be garbage. To save LayoutManagers from it, RecyclerView sets the size to
323 // Counting lock to control whether we should ignore requestLayout calls from children or not.
458 // since it was rebound, use change instead as we'll be mapping them from
802 public void offsetPositionsForMove(int from, in
3678 offsetPositionRecordsForMove(int from, int to) argument
5482 offsetPositionRecordsForMove(int from, int to) argument
8454 onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) argument
[all...]
H A DStaggeredGridLayoutManager.java455 * Sets whether LayoutManager should start laying out items from the end of the UI. The order
462 * When set to true, If {@link RecyclerView} is LTR, than it will layout from RTL, if
463 * {@link RecyclerView}} is RTL, it will layout from LTR.
546 * Calculates the views' layout order. (e.g. from end to start or start to end)
548 * {@link #getReverseLayout()} is {@code true}, elements will be laid out starting from left.
811 Log.d(TAG, "Deciding anchor info from fresh state");
1465 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { argument
1466 handleUpdate(from, to, AdapterHelper.UpdateOp.MOVE);
2030 * Scroll to the specified adapter position with the given offset from layout start.
2206 // either could not find from th
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java163 LayoutInflater.from(getActivity()).inflate(R.layout.wrapped_test_rv,
608 Log.d(TAG, "will layout items from " + start + " to " + end);
896 * item to index 1, then remove an item from index 2 (updated index 2)
923 public void moveItem(final int from, final int to, final boolean notifyChange) argument
928 moveInUIThread(from, to);
939 public void moveAndNotify(final int from, final int to) throws Throwable { argument
943 moveInUIThread(from, to);
944 notifyItemMoved(from, to);
950 assertEquals("clearOnUIThread called from a wrong thread",
956 protected void moveInUIThread(int from, in argument
[all...]
H A DBaseStaggeredGridLayoutManagerTest.java231 // where will the child come from ?
789 protected void moveInUIThread(int from, int to) { argument
790 boolean setAsFullSpanAgain = mFullSpanItems.contains(from);
791 super.moveInUIThread(from, to);
H A DFocusSearchNavigationTest.java247 View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_view,
H A DRecyclerViewFocusRecoveryTest.java282 // even if the VH is re-used, it will be removed-reAdded so focus will go away from it.
446 LayoutInflater.from(parent.getContext())
H A DStaggeredGridLayoutManagerTest.java131 assertEquals("first completely visible item from span 0 should be 0", 0, into[0]);
132 assertEquals("first completely visible item from span 1 should be 1", 1, into[1]);
134 assertEquals("last completely visible item from span 0 should be 4", 4, into[0]);
135 assertEquals("last completely visible item from span 1 should be 1", 1, into[1]);
665 private int[] copyOfRange(int[] original, int from, int to) { argument
666 int newLength = to - from;
668 throw new IllegalArgumentException(from + " > " + to);
671 System.arraycopy(original, from, copy, 0,
672 Math.min(original.length - from, newLength));
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
H A DItemTouchHelperTest.java198 if (move.from == vh) {
248 RecyclerView.ViewHolder from, to; field in class:ItemTouchHelperTest.MoveRecord
250 public MoveRecord(RecyclerView.ViewHolder from, argument
252 this.from = from;
254 fromPos = from.getAdapterPosition();
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptGroup.java36 * Inside a script group, outputs from one kernel can be passed to another kernel as inputs.
63 ConnectLine(Type t, Script.KernelID from, Script.KernelID to) { argument
64 mFrom = from;
69 ConnectLine(Type t, Script.KernelID from, Script.FieldID to) { argument
70 mFrom = from;
471 * Allocation provided from outside of the ScriptGroup.
607 * must come from different Script objects. Additionally, all kernels
635 // do a DFS from original node, looking for original node
764 * @param from The source for the connection.
769 public Builder addConnection(Type t, Script.KernelID from, Scrip argument
803 addConnection(Type t, Script.KernelID from, Script.KernelID to) argument
[all...]
/frameworks/support/v8/renderscript/rs_support/
H A DAndroid.mk186 # TODO: why isn't this picked up from the host GLOBAL_CFLAGS?
/frameworks/rs/api/
H A Drs_allocation_create.spec20 The functions below can be used to create Allocations from a Script.
22 These functions can be called directly or indirectly from an invokable
24 from a RenderScript kernel function, a compiler error will be generated.
142 only supported usage flags for Allocations created from within a RenderScript
H A Drs_atomic.spec104 Atomicly subtracts one from the value at addr. This is equivalent to <code>@rsAtomicSub(addr, 1)</code>.
199 Atomicly subtracts a value from the value at addr, i.e. <code>*addr -= value</code>.
H A Drs_convert.spec20 The functions below convert from a numerical vector type to another, or from one color
34 Converts a vector from one numerical type to another. The conversion are done entry per entry.
102 summary: Create a uchar4 RGBA from floats
148 summary: Create a float4 RGBA from uchar4
164 Converts a color from a YUV representation to RGBA.
H A Drs_for_each.spec99 arg: rs_allocation input, "Allocation to source data from."
249 &nbsp;&nbsp;// to the other dimensions, extract them from the kernel context:<br/>
H A Drs_graphics.spec222 If the source is specified, sync from memory space specified by source.
224 If the source is not specified, sync from its SCRIPT memory space to its HW
401 summary: Clear the specified color from the surface
714 arg: rs_mesh m, "mesh to get data from"
728 arg: rs_mesh m, "mesh to get data from"
742 arg: rs_mesh m, "mesh to get data from"
755 arg: rs_mesh m, "mesh to get data from"
769 arg: rs_mesh m, "mesh to get data from"
H A Drs_io.spec30 summary: Receive new content from the queue
32 Receive a new set of contents from the queue.
35 This function should not be called from inside a kernel, or from any function
36 that may be called directly or indirectly from a kernel. Doing so would cause a
50 This function should not be called from inside a kernel, or from any function
51 that may be called directly or indirectly from a kernel. Doing so would cause a
H A Drs_math.spec578 Copies the sign from sign_value to magnitude_value.
675 Converts from radians to degrees.
1228 summary: Creates a floating point from mantissa and exponent
1230 Returns the floating point created from the mantissa and exponent,
1796 This function yields undefined results from input values less than -1 or greater than 1.
1852 This function yields undefined results from input values less than -1 or greater than 1.
1881 This function yields undefined results from input values less than -1 or greater than 1.
1937 This function yields undefined results from input values less than -1 or greater than 1.
2221 It is valid for inputs from -86.f to 86.f. The precision is no worse than what would be
2222 expected from usin
[all...]
H A Drs_matrix.spec35 This derives from <code>s2 * (s1 * v)</code>, which is <code>(s2 * s1) * v</code>.
51 arg: const rs_matrix4x4* viewProj, "Matrix to extract planes from."
60 Computes 6 frustum planes from the view projection matrix
182 arg: const #1* m, "Matrix to extract the element from."
219 Set the elements of a matrix from an array of floats or from another matrix.
221 If loading from an array, the floats should be in row-major order, i.e. the element a
225 If loading from a matrix and the source is smaller than the destination, the rest

Completed in 1201 milliseconds

1234567891011>>