[go: nahoru, domu]

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

123

/frameworks/av/media/libmedia/
H A DMediaUtils.cpp51 ALOGV("requested limit: %zu", maxMem);
60 ALOGV("actual limit: %zu", maxMem);
62 struct rlimit limit; local
63 getrlimit(RLIMIT_AS, &limit);
64 ALOGV("original limits: %lld/%lld", (long long)limit.rlim_cur, (long long)limit.rlim_max);
65 limit.rlim_cur = maxMem;
66 setrlimit(RLIMIT_AS, &limit);
67 limit.rlim_cur = -1;
68 limit
[all...]
H A DMemoryLeakTrackUtil.cpp55 std::string dumpMemoryAddresses(size_t limit) argument
74 if (count > limit) count = limit;
/frameworks/av/media/libstagefright/foundation/
H A DADebug.cpp128 uint64_t limit, uint64_t plus, uint64_t timeDivisor) {
140 UNUSED(limit);
183 bool enable = allow && (counter % modulo < limit);
126 getExperimentFlag( bool allow, const char *name, uint64_t modulo, uint64_t limit, uint64_t plus, uint64_t timeDivisor) argument
/frameworks/av/media/libstagefright/omx/
H A DOMXNodeInstance.cpp120 sp<ABuffer> codec = getBuffer(header, false /* backup */, true /* limit */);
136 sp<ABuffer> getBuffer(const OMX_BUFFERHEADERTYPE *header, bool backup, bool limit) { argument
143 if (limit) {
866 header, !updateCodecBuffer /* backup */, false /* limit */);
924 header, portIndex == kPortIndexInput /* backup */, false /* limit */);
1253 sp<ABuffer> backup = buffer_meta->getBuffer(header, true /* backup */, false /* limit */);
1254 sp<ABuffer> codec = buffer_meta->getBuffer(header, false /* backup */, false /* limit */);
/frameworks/av/media/libstagefright/rtsp/
H A DARTPWriter.cpp43 static int UniformRand(int limit) { argument
44 return ((double)rand() * limit) / RAND_MAX;
H A DMyTransmitter.h49 static int uniformRand(int limit) { argument
50 return ((double)rand() * limit) / RAND_MAX;
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp2707 status_t Parameters::getFilteredSizes(Size limit, Vector<Size> *sizes) { argument
2724 sc.width <= limit.width && sc.height <= limit.height) {
2740 if (filteredSize.width <= limit.width &&
2741 filteredSize.height <= limit.height) {
/frameworks/base/core/java/android/app/
H A DSearchManager.java465 * Query parameter added to suggestion queries to limit the number of suggestions returned.
466 * This limit is only advisory and suggestion providers may chose to ignore it.
468 public final static String SUGGEST_PARAMETER_LIMIT = "limit";
872 * @param limit The query limit to pass to the suggestion provider. This is advisory,
873 * the returned cursor may contain more rows. Pass {@code -1} for no limit.
878 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { argument
913 if (limit > 0) {
914 uriBuilder.appendQueryParameter(SUGGEST_PARAMETER_LIMIT, String.valueOf(limit));
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDatabase.java194 * The default value of this limit is 50000. A modern workstation can evaluate
1027 * @param limit Limits the number of rows returned by the query,
1035 String having, String orderBy, String limit) {
1037 groupBy, having, orderBy, limit, null);
1065 * @param limit Limits the number of rows returned by the query,
1076 String having, String orderBy, String limit, CancellationSignal cancellationSignal) {
1078 groupBy, having, orderBy, limit, cancellationSignal);
1107 * @param limit Limits the number of rows returned by the query,
1116 String having, String orderBy, String limit) {
1118 selectionArgs, groupBy, having, orderBy, limit, nul
1033 query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument
1074 query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit, CancellationSignal cancellationSignal) argument
1113 queryWithFactory(CursorFactory cursorFactory, boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument
1156 queryWithFactory(CursorFactory cursorFactory, boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit, CancellationSignal cancellationSignal) argument
1238 query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument
[all...]
H A DSQLiteQueryBuilder.java197 * @param limit Limits the number of rows returned by the query,
203 String groupBy, String having, String orderBy, String limit) {
208 if (!TextUtils.isEmpty(limit) && !sLimitPattern.matcher(limit).matches()) {
209 throw new IllegalArgumentException("invalid LIMIT clauses:" + limit);
229 appendClause(query, " LIMIT ", limit);
295 null /* limit */, null /* cancellationSignal */);
324 * @param limit Limits the number of rows returned by the query,
332 String having, String sortOrder, String limit) {
334 groupBy, having, sortOrder, limit, nul
201 buildQueryString( boolean distinct, String tables, String[] columns, String where, String groupBy, String having, String orderBy, String limit) argument
330 query(SQLiteDatabase db, String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) argument
372 query(SQLiteDatabase db, String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit, CancellationSignal cancellationSignal) argument
433 buildQuery( String[] projectionIn, String selection, String groupBy, String having, String sortOrder, String limit) argument
469 buildQuery( String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) argument
583 buildUnionQuery(String[] subQueries, String sortOrder, String limit) argument
[all...]
/frameworks/base/core/java/android/os/
H A DDebug.java1723 * Establish an object allocation limit in the current thread.
1732 public static int setAllocationLimit(int limit) { argument
1737 * Establish a global object allocation limit. This feature was
1745 public static int setGlobalAllocationLimit(int limit) { argument
2230 * @param limit the number of leaks to provide info on, 0 to only get a summary.
2234 public static native String getUnreachableMemory(int limit, boolean contents); argument
H A DStrictMode.java327 * Just to limit ourselves out of paranoia.
1630 int limit = policy.classInstanceLimit.get(klass);
1632 if (instances > limit) {
1633 Throwable tr = new InstanceCountViolation(klass, instances, limit);
2272 final int limit;
2288 limit = newExpected + 1;
2293 if (actual <= limit) {
2310 if (instances > limit) {
2311 Throwable tr = new InstanceCountViolation(klass, instances, limit);
2549 public InstanceCountViolation(Class klass, long instances, int limit) { argument
[all...]
/frameworks/base/core/java/android/provider/
H A DContactsContract.java144 public static final String LIMIT_PARAM_KEY = "limit";
1876 * .appendQueryParameter(&quot;limit&quot;, &quot;3&quot;)
1943 * @param limit The maximum number of suggested aggregations
1947 public Builder setLimit(int limit) { argument
1948 mLimit = limit;
1961 builder.appendQueryParameter("limit", String.valueOf(mLimit));
3231 * determine this limit, and should restrict the number of items inserted in any given
3232 * transaction correspondingly. Insertion of more items beyond the limit will
/frameworks/base/core/java/android/text/
H A DLayout.java792 int limit = start + (runs[i+1] & RUN_LENGTH_MASK);
793 if (offset >= start && offset < limit) {
818 int limit = start + (runs[i+1] & RUN_LENGTH_MASK);
819 if (offset >= start && offset < limit) {
820 return TextUtils.packRangeInLong(start, limit);
836 int limit = start + (runs[i+1] & RUN_LENGTH_MASK);
837 if (limit > lineEnd) {
838 limit = lineEnd;
840 if (offset >= start && offset < limit) {
850 // Offset was limit o
2022 nextSpanTransition(int start, int limit, Class type) argument
[all...]
H A DMeasuredText.java264 int breakText(int limit, boolean forwards, float width) { argument
268 while (i < limit) {
276 int i = limit - 1;
282 while (i < limit - 1 && mChars[i + 1] == ' ') i++;
283 return limit - i - 1;
287 float measure(int start, int limit) { argument
290 for (int i = start; i < limit; ++i) {
H A DSpanSet.java46 public void init(Spanned spanned, int start, int limit) { argument
47 final E[] allSpans = spanned.getSpans(start, limit, classType);
100 int getNextTransition(int start, int limit) { argument
104 if (spanStart > start && spanStart < limit) limit = spanStart;
105 if (spanEnd > start && spanEnd < limit) limit = spanEnd;
107 return limit;
H A DSpannableStringBuilder.java1100 * equal to <code>limit</code> where a span of the specified type
1103 public int nextSpanTransition(int start, int limit, Class kind) { argument
1104 if (mSpanCount == 0) return limit;
1108 return nextSpanTransitionRec(start, limit, kind, treeRoot());
1111 private int nextSpanTransitionRec(int start, int limit, Class kind, int i) { argument
1116 limit = nextSpanTransitionRec(start, limit, kind, left);
1122 if (st > start && st < limit && kind.isInstance(mSpans[i]))
1123 limit = st;
1124 if (en > start && en < limit
[all...]
H A DSpannableStringInternal.java89 int limit = src.mSpanCount;
90 for (int i = 0; i < limit; i++) {
103 for (int i = 0, j = 0; i < limit; i++) {
363 public int nextSpanTransition(int start, int limit, Class kind) { argument
376 if (st > start && st < limit && kind.isInstance(spans[i]))
377 limit = st;
378 if (en > start && en < limit && kind.isInstance(spans[i]))
379 limit = en;
382 return limit;
H A DSpanned.java193 * object of class <code>type</code> begins or ends, or <code>limit</code>
195 * than <code>limit</code>. Specify <code>null</code> or Object.class for
198 public int nextSpanTransition(int start, int limit, Class type); argument
H A DTextLine.java128 * @param limit the limit of the line relative to the text
134 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, argument
139 mLen = limit - start;
151 mReplacementSpanSpanSet.init(mSpanned, start, limit);
161 TextUtils.getChars(text, start, limit, mChars, 0);
169 for (int i = start, inext; i < limit; i = inext) {
170 inext = mReplacementSpanSpanSet.getNextTransition(i, limit);
347 * @param limit the line-relative limit
357 drawRun(Canvas c, int start, int limit, boolean runIsRtl, float x, int top, int y, int bottom, boolean needWidth) argument
385 measureRun(int start, int offset, int limit, boolean runIsRtl, FontMetricsInt fmi) argument
786 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
851 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 DJsonReader.java197 private int limit = 0; field in class:JsonReader
682 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') {
718 * Returns true once {@code limit - pos >= minimum}. If the data is
733 if (limit != pos) {
734 limit -= pos;
735 System.arraycopy(buffer, pos, buffer, 0, limit);
737 limit = 0;
742 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) {
743 limit
[all...]
/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/java/com/android/internal/widget/
H A DViewPager.java675 * limit will be recreated from the adapter when needed.
684 * <p>You should keep this limit low, especially if your pages have complex layouts.
687 * @param limit How many pages will be kept offscreen in an idle state.
689 public void setOffscreenPageLimit(int limit) { argument
690 if (limit < DEFAULT_OFFSCREEN_PAGES) {
691 Log.w(TAG, "Requested offscreen page limit " + limit + " too small; defaulting to " +
693 limit = DEFAULT_OFFSCREEN_PAGES;
695 if (limit != mOffscreenPageLimit) {
696 mOffscreenPageLimit = limit;
[all...]
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp827 limitID = GetFieldIDOrDie(env, bufferClass, "limit", "I");
835 jint limit; local
840 limit = _env->GetIntField(buffer, limitID);
842 *remaining = (limit - position) << elementSizeShift;
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES10.cpp97 limitID = _env->GetFieldID(bufferClass, "limit", "I");
106 jint limit; local
111 limit = _env->GetIntField(buffer, limitID);
113 *remaining = (limit - position) << elementSizeShift;

Completed in 518 milliseconds

123