Searched defs:limit (Results 1 - 25 of 44) sorted by path

12

/frameworks/base/core/java/android/app/
H A DSearchManager.java356 * Query parameter added to suggestion queries to limit the number of suggestions returned.
357 * This limit is only advisory and suggestion providers may chose to ignore it.
359 public final static String SUGGEST_PARAMETER_LIMIT = "limit";
778 * @param limit The query limit to pass to the suggestion provider. This is advisory,
779 * the returned cursor may contain more rows. Pass {@code -1} for no limit.
784 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { argument
819 if (limit > 0) {
820 uriBuilder.appendQueryParameter(SUGGEST_PARAMETER_LIMIT, String.valueOf(limit));
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDatabase.java138 * The default value of this limit is 50000. A modern workstation can evaluate
205 // limit the frequency of complaints about each database to one within 20 sec
1396 * @param limit Limits the number of rows returned by the query,
1404 String having, String orderBy, String limit) {
1406 groupBy, having, orderBy, limit);
1435 * @param limit Limits the number of rows returned by the query,
1444 String having, String orderBy, String limit) {
1447 distinct, table, columns, selection, groupBy, having, orderBy, limit);
1486 having, orderBy, null /* limit */);
1513 * @param limit Limit
1402 query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument
1441 queryWithFactory(CursorFactory cursorFactory, boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument
1519 query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument
[all...]
H A DSQLiteQueryBuilder.java194 * @param limit Limits the number of rows returned by the query,
200 String groupBy, String having, String orderBy, String limit) {
205 if (!TextUtils.isEmpty(limit) && !sLimitPattern.matcher(limit).matches()) {
206 throw new IllegalArgumentException("invalid LIMIT clauses:" + limit);
226 appendClause(query, " LIMIT ", limit);
292 null /* limit */);
321 * @param limit Limits the number of rows returned by the query,
329 String having, String sortOrder, String limit) {
343 having, sortOrder, limit);
198 buildQueryString( boolean distinct, String tables, String[] columns, String where, String groupBy, String having, String orderBy, String limit) argument
327 query(SQLiteDatabase db, String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) argument
400 buildQuery( String[] projectionIn, String selection, String groupBy, String having, String sortOrder, String limit) argument
436 buildQuery( String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) argument
550 buildUnionQuery(String[] subQueries, String sortOrder, String limit) argument
[all...]
/frameworks/base/core/java/android/os/
H A DDebug.java833 * Establish an object allocation limit in the current thread.
842 public static int setAllocationLimit(int limit) { argument
847 * Establish a global object allocation limit. This feature was
855 public static int setGlobalAllocationLimit(int limit) { argument
H A DStrictMode.java282 * Just to limit ourselves out of paranoia.
1405 int limit = entry.getValue();
1407 if (instances <= limit) {
1410 Throwable tr = new InstanceCountViolation(klass, instances, limit);
1887 final int limit;
1903 limit = newExpected + 1;
1908 if (actual <= limit) {
1922 if (instances > limit) {
1923 Throwable tr = new InstanceCountViolation(klass, instances, limit);
2140 public InstanceCountViolation(Class klass, long instances, int limit) { argument
[all...]
/frameworks/base/core/java/android/provider/
H A DContactsContract.java143 public static final String LIMIT_PARAM_KEY = "limit";
1717 * .appendQueryParameter(&quot;limit&quot;, &quot;3&quot;)
1815 public Builder setLimit(int limit) { argument
1816 mLimit = limit;
1825 builder.appendQueryParameter("limit", String.valueOf(mLimit));
3038 * determine this limit, and should restrict the number of items inserted in any given
3039 * transaction correspondingly. Insertion of more items beyond the limit will
/frameworks/base/core/java/android/text/
H A DLayout.java714 int limit = start + (runs[i+1] & RUN_LENGTH_MASK);
715 if (limit > lineEnd) {
716 limit = lineEnd;
718 if (offset >= start && offset < limit) {
728 // Offset was limit of line.
740 int limit = start + (runs[i+1] & RUN_LENGTH_MASK);
741 if (limit > lineEnd) {
742 limit = lineEnd;
744 if (offset >= start && offset < limit) {
1595 * @param end limit o
1805 nextSpanTransition(int start, int limit, Class type) argument
[all...]
H A DMeasuredText.java222 int breakText(int start, int limit, boolean forwards, float width) { argument
225 for (int i = start; i < limit; ++i) {
231 for (int i = limit; --i >= start;) {
233 return limit - i -1;
238 return limit - start;
241 float measure(int start, int limit) { argument
244 for (int i = start; i < limit; ++i) {
H A DSpannableStringBuilder.java793 * equal to <code>limit</code> where a span of the specified type
796 public int nextSpanTransition(int start, int limit, Class kind) { argument
817 if (st > start && st < limit && kind.isInstance(spans[i]))
818 limit = st;
819 if (en > start && en < limit && kind.isInstance(spans[i]))
820 limit = en;
823 return limit;
H A DSpannableStringInternal.java285 public int nextSpanTransition(int start, int limit, Class kind) { argument
298 if (st > start && st < limit && kind.isInstance(spans[i]))
299 limit = st;
300 if (en > start && en < limit && kind.isInstance(spans[i]))
301 limit = en;
304 return limit;
H A DSpanned.java176 * or <code>limit</code> if there are no starts or ends greater than or
177 * equal to <code>start</code> but less than <code>limit</code>. Specify
181 public int nextSpanTransition(int start, int limit, Class type); argument
H A DTextLine.java127 * @param limit the limit of the line relative to the text
133 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, argument
138 mLen = limit - start;
150 mReplacementSpanSpanSet.init(mSpanned, start, limit);
160 TextUtils.getChars(text, start, limit, mChars, 0);
168 for (int i = start, inext; i < limit; i = inext) {
169 inext = mReplacementSpanSpanSet.getNextTransition(i, limit);
376 * @param limit the line-relative limit
386 drawRun(Canvas c, int start, int limit, boolean runIsRtl, float x, int top, int y, int bottom, boolean needWidth) argument
414 measureRun(int start, int offset, int limit, boolean runIsRtl, FontMetricsInt fmi) argument
817 handleReplacement(ReplacementSpan replacement, TextPaint wp, int start, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument
877 init(Spanned spanned, int start, int limit) argument
917 getNextTransition(int start, int limit) argument
954 handleRun(int start, int measureLimit, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument
[all...]
/frameworks/base/core/java/android/util/
H A DFinitePool.java53 FinitePool(PoolableManager<T> manager, int limit) { argument
54 if (limit <= 0) throw new IllegalArgumentException("The pool limit must be > 0");
57 mLimit = limit;
H A DJsonReader.java197 private int limit = 0; field in class:JsonReader
679 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') {
715 * Returns true once {@code limit - pos >= minimum}. If the data is
730 if (limit != pos) {
731 limit -= pos;
732 System.arraycopy(buffer, pos, buffer, 0, limit);
734 limit = 0;
739 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) {
740 limit
[all...]
H A DPools.java30 public static <T extends Poolable<T>> Pool<T> finitePool(PoolableManager<T> manager, int limit) { argument
31 return new FinitePool<T>(manager, limit);
/frameworks/base/core/java/android/webkit/
H A DWebViewCore.java633 * @param limit Is the new quota for an origin or new app cache max size.
635 private native void nativeSetNewStorageLimit(long limit); argument
/frameworks/base/core/java/com/android/internal/content/
H A DSelectionBuilder.java107 String having, String orderBy, String limit) {
109 orderBy, limit);
106 query(SQLiteDatabase db, String table, String[] columns, String groupBy, String having, String orderBy, String limit) argument
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp748 limitID = _env->GetFieldID(bufferClass, "limit", "I");
757 jint limit; local
764 limit = _env->GetIntField(buffer, limitID);
766 *remaining = (limit - position) << elementSizeShift;
/frameworks/base/core/jni/
H A Dandroid_database_SQLiteDatabase.cpp129 // The soft heap limit prevents the page cache allocations from growing
130 // beyond the given limit, no matter what the max page cache sizes are
131 // set to. The limit does not, as of 3.5.0, affect any other allocations.
382 static void native_setSqliteSoftHeapLimit(JNIEnv* env, jobject clazz, jint limit) { argument
383 sSqliteSoftHeapLimit = limit;
H A Dandroid_opengl_GLES10.cpp72 limitID = _env->GetFieldID(bufferClass, "limit", "I");
81 jint limit; local
88 limit = _env->GetIntField(buffer, limitID);
90 *remaining = (limit - position) << elementSizeShift;
H A Dandroid_opengl_GLES10Ext.cpp59 limitID = _env->GetFieldID(bufferClass, "limit", "I");
69 jint limit; local
76 limit = _env->GetIntField(buffer, limitID);
78 *remaining = (limit - position) << elementSizeShift;
H A Dandroid_opengl_GLES11.cpp66 limitID = _env->GetFieldID(bufferClass, "limit", "I");
76 jint limit; local
83 limit = _env->GetIntField(buffer, limitID);
85 *remaining = (limit - position) << elementSizeShift;
H A Dandroid_opengl_GLES11Ext.cpp68 limitID = _env->GetFieldID(bufferClass, "limit", "I");
78 jint limit; local
85 limit = _env->GetIntField(buffer, limitID);
87 *remaining = (limit - position) << elementSizeShift;
H A Dandroid_opengl_GLES20.cpp59 limitID = _env->GetFieldID(bufferClass, "limit", "I");
69 jint limit; local
76 limit = _env->GetIntField(buffer, limitID);
78 *remaining = (limit - position) << elementSizeShift;
H A Dcom_google_android_gles_jni_GLImpl.cpp111 limitID = _env->GetFieldID(bufferClass, "limit", "I");
120 jint limit; local
127 limit = _env->GetIntField(buffer, limitID);
129 *remaining = (limit - position) << elementSizeShift;

Completed in 1293 milliseconds

12