Searched defs:from (Results 1 - 25 of 93) sorted by last modified time

1234

/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DPalette.java34 * A helper class to extract prominent colors from an image.
36 * A number of colors with different profiles are extracted from the image:
45 * These can be retrieved from the appropriate getter method.
57 * Palette p = Palette.from(bitmap).generate();
60 * Palette.from(bitmap).generate(new PaletteAsyncListener() {
93 public static Builder from(Bitmap bitmap) { method in class:Palette
98 * Generate a {@link Palette} from the pre-generated list of {@link Palette.Swatch} swatches.
99 * This is useful for testing, or if you want to resurrect a {@link Palette} instance from a
102 public static Palette from(List<Swatch> swatches) { method in class:Palette
111 return from(bitma
[all...]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
H A DAdapterHelperTest.java161 public void offsetPositionsForMove(int from, int to) {
163 if (from < to) {
164 start = from;
169 end = from;
176 if (holder.mPosition == from) {
177 holder.offsetPosition(to - from, false);
869 int from = nextInt(random, mTestAdapter.mItems.size());
873 } while (to == from);
874 mv(from, to);
1000 private void mv(int from, in argument
1062 move(int from, int to) argument
[all...]
H A DOpReorderTest.java259 int from = nextInt(random, updatedItemCount);
263 } while (to == from);
264 mv(from, to);
289 UpdateOp mv(int from, int to) { argument
290 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.java520 boolean onItemRangeMoved(int from, int to, int itemCount) { argument
521 if (from == to) {
527 mPendingUpdates.add(obtainUpdateOp(UpdateOp.MOVE, from, to, null));
749 void offsetPositionsForMove(int from, int to); argument
H A DGridLayoutManager.java63 // re-used variable to acquire decor insets from RecyclerView
97 * @param reverseLayout When set to true, layouts from end to start.
113 "GridLayoutManager does not support stack from end."
218 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { argument
593 // make sure we traverse from min position to max position
603 if (mOrientation == VERTICAL && isLayoutRTL()) { // start from last span
723 * disabled, default implementation traverses all items from 0 to
724 * <code>position</code>. When caching is enabled, it calculates from the closest cached
H A DRecyclerView.java93 * from the parent RecyclerView, either unmodified if no rebinding is required or modified
103 * calculation. This saves LayoutManager from tracking adapter changes to calculate animations.
110 * position from the LayoutManager's perspective.</li>
111 * <li>adapter position: Position of an item in the adapter. This is the position from
134 * <code>null</code> results from these methods.
148 * On Kitkat and JB MR2, there is a bug which prevents DisplayList from being invalidated if
708 public void offsetPositionsForMove(int from, int to) {
709 offsetPositionRecordsForMove(from, to);
881 * <p>Return the offset of the RecyclerView's text baseline from the its top
899 * from RecyclerVie
3306 offsetPositionRecordsForMove(int from, int to) argument
4991 offsetPositionRecordsForMove(int from, int to) argument
7420 onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) argument
[all...]
H A DStaggeredGridLayoutManager.java422 * Sets whether LayoutManager should start laying out items from the end of the UI. The order
429 * When set to true, If {@link RecyclerView} is LTR, than it will layout from RTL, if
430 * {@link RecyclerView}} is RTL, it will layout from LTR.
521 * Calculates the views' layout order. (e.g. from end to start or start to end)
523 * {@link #getReverseLayout()} is {@code true}, elements will be laid out starting from left.
690 Log.d(TAG, "Deciding anchor info from fresh state");
1342 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { argument
1343 handleUpdate(from, to, AdapterHelper.UpdateOp.MOVE);
1889 * Scroll to the specified adapter position with the given offset from layout start.
2032 // Package scope to be able to access from test
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java110 LayoutInflater.from(getActivity()).inflate(R.layout.wrapped_test_rv,
474 Log.d(TAG, "will layout items from " + start + " to " + end);
731 * item to index 1, then remove an item from index 2 (updated index 2)
758 public void moveItem(final int from, final int to, final boolean notifyChange) argument
763 moveInUIThread(from, to);
774 public void moveAndNotify(final int from, final int to) throws Throwable { argument
778 moveInUIThread(from, to);
779 notifyItemMoved(from, to);
785 assertEquals("clearOnUIThread called from a wrong thread",
791 protected void moveInUIThread(int from, in argument
[all...]
H A DStaggeredGridLayoutManagerTest.java147 assertEquals("first completely visible item from span 0 should be 0", 0, into[0]);
148 assertEquals("first completely visible item from span 1 should be 1", 1, into[1]);
150 assertEquals("last completely visible item from span 0 should be 4", 4, into[0]);
151 assertEquals("last completely visible item from span 1 should be 1", 1, into[1]);
818 assertRectSetsEqual(logPrefix + " when an item from the start of the list is deleted, "
851 private int[] copyOfRange(int[] original, int from, int to) { argument
852 int newLength = to - from;
854 throw new IllegalArgumentException(from + " > " + to);
857 System.arraycopy(original, from, copy, 0,
858 Math.min(original.length - from, newLengt
2187 moveInUIThread(int from, int to) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
H A DItemTouchHelperTest.java184 if (move.from == vh) {
234 RecyclerView.ViewHolder from, to; field in class:ItemTouchHelperTest.MoveRecord
236 public MoveRecord(RecyclerView.ViewHolder from, argument
238 this.from = from;
240 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.
604 * must come from different Script objects. Additionally, all kernels
631 // do a DFS from original node, looking for original node
760 * @param from The source for the connection.
765 public Builder addConnection(Type t, Script.KernelID from, Scrip argument
799 addConnection(Type t, Script.KernelID from, Script.KernelID to) argument
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c52 static void swab(const void *from, void *to, ssize_t n) argument
54 // from and to as char pointers
55 const char *from_ch = (const char *) from;
96 // on underrun from pipe, substitute silence
113 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe
541 // create thread to read from file
H A Dplaybq.cpp52 static void swab(const void *from, void *to, ssize_t n) argument
54 // from and to as char pointers
55 const char *from_ch = (const char *) from;
96 // on underrun from pipe, substitute silence
113 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe
541 // create thread to read from file
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
H A DTransform.java73 public Matrix getMatrix(char from, char to) { argument
74 return mAllMat[from][to];
/frameworks/support/design/base/android/support/design/widget/
H A DValueAnimatorCompat.java38 * An animation listener receives notifications from an animation.
99 abstract void setIntValues(int from, int to); argument
101 abstract void setFloatValues(float from, float to); argument
163 public void setIntValues(int from, int to) { argument
164 mImpl.setIntValues(from, to);
171 public void setFloatValues(float from, float to) { argument
172 mImpl.setFloatValues(from, to);
/frameworks/support/design/eclair-mr1/android/support/design/widget/
H A DValueAnimatorCompatImplEclairMr1.java90 public void setIntValues(int from, int to) { argument
91 mIntValues[0] = from;
101 public void setFloatValues(float from, float to) { argument
102 mFloatValues[0] = from;
/frameworks/support/design/honeycomb-mr1/android/support/design/widget/
H A DValueAnimatorCompatImplHoneycombMr1.java78 public void setIntValues(int from, int to) { argument
79 mValueAnimator.setIntValues(from, to);
88 public void setFloatValues(float from, float to) { argument
89 mValueAnimator.setFloatValues(from, to);
/frameworks/support/v4/java/android/support/v4/app/
H A DNotificationManagerCompat.java50 * <p>To use this class, call the static function {@link #from} to get a
102 public static NotificationManagerCompat from(Context context) { method in class:NotificationManagerCompat
236 // Parse the string again if it is different from the last time this method was called.
303 * from any thread.
373 Log.d(TAG, "Disconnected from service " + componentName);
449 * Ensure we have unbound from a service.
H A DShareCompat.java50 * method {@link IntentBuilder#from(Activity)}.
57 * to call out the app that the content was shared from.
162 * Retrieve the name of the package that launched calledActivity from a share intent.
182 * Retrieve the ComponentName of the activity that launched calledActivity from a share intent.
270 * Create a new IntentBuilder for launching a sharing action from launchingActivity.
272 * @param launchingActivity Activity that the share will be launched from
275 public static IntentBuilder from(Activity launchingActivity) { method in class:ShareCompat.IntentBuilder
648 * from shared posts if desired.</p>
672 public static IntentReader from(Activity activity) { method in class:ShareCompat.IntentReader
859 * was not started for a result, IntentBuilder will read this from extr
[all...]
H A DTaskStackBuilder.java46 * <p>When crossing from one task stack to another post-Android 3.0,
65 * from the developer guide and <a href="{@docRoot}design/patterns/navigation.html">Navigation</a>
66 * from the design guide.
149 public static TaskStackBuilder from(Context context) { method in class:TaskStackBuilder
206 // We have the actual parent intent, build the rest from static metadata
264 * @param index Index from 0-getIntentCount()
278 * @param index Index from 0-getIntentCount()
/frameworks/support/v4/java/android/support/v4/hardware/fingerprint/
H A DFingerprintManagerCompat.java42 public static FingerprintManagerCompat from(Context context) { method in class:FingerprintManagerCompat
147 * Container for callback data from {@link FingerprintManagerCompat#authenticate(CryptoObject,
/frameworks/support/v4/java/android/support/v4/media/session/
H A DParcelableVolumeInfo.java42 public ParcelableVolumeInfo(Parcel from) { argument
43 volumeType = from.readInt();
44 controlType = from.readInt();
45 maxVolume = from.readInt();
46 currentVolume = from.readInt();
47 audioStream = from.readInt();
/frameworks/support/v4/java/android/support/v4/widget/
H A DSimpleCursorAdapter.java36 * This field should be made private, so it is hidden from the SDK.
42 * This field should be made private, so it is hidden from the SDK.
62 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { argument
65 mOriginalFrom = from;
66 findColumns(from);
78 * @param from A list of column names representing the data to bind to the UI. Can be null
80 * @param to The views that should display column in the "from" parameter.
82 * are given the values of the first N columns in the from
87 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, argument
91 mOriginalFrom = from;
309 findColumns(String[] from) argument
343 changeCursorAndColumns(Cursor c, String[] from, int[] to) argument
[all...]
H A DSwipeRefreshLayout.java97 // Default offset in dips from the top of the view to where the progress spinner should stop
214 * @param start The offset in pixels from the top of this view at which the
216 * @param end The offset in pixels from the top of this view at which the
237 * @param end The offset in pixels from the top of this view at which the
269 * Simple constructor to use when creating a SwipeRefreshLayout from code.
278 * Constructor that is called when inflating SwipeRefreshLayout from XML.
504 * Set the color resources used in the progress animation from color resources.
1011 private void animateOffsetToCorrectPosition(int from, AnimationListener listener) { argument
1012 mFrom = from;
1023 private void peek(int from, AnimationListene argument
1035 animateOffsetToStartPosition(int from, AnimationListener listener) argument
1100 startScaleDownReturnToStartAnimation(int from, Animation.AnimationListener listener) argument
[all...]

Completed in 618 milliseconds

1234