Searched defs:to (Results 1 - 25 of 48) sorted by last modified time

12

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DAdapterHelper.java10 * Unless required by applicable law or agreed to in writing, software
31 * To support animations, RecyclerView presents an older version the Adapter to best represent
37 * pre processing, AdapterHelper finds out which UpdateOps can be deferred to second layout pass
39 * according to previously deferred operation and dispatch them before the first layout pass. It
43 * Although operations may be forwarded to LayoutManager in different orders, resulting data set
44 * is guaranteed to be the consistent.
140 // to post layout stage.
143 // have any effect in pre-layout since their add ops are already deferred to
147 // Create an UpdateOp and dispatch it to LayoutManager.
155 // this position. Instead, post it to LayoutManage
516 onItemRangeMoved(int from, int to, int itemCount) argument
731 offsetPositionsForMove(int from, int to) argument
[all...]
H A DGridLayoutManager.java10 * Unless required by applicable law or agreed to in writing, software
52 * Temporary array to keep views in layoutChunk method
58 // re-used variable to acquire decor insets from RecyclerView
64 * @param context Current context, will be used to access resources.
73 * @param context Current context, will be used to access resources.
77 * @param reverseLayout When set to true, layouts from end to start.
194 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { argument
224 * Sets the source to get the number of spans occupied by each item in the adapter.
226 * @param spanSizeLookup {@link SpanSizeLookup} instance to b
[all...]
H A DRecyclerView.java10 * Unless required by applicable law or agreed to in writing, software
71 * <li><em>Index:</em> The index of an attached child view as used in a call to
73 * <li><em>Binding:</em> The process of preparing a child view to display data corresponding
74 * to a <em>position</em> within the adapter.</li>
75 * <li><em>Recycle (view):</em> A view previously used to display data for a specific adapter
76 * position may be placed in a cache for later reuse to display the same type of data again
90 * {@link LayoutManager} to be able to detect data set changes in batches during a layout
91 * calculation. This saves LayoutManager from tracking adapter changes to calculate animations.
109 * last layout calculation. You can rely on these positions to b
2563 offsetPositionRecordsForMove(int from, int to) argument
4128 offsetPositionRecordsForMove(int from, int to) argument
6321 onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) argument
[all...]
H A DStaggeredGridLayoutManager.java10 * Unless required by applicable law or agreed to in writing, software
47 * It supports horizontal & vertical layout as well as an ability to layout children in reverse.
49 * Staggered grids are likely to have gaps at the edges of the layout. To avoid these gaps,
64 * Does not do anything to hide gaps.
72 * When scroll state is changed to {@link RecyclerView#SCROLL_STATE_IDLE}, StaggeredGrid will
74 * and move items to correct positions with animations.
76 * For example, if LayoutManager ends up with the following layout due to adapter changes:
83 * It will animate to the following state:
125 * Temporary variable used during fill method to check which spans needs to b
1294 onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DAdapterHelperTest.java10 * Unless required by applicable law or agreed to in writing, software
52 TestAdapter mPreProcessClone; // we clone adapter pre-process to run operations to see result
158 public void offsetPositionsForMove(int from, int to) {
160 if (from < to) {
162 end = to;
165 start = to;
174 holder.offsetPosition(to - from, false);
800 int to;
802 to
919 mv(int from, int to) argument
974 move(int from, int to) argument
[all...]
H A DBaseRecyclerViewInstrumentationTest.java10 * Unless required by applicable law or agreed to in writing, software
291 Log.d(TAG, "SMOOTH scrolling to " + position);
384 Log.d(TAG, "will layout items from " + start + " to " + end);
599 * Similar to other methods but negative count means delete and position count means add.
602 * item to index 1, then remove an item from index 2 (updated index 2)
629 public void moveItem(final int from, final int to, final boolean notifyChange) argument
635 mItems.add(to, item);
636 offsetOriginalIndices(from, to - 1);
637 item.mAdapterIndex = to;
648 public void moveAndNotify(final int from, final int to) throw argument
[all...]
H A DOpReorderTest.java10 * Unless required by applicable law or agreed to in writing, software
241 int to;
243 to = nextInt(random, updatedItemCount);
244 } while (to == from);
245 mv(from, to);
270 UpdateOp mv(int from, int to) { argument
271 return record(new UpdateOp(MOVE, from, to));
H A DStaggeredGridLayoutManagerTest.java10 * Unless required by applicable law or agreed to in writing, software
258 assertTrue(logPrefix + " second child should be to the left of first child",
263 assertTrue(logPrefix + " first child should be to the left of second child",
402 assertNotNull("scroll to position should work", vh);
479 // smooth scroll to end of the list and keep testing meanwhile. This will test pre-caching
500 // set a new adapter with huge items to test full bounds check
533 assertNull("moving item to upper should not cause gaps", mLayoutManager.hasGapsToFix());
584 // give it some time to fix the gap
626 // now smooth scroll to 99 to trigge
753 copyOfRange(int[] original, int from, int to) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptGroup.java10 * Unless required by applicable law or agreed to in writing, software
25 * The kernels may be connected internally or to an external allocation.
32 * Inputs bound to script globals are set directly upon the script.
36 * script kernels and connections. Attempting to create a
37 * ScriptGroup with multiple DAGs or attempting to create
41 * Script objects. Attempting to use multiple kernels from the same
60 ConnectLine(Type t, Script.KernelID from, Script.KernelID to) { argument
62 mToK = to;
66 ConnectLine(Type t, Script.KernelID from, Script.FieldID to) { argument
68 mToF = to;
327 addConnection(Type t, Script.KernelID from, Script.FieldID to) argument
367 addConnection(Type t, Script.KernelID from, Script.KernelID to) argument
[all...]
H A DScriptGroupThunker.java10 * Unless required by applicable law or agreed to in writing, software
84 public Builder addConnection(Type t, Script.KernelID from, Script.FieldID to) { argument
87 bN.addConnection(tt.getNObj(), from.mN, to.mN);
94 public Builder addConnection(Type t, Script.KernelID from, Script.KernelID to) { argument
97 bN.addConnection(tt.getNObj(), from.mN, to.mN);
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c10 * Unless required by applicable law or agreed to in writing, software
46 unsigned which; // which buffer to use next
49 SLuint32 byteOrder; // desired to use for PCM buffers
55 static void swab(const void *from, void *to, ssize_t n) argument
57 // from and to as char pointers
59 char *to_ch = (char *) to;
70 // squeeze 16-bit signed PCM samples down to 8-bit unsigned PCM samples by truncation; no dithering
71 static void squeeze(const short *from, unsigned char *to, ssize_t n) argument
75 *to++ = (*from++ + 32768) >> 8;
80 // squeeze 32-bit signed PCM samples down to 2
81 squeeze24(const unsigned char *from, unsigned char *to, ssize_t n) argument
[all...]
H A Dplaybq.cpp10 * Unless required by applicable law or agreed to in writing, software
46 unsigned which; // which buffer to use next
49 SLuint32 byteOrder; // desired to use for PCM buffers
55 static void swab(const void *from, void *to, ssize_t n) argument
57 // from and to as char pointers
59 char *to_ch = (char *) to;
70 // squeeze 16-bit signed PCM samples down to 8-bit unsigned PCM samples by truncation; no dithering
71 static void squeeze(const short *from, unsigned char *to, ssize_t n) argument
75 *to++ = (*from++ + 32768) >> 8;
80 // squeeze 32-bit signed PCM samples down to 2
81 squeeze24(const unsigned char *from, unsigned char *to, ssize_t n) argument
[all...]
/frameworks/rs/cpp/util/
H A DStrongPointer.h10 * Unless required by applicable law or agreed to in writing, software
31 TextOutput& printStrongPointer(TextOutput& to, const void* val);
115 TextOutput& operator<<(TextOutput& to, const sp<T>& val);
212 inline TextOutput& operator<<(TextOutput& to, const sp<T>& val) argument
214 return printStrongPointer(to, val.get());
/frameworks/rs/server/
H A DStrongPointer.h10 * Unless required by applicable law or agreed to in writing, software
30 TextOutput& printStrongPointer(TextOutput& to, const void* val);
114 TextOutput& operator<<(TextOutput& to, const sp<T>& val);
211 inline TextOutput& operator<<(TextOutput& to, const sp<T>& val) argument
213 return printStrongPointer(to, val.get());
/frameworks/support/v4/java/android/support/v4/widget/
H A DSimpleCursorAdapter.java10 * Unless required by applicable law or agreed to in writing, software
28 * Used to write apps that run on platforms prior to Android 3.0. When running
30 * to switch to the framework's implementation. See the framework SDK
35 * A list of columns containing the data to bind to the UI.
41 * A list of View ids representing the views to which the data must be bound.
62 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { argument
64 mTo = to;
87 SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to, int flags) argument
343 changeCursorAndColumns(Cursor c, String[] from, int[] to) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneBase.java10 * Unless required by applicable law or agreed to in writing, software
78 * Note that implementations of Phone.java are expected to be used
80 * originally called PhoneFactory to obtain the interface.
113 // Key used to read and write the saved network selection numeric value
115 // Key used to read and write the saved network selection operator name
119 // Key used to read/write "disable data connection on boot" pref (used for testing)
140 // Used to intercept the carrier selection calls so that
174 // Key used to read/write current CLIR setting
179 // Key used to read/write the ID for storing the voice mail
182 // Key used to rea
730 migrate(RegistrantList to, RegistrantList from) argument
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduPersister.java11 * Unless required by applicable law or agreed to in writing, software
83 * Indicate that we transiently failed to process a MM.
87 * Indicate that we permanently failed to process a MM.
369 Log.v(TAG, "loadParts(" + msgId + "): no part to load.");
458 Log.e(TAG, "Failed to load part data", e);
466 Log.e(TAG, "Failed to close stream", e);
524 * @param uri The Uri of the PDU to be loaded.
525 * @return A generic PDU object, it may be cast to dedicated PDU.
526 * @throws MmsException Failed to load some fields of a PDU.
549 // Tell the cache to indicat
1505 move(Uri from, Uri to) argument
[all...]
H A DReadRecInd.java11 * Unless required by applicable law or agreed to in writing, software
30 * @param to the to value
32 * NullPointerException if messageId or to is null.
38 EncodedStringValue[] to) throws InvalidHeaderValueException {
44 setTo(to);
34 ReadRecInd(EncodedStringValue from, byte[] messageId, int mmsVersion, int readStatus, EncodedStringValue[] to) argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiWatchdogStateMachine.java10 * Unless required by applicable law or agreed to in writing, software
48 * WifiWatchdogStateMachine monitors the connection to a WiFi network. When WiFi
51 * to bigger packet size exchange).
54 * an indicator to decide if the link is good enough to switch to Wi-Fi as the
58 * instant packet loss, and record it as per-AP loss-to-rssi statistics. When
60 * poor link notification to avoid WiFi connection temporarily.
62 * While WiFi is being avoided, the WiFi watchdog keep watching the RSSI to
63 * bring the WiFi connection back. Once the RSSI is high enough to achiev
1171 findRssiTarget(int from, int to, double threshold) argument
[all...]
/frameworks/native/include/binder/
H A DParcel.h10 * Unless required by applicable law or agreed to in writing, software
117 // descriptors are dup'ed, so it is safe to delete the native_handle
124 // The Parcel does not take ownership of the given fd unless you ask it to.
131 // Writes a raw fd and optional comm channel fd to the parcel as a ParcelFileDescriptor.
136 // Writes a blob to the parcel.
180 // response headers. Callers should use this to read & parse the
192 // in the parcel, which you do not own -- use dup() to get your own copy.
228 void print(TextOutput& to, uint32_t flags = 0) const;
391 inline TextOutput& operator<<(TextOutput& to, const Parcel& parcel) argument
393 parcel.print(to);
[all...]
H A DTextOutput.h10 * Unless required by applicable law or agreed to in writing, software
42 inline Bundle(TextOutput& to) : mTO(to) { to.pushBundle(); } argument
54 // Text output stream for printing to the log (via utils/Log.h).
57 // Text output stream for printing to stdout.
60 // Text output stream for printing to stderr.
65 TextOutput& endl(TextOutput& to);
66 TextOutput& indent(TextOutput& to);
67 TextOutput& dedent(TextOutput& to);
131 endl(TextOutput& to) argument
137 indent(TextOutput& to) argument
143 dedent(TextOutput& to) argument
149 operator <<(TextOutput& to, const char* str) argument
155 operator <<(TextOutput& to, char c) argument
161 operator <<(TextOutput& to, TextOutputManipFunc func) argument
[all...]
/frameworks/native/libs/binder/
H A DParcel.cpp10 * Unless required by applicable law or agreed to in writing, software
65 // Maximum size of a blob to transfer in-place.
68 // XXX This can be made public if we want to provide
110 // intentionally blank -- nothing to do to acquire this, but we do
176 obj.binder = 0; /* Don't pass uninitialized stack data to a remote process */
210 obj.binder = 0; /* Don't pass uninitialized stack data to a remote process */
221 // XXX How to deal? In order to flatten the given binder,
222 // we need to prob
1451 print(TextOutput& to, uint32_t ) const argument
[all...]
H A DTextOutput.cpp10 * Unless required by applicable law or agreed to in writing, software
40 TextOutput& operator<<(TextOutput& to, bool val) argument
42 if (val) to.print("true", 4);
43 else to.print("false", 5);
44 return to;
47 TextOutput& operator<<(TextOutput& to, int val) argument
51 to.print(buf, strlen(buf));
52 return to;
55 TextOutput& operator<<(TextOutput& to, long val) argument
59 to
63 operator <<(TextOutput& to, unsigned int val) argument
71 operator <<(TextOutput& to, unsigned long val) argument
79 operator <<(TextOutput& to, long long val) argument
87 operator <<(TextOutput& to, unsigned long long val) argument
95 print_float(TextOutput& to, double value) argument
107 operator <<(TextOutput& to, float val) argument
112 operator <<(TextOutput& to, double val) argument
117 operator <<(TextOutput& to, const void* val) argument
125 operator <<(TextOutput& to, const String8& val) argument
131 operator <<(TextOutput& to, const String16& val) argument
142 operator <<(TextOutput& to, const TypeCode& val) argument
161 operator <<(TextOutput& to, const HexDump& val) argument
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgramCache.cpp10 * Unless required by applicable law or agreed to in writing, software
31 * A simple formatter class to automatically add the endl and
63 friend inline Formatter& operator<<(Formatter& to, FormaterManipFunc func) { argument
64 return (*func)(to);
82 // generate shaders on initialization so as to avoid jank.
/frameworks/compile/mclinker/lib/Target/
H A DELFEmulation.cpp20 const char* to; ///< the output string. member in struct:NameMap
80 pScript.sectionMap().insert(map[i].from, map[i].to, map[i].policy);
85 // FIXME: this is the hack to help assignment processing in current

Completed in 1349 milliseconds

12