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

12345

/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/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPagingIndicator.java200 private Animator createDotAlphaAnimator(float from, float to) { argument
201 ObjectAnimator animator = ObjectAnimator.ofFloat(null, DOT_ALPHA, from, to);
207 private Animator createDotDiameterAnimator(float from, float to) { argument
208 ObjectAnimator animator = ObjectAnimator.ofFloat(null, DOT_DIAMETER, from, to);
/frameworks/support/v4/java/android/support/v4/app/
H A DNotificationManagerCompat.java51 * <p>To use this class, call the static function {@link #from} to get a
143 public static NotificationManagerCompat from(Context context) { method in class:NotificationManagerCompat
312 * Returns whether notifications from the calling package are not blocked.
319 * Returns the user specified importance for notifications from the calling package.
335 // Parse the string again if it is different from the last time this method was called.
401 * from any thread.
471 Log.d(TAG, "Disconnected from service " + componentName);
547 * 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.
164 * Retrieve the name of the package that launched calledActivity from a share intent.
184 * Retrieve the ComponentName of the activity that launched calledActivity from a share intent.
272 * Create a new IntentBuilder for launching a sharing action from launchingActivity.
274 * @param launchingActivity Activity that the share will be launched from
277 public static IntentBuilder from(Activity launchingActivity) { method in class:ShareCompat.IntentBuilder
650 * from shared posts if desired.</p>
674 public static IntentReader from(Activity activity) { method in class:ShareCompat.IntentReader
861 * 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.
150 public static TaskStackBuilder from(Context context) { method in class:TaskStackBuilder
207 // We have the actual parent intent, build the rest from static metadata
265 * @param index Index from 0-getIntentCount()
280 * @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(c, 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(Cursor c, String[] from) argument
344 changeCursorAndColumns(Cursor c, String[] from, int[] to) argument
[all...]
H A DSwipeRefreshLayout.java100 // Default offset in dips from the top of the view to where the progress spinner should stop
232 * @param start The offset in pixels from the top of this view at which the
234 * @param end The offset in pixels from the top of this view at which the
255 * @param end The offset in pixels from the top of this view at which the
287 * Simple constructor to use when creating a SwipeRefreshLayout from code.
296 * Constructor that is called when inflating SwipeRefreshLayout from XML.
522 * Set the color resources used in the progress animation from color resources.
821 // This is a bit of a hack. Nested scrolling works from the bottom up, and as we are
824 // 'offset in window 'functionality to see if we have been moved from the event.
1053 private void animateOffsetToCorrectPosition(int from, AnimationListene argument
1065 animateOffsetToStartPosition(int from, AnimationListener listener) argument
1113 startScaleDownReturnToStartAnimation(int from, Animation.AnimationListener listener) argument
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtilsMatchers.java118 * from the view and up its ancestor chain matches the specified color.
244 public static Matcher<List<Float>> inRange(final float from, final float to) { argument
260 if ((curr < from) || (curr > to)) {
262 from + " and " + to;
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DPalette.java40 * A helper class to extract prominent colors from an image.
42 * A number of colors with different profiles are extracted from the image:
51 * These can be retrieved from the appropriate getter method.
63 * Palette p = Palette.from(bitmap).generate();
66 * Palette.from(bitmap).generate(new PaletteAsyncListener() {
99 public static Builder from(Bitmap bitmap) { method in class:Palette
104 * Generate a {@link Palette} from the pre-generated list of {@link Palette.Swatch} swatches.
105 * This is useful for testing, or if you want to resurrect a {@link Palette} instance from a
108 public static Palette from(List<Swatch> swatches) { method in class:Palette
117 return from(bitma
[all...]
H A DTarget.java125 private Target(Target from) { argument
126 System.arraycopy(from.mSaturationTargets, 0, mSaturationTargets, 0,
128 System.arraycopy(from.mLightnessTargets, 0, mLightnessTargets, 0,
130 System.arraycopy(from.mWeights, 0, mWeights, 0, mWeights.length);
136 @FloatRange(from = 0, to = 1)
144 @FloatRange(from = 0, to = 1)
152 @FloatRange(from = 0, to = 1)
160 @FloatRange(from = 0, to = 1)
168 @FloatRange(from = 0, to = 1)
176 @FloatRange(from
[all...]
/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 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...]

Completed in 6818 milliseconds

12345