Searched refs:last (Results 1 - 25 of 55) sorted by relevance

123

/frameworks/base/core/java/android/content/
H A DContentUris.java28 * Converts the last path segment to a long.
31 * stored in the last segment.
34 * @throws NumberFormatException if the last segment isn't a number
36 * @return the long conversion of the last segment or -1 if the path is
40 String last = contentUri.getLastPathSegment();
41 return last == null ? -1 : Long.parseLong(last);
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dualgo.h27 /// Swaps corresponding elements of [first, last) and [result,)
31 inline ForwardIterator2 swap_ranges (ForwardIterator1 first, ForwardIterator2 last, ForwardIterator2 result) argument
33 for (; first != last; ++first, ++result)
38 /// Returns the first iterator i in the range [first, last) such that
39 /// *i == value. Returns last if no such iterator exists.
43 inline InputIterator find (InputIterator first, InputIterator last, const EqualityComparable& value) argument
45 while (first != last && !(*first == value))
54 ForwardIterator adjacent_find (ForwardIterator first, ForwardIterator last) argument
56 if (first != last)
57 for (ForwardIterator prev = first; ++first != last;
91 count(InputIterator first, InputIterator last, const EqualityComparable& value) argument
111 transform(InputIterator first, InputIterator last, OutputIterator result, UnaryFunction op) argument
144 replace(ForwardIterator first, ForwardIterator last, const T& old_value, const T& new_value) argument
160 replace_copy(InputIterator first, InputIterator last, OutputIterator result, const T& old_value, const T& new_value) argument
172 generate(ForwardIterator first, ForwardIterator last, Generator gen) argument
198 reverse(BidirectionalIterator first, BidirectionalIterator last) argument
208 reverse_copy(BidirectionalIterator first, BidirectionalIterator last, OutputIterator result) argument
219 rotate(ForwardIterator first, ForwardIterator middle, ForwardIterator last) argument
233 rotate(T* first, T* middle, T* last) argument
244 rotate_copy(ForwardIterator first, ForwardIterator middle, ForwardIterator last, OutputIterator result) argument
272 inplace_merge(InputIterator first, InputIterator middle, InputIterator last) argument
290 remove_copy(InputIterator first, InputIterator last, OutputIterator result, const T& value) argument
310 remove_copy(InputIterator first, InputIterator last, OutputIterator result, RInputIterator rfirst, RInputIterator rlast) argument
333 remove(ForwardIterator first, ForwardIterator last, const T& value) argument
346 unique_copy(InputIterator first, InputIterator last, OutputIterator result) argument
369 unique(ForwardIterator first, ForwardIterator last) argument
380 lower_bound(ForwardIterator first, ForwardIterator last, const LessThanComparable& value) argument
397 binary_search(ForwardIterator first, ForwardIterator last, const LessThanComparable& value) argument
408 upper_bound(ForwardIterator first, ForwardIterator last, const LessThanComparable& value) argument
425 equal_range(ForwardIterator first, ForwardIterator last, const LessThanComparable& value) argument
438 random_shuffle(RandomAccessIterator first, RandomAccessIterator last) argument
460 sort(RandomAccessIterator first, RandomAccessIterator last, Compare) argument
472 sort(RandomAccessIterator first, RandomAccessIterator last) argument
483 stable_sort(RandomAccessIterator first, RandomAccessIterator last, Compare comp) argument
495 stable_sort(RandomAccessIterator first, RandomAccessIterator last) argument
522 search_n(Iterator first, Iterator last, size_t count, const T& value) argument
590 is_sorted(ForwardIterator first, ForwardIterator last) argument
609 next_permutation(BidirectionalIterator first, BidirectionalIterator last) argument
619 prev_permutation(BidirectionalIterator first, BidirectionalIterator last) argument
628 max_element(ForwardIterator first, ForwardIterator last) argument
637 min_element(ForwardIterator first, ForwardIterator last) argument
647 partial_sort(RandomAccessIterator first, RandomAccessIterator middle, RandomAccessIterator last) argument
660 nth_element(RandomAccessIterator first, RandomAccessIterator nth, RandomAccessIterator last) argument
668 partial_sort_copy(InputIterator first, InputIterator last, RandomAccessIterator result_first, RandomAccessIterator result_last) argument
[all...]
H A Duheap.h30 bool is_heap (RandomAccessIterator first, RandomAccessIterator last, Compare comp) argument
33 for (; ++iChild < last; ++first)
34 if (comp (*first, *iChild) || (++iChild < last && comp (*first, *iChild)))
39 /// \brief make_heap turns the range [first, last) into a heap
40 /// At completion, is_heap (first, last, comp) is true.
46 void make_heap (RandomAccessIterator first, RandomAccessIterator last, Compare comp) argument
50 uoff_t iChild, iHole = 0, iEnd (distance (first, last));
63 /// \brief Inserts the *--last into the preceeding range assumed to be a heap.
67 void push_heap (RandomAccessIterator first, RandomAccessIterator last, Compare comp) argument
69 if (last <
88 pop_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp) argument
100 sort_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp) argument
[all...]
H A Dupredalgo.h20 /// Copy_if copies elements from the range [first, last) to the range
21 /// [result, result + (last - first)) if pred(*i) returns true.
26 inline OutputIterator copy_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred) argument
28 for (; first != last; ++first) {
37 /// Returns the first iterator i in the range [first, last) such that
38 /// pred(*i) is true. Returns last if no such iterator exists.
43 inline InputIterator find_if (InputIterator first, InputIterator last, Predicate pred) argument
45 while (first != last && !pred (*first))
55 inline ForwardIterator adjacent_find (ForwardIterator first, ForwardIterator last, BinaryPredicate p) argument
57 if (first != last)
95 count_if(InputIterator first, InputIterator last, Predicate pred) argument
111 replace_if(ForwardIterator first, ForwardIterator last, Predicate pred, const T& new_value) argument
128 replace_copy_if(InputIterator first, InputIterator last, OutputIterator result, Predicate pred, const T& new_value) argument
143 remove_copy_if(InputIterator first, InputIterator last, OutputIterator result, Predicate pred) argument
162 remove_if(ForwardIterator first, ForwardIterator last, Predicate pred) argument
179 unique_copy(InputIterator first, InputIterator last, OutputIterator result, BinaryPredicate binary_pred) argument
203 unique(ForwardIterator first, ForwardIterator last, BinaryPredicate binary_pred) argument
215 lower_bound(ForwardIterator first, ForwardIterator last, const T& value, StrictWeakOrdering comp) argument
233 binary_search(ForwardIterator first, ForwardIterator last, const T& value, StrictWeakOrdering comp) argument
245 upper_bound(ForwardIterator first, ForwardIterator last, const T& value, StrictWeakOrdering comp) argument
263 equal_range(ForwardIterator first, ForwardIterator last, const T& value, StrictWeakOrdering comp) argument
280 nth_element(RandomAccessIterator first, RandomAccessIterator, RandomAccessIterator last, Compare comp) argument
322 search_n(Iterator first, Iterator last, size_t count, const T& value, BinaryPredicate comp) argument
437 is_sorted(ForwardIterator first, ForwardIterator last, StrictWeakOrdering comp) argument
465 next_permutation(BidirectionalIterator first, BidirectionalIterator last, StrictWeakOrdering comp) argument
489 prev_permutation(BidirectionalIterator first, BidirectionalIterator last, StrictWeakOrdering comp) argument
512 max_element(ForwardIterator first, ForwardIterator last, BinaryPredicate comp) argument
525 min_element(ForwardIterator first, ForwardIterator last, BinaryPredicate comp) argument
539 partial_sort(RandomAccessIterator first, RandomAccessIterator, RandomAccessIterator last, StrictWeakOrdering comp) argument
548 partial_sort_copy(InputIterator first, InputIterator last, RandomAccessIterator result_first, RandomAccessIterator result_last, StrictWeakOrdering comp) argument
567 stable_partition(ForwardIterator first, ForwardIterator last, Predicate pred) argument
589 partition(ForwardIterator first, ForwardIterator last, Predicate pred) argument
[all...]
H A Dunumeric.h16 /// Returns the sum of all elements in [first, last) added to \p init.
20 inline T accumulate (InputIterator first, InputIterator last, T init) argument
22 while (first < last)
27 /// Returns the sum of all elements in [first, last) via \p op, added to \p init.
31 inline T accumulate (InputIterator first, InputIterator last, T init, BinaryFunction binary_op) argument
33 while (first < last)
38 /// Assigns range [value, value + (last - first)) to [first, last)
42 inline void iota (ForwardIterator first, ForwardIterator last, T value) argument
44 while (first < last)
77 partial_sum(InputIterator first, InputIterator last, OutputIterator result) argument
90 partial_sum(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation sumOp) argument
103 adjacent_difference(InputIterator first, InputIterator last, OutputIterator result) argument
116 adjacent_difference(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation differenceOp) argument
[all...]
H A Dualgobase.h49 /// Copy copies elements from the range [first, last) to the range
50 /// [result, result + (last - first)). That is, it performs the assignments
52 /// for every integer n from 0 to last - first, copy performs the assignment
58 inline OutputIterator copy (InputIterator first, InputIterator last, OutputIterator result) argument
60 for (; first != last; ++result, ++first)
81 /// \brief Copy copies elements from the range (last, first] to result.
83 /// Copies elements starting at last, decrementing both last and result.
86 inline OutputIterator copy_backward (InputIterator first, InputIterator last, OutputIterator result) argument
88 while (first != last)
100 for_each(InputIterator first, InputIterator last, UnaryFunction f) argument
113 fill(ForwardIterator first, ForwardIterator last, const T& value) argument
141 copy_backward_fast(const void* first, const void* last, void* result) argument
180 copy_backward(const uint8_t* first, const uint8_t* last, uint8_t* result) argument
[all...]
H A Dulist.h49 void splice (iterator ip, list<T>& l, iterator first = NULL, iterator last = NULL);
61 /// Moves the range [first, last) from \p l to this list at \p ip.
63 void list<T>::splice (iterator ip, list<T>& l, iterator first, iterator last) argument
67 if (!last)
68 last = l.end();
69 insert (ip, first, last);
70 l.erase (first, last);
H A Dumemory.h78 inline void construct (ForwardIterator first, ForwardIterator last) argument
82 while (first < last) {
107 /// Calls the destructor on elements in range [first, last) without calling delete.
111 inline void destroy (ForwardIterator first, ForwardIterator last) throw() argument
115 for (; first < last; ++ first)
143 /// Copies [first, last) into result by calling copy constructors in result.
147 ForwardIterator uninitialized_copy (InputIterator first, InputIterator last, ForwardIterator result) argument
149 while (first < last) {
171 /// Calls construct on all elements in [first, last) with value \p v.
175 void uninitialized_fill (ForwardIterator first, ForwardIterator last, cons argument
[all...]
H A Dualgobase.cpp152 void copy_backward_fast (const void* first, const void* last, void* result) argument
156 size_t nBytes (distance (first, last));
158 size_t nHeadBytes = uintptr_t(last) % 4;
159 last = advance (last, -1);
161 movsb (last, nHeadBytes, result);
165 last = advance (last, -3);
167 movsd (last, nMiddleBlocks, result);
170 movsb (last, nByte
235 rotate_fast(void* first, void* middle, void* last) argument
[all...]
H A Dumap.h61 inline const_iterator find_data (const_data_ref v, const_iterator first = NULL, const_iterator last = NULL) const;
62 inline iterator find_data (const_data_ref v, iterator first = NULL, iterator last = NULL);
77 const_iterator first (begin()), last (end());
78 while (first != last) {
79 const_iterator mid = advance (first, distance (first,last) / 2);
83 last = mid;
96 /// Returns the pair<K,V> where V = \p v, occuring in range [first,last).
98 inline typename map<K,V>::const_iterator map<K,V>::find_data (const_data_ref v, const_iterator first, const_iterator last) const
101 if (!last) last
108 find_data(const_data_ref v, iterator first, iterator last) argument
[all...]
H A Dumultimap.h74 const_iterator first (begin()), last (end());
75 while (first != last) {
76 const_iterator mid = advance (first, distance (first,last) / 2);
80 last = mid;
89 const_iterator first (begin()), last (end());
90 while (first != last) {
91 const_iterator mid = advance (first, distance (first,last) / 2);
93 last = mid;
97 return (last);
H A Dubitset.h80 // Sets the value of the bitrange \p first through \p last to the equivalent number of bits from \p v.
81 inline void set (uoff_t first, uoff_t DebugArg(last), value_type v)
84 assert (size_t (distance (first, last)) <= s_WordBits && "Bit ranges must be 32 bits or smaller");
85 assert (first / s_WordBits == last / s_WordBits && "Bit ranges can not cross dword (4 byte) boundary");
86 assert ((v & BitMask(value_type,distance(first,last))) == v && "The value is too large to fit in the given bit range");
100 /// Returns the value in bits \p first through \p last.
101 inline value_type at (uoff_t first, uoff_t last) const
103 assert (size_t (distance (first, last)) <= s_WordBits && "Bit ranges must be 32 bits or smaller");
104 assert (first / s_WordBits == last / s_WordBits && "Bit ranges can not cross dword (4 byte) boundary");
105 return ((BitRef(first) >> (first % s_WordBits)) & BitMask(value_type,distance(first, last)));
[all...]
H A Dustring.cpp178 void string::insert (const uoff_t ip, const wchar_t* first, const wchar_t* last, const size_type n) argument
181 size_type nti = distance (first, last), bti = 0;
209 /// Inserts [first,last] \p n times.
210 string::iterator string::insert (iterator start, const_pointer first, const_pointer last, size_type n) argument
212 assert (first <= last);
214 assert ((first < begin() || first >= end() || size() + abs_distance(first,last) < capacity()) && "Insertion of self with autoresize is not supported");
215 start = iterator (memblock::insert (memblock::iterator(start), distance(first, last) * n));
216 fill (memblock::iterator(start), first, distance(first, last), n);
242 void string::replace (iterator first, iterator last, const_pointer s) argument
246 replace (first, last,
250 replace(iterator first, iterator last, const_pointer i1, const_pointer i2, size_type n) argument
415 hash(const char* first, const char* last) argument
[all...]
H A Dmemlink.h68 inline void link (const void* first, const void* last) { link (first, distance (first, last)); } argument
69 inline void link (void* first, void* last) { link (first, distance (first, last)); } argument
H A Dustring.h130 void insert (const uoff_t ip, const_wpointer first, const_wpointer last, const size_type n = 1);
133 iterator insert (iterator start, const_pointer first, const_iterator last, size_type n = 1);
139 inline iterator erase (iterator first, const_iterator last) { return (erase (first, size_type(distance(first,last)))); } argument
144 void replace (iterator first, iterator last, const_pointer s);
145 void replace (iterator first, iterator last, const_pointer i1, const_pointer i2, size_type n = 1);
146 inline void replace (iterator first, iterator last, const string& s) { replace (first, last, s.begin(), s.end()); } argument
147 inline void replace (iterator first, iterator last, const_pointer s, size_type slen) { replace (first, last, argument
148 replace(iterator first, iterator last, size_type n, value_type c) argument
[all...]
H A Dcmemlink.h63 inline void link (const void* first, const void* last) { link (first, distance (first, last)); } argument
/frameworks/base/core/java/android/os/
H A DFileUtils.java168 } else if (max < 0) { // "tail" mode: keep the last N
171 byte[] last = null, data = null;
173 if (last != null) rolled = true;
174 byte[] tmp = last; last = data; data = tmp;
179 if (last == null && len <= 0) return "";
180 if (last == null) return new String(data, 0, len);
183 System.arraycopy(last, len, last, 0, last
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
H A DListGetSelectedViewTest.java58 View last = mListView.getChildAt(1);
59 TouchUtils.clickView(this, last);
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvlc_decode.cpp875 pTcoef->last = (uint) tab->last; //(tab->val >> 16) & 1;
884 //if (((tab->run<<8)|(tab->level)|(tab->last<<16)) == VLC_ESCAPE_CODE)
922 pTcoef->last = (uint)tab->last; //(tab->val >> 16) & 1;
926 if ((pTcoef->last == 0 && pTcoef->run > 14) || (pTcoef->last == 1 && pTcoef->run > 20))
930 pTcoef->level = pTcoef->level + intra_max_level[pTcoef->last][pTcoef->run];
974 pTcoef->last = (uint)tab->last; //(ta
[all...]
H A Dvlc_dequant.cpp69 int last, return_status; local
117 last = 1;/* 11/1/2000 let it slips undetected, just like
125 last = run_level.last;
131 last = 1;
162 while (!last);
395 int last, return_status; local
422 last = 1;/* 11/1/2000 let it slips undetected, just like
430 last = run_level.last;
520 int last, return_status; local
822 int last, return_status; local
1078 int last, return_status; local
[all...]
/frameworks/base/tools/localize/
H A Dfile_utils.cpp26 mkdirs(const char* last) argument
29 const char* s = last-1;
33 if (s > last && (*s == '.' || *s == 0)) {
34 String8 part(last, s-last);
44 last = s+1;
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListScrollListener.java66 int last = firstCell + cellCount - 1;
67 mText.setText("Showing " + firstCell + "-" + last + "/" + itemCount);
/frameworks/base/include/utils/
H A DList.h189 * Return the first element or one past the last element. The
222 void insert(iterator posn, const_iterator first, const_iterator last) { argument
223 for ( ; first != last; ++first)
238 iterator erase(iterator first, iterator last) { argument
239 while (first != last)
241 return iterator(last);
260 * will be equal to "last". The iterators must refer to the same
274 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const
277 while (first != last) {
/frameworks/base/tests/CoreTests/android/core/
H A DTreeSetTest.java97 * Tests performance for the java.util.TreeSet method - last()
105 value = set.last();
106 value = set.last();
107 value = set.last();
108 value = set.last();
109 value = set.last();
110 value = set.last();
111 value = set.last();
112 value = set.last();
113 value = set.last();
[all...]
/frameworks/base/libs/surfaceflinger/
H A DBlurFilter.cpp80 inline uint16_t to(int shift, int last, int dither) const { argument
84 if (UNLIKELY(last)) {
127 inline uint32_t to(int shift, int last, int dither) const { argument
131 if (UNLIKELY(last)) {
170 inline uint16_t to(int shift, int last, int dither) const { argument
172 if (UNLIKELY(last)) {
202 inline uint32_t to(int shift, int last, int dither) const { argument
205 if (UNLIKELY(last)) {

Completed in 2335 milliseconds

123