Searched defs:from (Results 51 - 75 of 83) sorted by relevance

1234

/frameworks/compile/mclinker/lib/LD/
H A DELFObjectWriter.cpp216 // ELF header must start from 0x0
596 // FIXME: We should get the entsize from input since the size of each
677 const char* from = region_frag.getRegion().begin(); local
678 memcpy(pRegion.begin() + cur_offset, from, size);
/frameworks/native/libs/input/
H A DInput.cpp39 void InputEvent::initialize(const InputEvent& from) { argument
40 mDeviceId = from.mDeviceId;
41 mSource = from.mSource;
76 void KeyEvent::initialize(const KeyEvent& from) { argument
77 InputEvent::initialize(from);
78 mAction = from.mAction;
79 mFlags = from.mFlags;
80 mKeyCode = from.mKeyCode;
81 mScanCode = from.mScanCode;
82 mMetaState = from
[all...]
/frameworks/support/v4/java/android/support/v4/app/
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...]
/frameworks/support/v7/palette/src/android/support/v7/graphics/
H A DPalette.java29 * A helper class to extract prominent colors from an image.
31 * A number of colors with different profiles are extracted from the image:
40 * These can be retrieved from the appropriate getter method.
112 * Generate a {@link Palette} from a {@link Bitmap} using the default number of colors.
119 * Generate a {@link Palette} from a {@link Bitmap} using the specified {@code numColors}.
134 // Now generate a quantizer from the Bitmap
190 * Generate a {@link Palette} from the pre-generated list of {@link Palette.Swatch} swatches.
191 * This is useful for testing, or if you want to resurrect a {@link Palette} instance from a
194 public static Palette from(List<Swatch> swatches) { method in class:Palette
242 * Returns a light and vibrant swatch from th
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java58 // re-used variable to acquire decor insets from RecyclerView
77 * @param reverseLayout When set to true, layouts from end to start.
93 "GridLayoutManager does not support stack from end."
194 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { argument
503 // make sure we traverse from min position to max position
513 if (mOrientation == VERTICAL && isLayoutRTL()) { // start from last span
632 * disabled, default implementation traverses all items from 0 to
633 * <code>position</code>. When caching is enabled, it calculates from the closest cached
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DOpReorderTest.java240 int from = 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 DAdapterHelperTest.java158 public void offsetPositionsForMove(int from, int to) {
160 if (from < to) {
161 start = from;
166 end = from;
173 if (holder.mPosition == from) {
174 holder.offsetPosition(to - from, false);
799 int from = nextInt(random, mTestAdapter.mItems.size());
803 } while (to == from);
804 mv(from, to);
919 private void mv(int from, in argument
974 move(int from, int to) argument
[all...]
H A DBaseRecyclerViewInstrumentationTest.java384 Log.d(TAG, "will layout items from " + start + " to " + end);
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
634 Item item = mItems.remove(from);
636 offsetOriginalIndices(from, to - 1);
648 public void moveAndNotify(final int from, final int to) throws Throwable { argument
652 Item item = mItems.remove(from);
654 offsetOriginalIndices(from, to - 1);
656 notifyItemMoved(from, to);
H A DStaggeredGridLayoutManagerTest.java144 assertEquals("first completely visible item from span 0 should be 0", 0, into[0]);
145 assertEquals("first completely visible item from span 1 should be 1", 1, into[1]);
147 assertEquals("last completely visible item from span 0 should be 4", 4, into[0]);
148 assertEquals("last completely visible item from span 1 should be 1", 1, into[1]);
721 assertRectSetsEqual(logPrefix + " when an item from the start of the list is deleted, "
753 private int[] copyOfRange(int[] original, int from, int to) { argument
754 int newLength = to - from;
756 throw new IllegalArgumentException(from + " > " + to);
759 System.arraycopy(original, from, copy, 0,
760 Math.min(original.length - from, newLengt
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c55 static void swab(const void *from, void *to, ssize_t n) argument
57 // from and to as char pointers
58 const char *from_ch = (const char *) from;
71 static void squeeze(const short *from, unsigned char *to, ssize_t n) argument
75 *to++ = (*from++ + 32768) >> 8;
81 static void squeeze24(const unsigned char *from, unsigned char *to, ssize_t n) argument
85 ++from;
86 *to++ = *from++;
87 *to++ = *from++;
88 *to++ = *from
[all...]
H A Dplaybq.cpp55 static void swab(const void *from, void *to, ssize_t n) argument
57 // from and to as char pointers
58 const char *from_ch = (const char *) from;
71 static void squeeze(const short *from, unsigned char *to, ssize_t n) argument
75 *to++ = (*from++ + 32768) >> 8;
81 static void squeeze24(const unsigned char *from, unsigned char *to, ssize_t n) argument
85 ++from;
86 *to++ = *from++;
87 *to++ = *from++;
88 *to++ = *from
[all...]
/frameworks/base/core/java/android/net/
H A DUri.java69 that some threads will immediately see changes from other threads on
72 overhead, which means the most common case, access from a single thread,
90 For reference, from RFC 2396:
224 * Gets the decoded user information from the authority.
233 * Gets the encoded user information from the authority.
242 * Gets the encoded host from the authority for this URI. For example,
251 * Gets the port from the authority for this URI. For example,
275 * Gets the decoded query component from this URI. The query comes after
285 * Gets the encoded query component from this URI. The query comes after
404 * Constructs a new builder, copying the attributes from thi
2061 static Part from(String encoded, String decoded) { method in class:Uri.Part
2238 static PathPart from(String encoded, String decoded) { method in class:Uri.PathPart
[all...]
H A DConnectivityManager.java82 * If this is a connection that was the result of failing over from a
163 * may be passed up from the lower networking layers, and its
426 * from an App.
446 * case of the static set/getProcessDefaultNetwork methods and from the Network class.
943 * Removes the NET_CAPABILITY_NOT_RESTRICTED capability from the given
1409 public static ConnectivityManager from(Context context) { method in class:ConnectivityManager
2417 * comes from {@link PendingIntent#getBroadcast}. Cannot be null.
2464 * Unregisters callbacks about and possibly releases networks originating from
2484 * (and not explicitly bound via a bound SocketFactory from
2536 * @param network The {@link Network} to bind host resolutions from th
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceActivity.java111 * from the following XML resource:</p>
137 * <p/>Starting from Key Lime Pie, when this argument is passed in, the PreferenceActivity
419 * this resource is loaded from <var>res</var> and returned. Otherwise
431 * this resource is loaded from <var>res</var> and returned. Otherwise
443 * this resource is loaded from <var>res</var> and returned. Otherwise
456 * this resource is loaded from <var>res</var> and returned. Otherwise
562 // We are restarting from a previous saved state; used that to
775 * to fill in the list from a resource.
1265 Header findBestMatchingHeader(Header cur, ArrayList<Header> from) { argument
1267 for (int j=0; j<from
[all...]
/frameworks/base/core/java/android/view/
H A DViewDebug.java104 * @ViewDebug.IntToString(from = 0, to = "VISIBLE"),
105 * @ViewDebug.IntToString(from = 4, to = "INVISIBLE"),
106 * @ViewDebug.IntToString(from = 8, to = "GONE")
124 * @ViewDebug.IntToString(from = 0, to = "INVALID"),
125 * @ViewDebug.IntToString(from = 1, to = "FIRST"),
126 * @ViewDebug.IntToString(from = 2, to = "SECOND")
203 * Defines a mapping from an int value to a String. Such a mapping can be used
216 int from(); method in interface:ViewDebug.IntToString
227 * Defines a mapping from a flag to a String. Such a mapping can be used
301 * Returns a View to enable grabbing screenshots from custo
[all...]
/frameworks/base/tools/aidl/
H A Dgenerate_java_rpc.cpp34 static void generate_new_array(Type* t, StatementBlock* addTo, Variable* v, Variable* from);
170 // The call to decl (from above)
429 this->comment = "/** Extend this to listen to the events from this class. */";
596 generate_new_array(Type* t, StatementBlock* addTo, Variable* v, Variable* from) argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiWatchdogStateMachine.java49 * connects at L2 layer, the beacons from access point reach the device and it
97 /* Notifications from/to WifiStateMachine */
189 * A smaller threshold improves response speed but may suffer from randomness.
196 * Minimum volume (converted from pkt/sec) to detect a poor link, to avoid randomness.
249 * time to be low to allow for quick turn around from temporary interference.
1081 * Get preset loss if the cache has insufficient data, observed from experiments.
1119 int from = rssi + GOOD_LINK_RSSI_RANGE_MIN;
1121 mGoodLinkTargetRssi = findRssiTarget(from, to, GOOD_LINK_LOSS_THRESHOLD);
1154 int from = BSSID_STAT_RANGE_LOW_DBM;
1156 mGoodLinkTargetRssi = findRssiTarget(from, t
1171 findRssiTarget(int from, int to, double threshold) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneBase.java76 public void migrateFrom(PhoneBase from) { argument
77 super.migrateFrom(from);
78 migrate(mRingbackRegistrants, ((ImsPhoneBase)from).mRingbackRegistrants);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipPhoneBase.java79 void migrateFrom(SipPhoneBase from) { argument
80 super.migrateFrom(from);
81 migrate(mRingbackRegistrants, from.mRingbackRegistrants);
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduPersister.java522 * Load a PDU from storage by given Uri.
772 * into storage, otherwise load source data from the dataUri and then
1138 // 2. The Uri of the part is different from the current one.
1463 * For a given address type, extract the recipients from the headers.
1466 * @param recipients a HashSet that is loaded with the recipients from the FROM, TO or CC headers
1467 * @param addressMap a HashMap of the addresses from the ADDRESS_FIELDS header
1468 * @param excludeMyNumber if true, the number of this phone will be excluded from recipients
1495 * Move a PDU object from one location to another.
1497 * @param from Specify the PDU object to be moved.
1505 public Uri move(Uri from, Ur argument
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeRefreshLayout.java90 // Default offset in dips from the top of the view to where the progress spinner should stop
199 * @param start The offset in pixels from the top of this view at which the
201 * @param end The offset in pixels from the top of this view at which the
222 * @param end The offset in pixels from the top of this view at which the
254 * Simple constructor to use when creating a SwipeRefreshLayout from code.
263 * Constructor that is called when inflating SwipeRefreshLayout from XML.
485 * Set the color resources used in the progress animation from color resources.
844 private void animateOffsetToCorrectPosition(int from, AnimationListener listener) { argument
845 mFrom = from;
856 private void animateOffsetToStartPosition(int from, AnimationListene argument
904 startScaleDownReturnToStartAnimation(int from, Animation.AnimationListener listener) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioTrack.cpp202 ALOGV("~AudioTrack, releasing session id from %d on behalf of %d",
300 // these below should probably come from the audioFlinger too...
465 // the counters are realistic (i.e. start from zero after this time).
704 // FIXME use Proxy return channel to update the rate from server and avoid polling here
1068 ALOGV("Minimum buffer size corrected from %zu to %zu",
1306 // keep them from going away if another thread re-creates the track during obtainBuffer()
1349 // FIXME starts the requested timeout and elapsed over from scratch
1710 // If > 0, poll periodically to recover from a stuck server. A good value is 2.
1842 status_t AudioTrack::restoreTrack_l(const char *from) argument
1844 ALOGW("dead IAudioTrack, %s, creating a new one from
[all...]
/frameworks/base/core/java/android/provider/
H A DMediaStore.java110 * An intent to perform a search for music media and automatically play content from the
131 * An intent to perform a search for readable media and automatically play content from the
148 * An intent to perform a search for video media and automatically play content from the
403 * from MTP to the media provider
625 * stream from database (MICRO_KIND) or file (MINI_KIND).
795 * is automatically computed from the DATA column.
802 * is automatically computed from the DATA column.
1128 * <P>Type: INTEGER (ID from Images table)</P>
1171 * A non human readable key calculated from the TITLE, used for
1217 * A non human readable key calculated from th
1652 moveItem(ContentResolver res, long playlistId, int from, int to) argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityRecord.java113 CharSequence nonLocalizedLabel; // the label information from the package mgr.
114 int labelRes; // the label information from the package mgr.
608 void addResultLocked(ActivityRecord from, String resultWho, argument
611 ActivityResult r = new ActivityResult(from, resultWho,
619 void removeResultsLocked(ActivityRecord from, String resultWho, argument
624 if (r.mFrom != from) continue;
/frameworks/av/media/libstagefright/
H A DOMXCodec.cpp117 // from IOMXObserver
1845 ALOGW("querying usage flags from OMX IL component failed: %d", err);
1897 // 2. try to allocate two (2) additional buffers to reduce starvation from
1933 CODEC_LOGV("allocating %u buffers from a native window of size %u on "
2007 // Dequeue the next buffer from the native window.
2404 const sp<MetaData> &from, const sp<MetaData> &to) {
2405 if (from.get() == NULL && to.get() == NULL) {
2409 if ((from.get() == NULL && to.get() != NULL)
2410 || (from.get() != NULL && to.get() == NULL)) {
2415 CHECK(from
2403 formatHasNotablyChanged( const sp<MetaData> &from, const sp<MetaData> &to) argument
[all...]

Completed in 1081 milliseconds

1234