Searched defs:limit (Results 1 - 25 of 66) sorted by relevance

123

/frameworks/av/media/libmedia/
H A DMediaUtils.cpp56 ALOGV("requested limit: %zu", maxMem);
65 ALOGV("actual limit: %zu", maxMem);
67 struct rlimit limit; local
68 getrlimit(RLIMIT_AS, &limit);
69 ALOGV("original limits: %lld/%lld", (long long)limit.rlim_cur, (long long)limit.rlim_max);
70 limit.rlim_cur = maxMem;
71 setrlimit(RLIMIT_AS, &limit);
72 limit.rlim_cur = -1;
73 limit
[all...]
/frameworks/ex/common/java/com/android/common/
H A DSearch.java73 * @param limit The query limit to pass to the suggestion provider. This is advisory,
74 * the returned cursor may contain more rows. Pass {@code -1} for no limit.
78 String query, int limit) {
113 if (limit > 0) {
115 String.valueOf(limit));
77 getSuggestions(Context context, SearchableInfo searchable, String query, int limit) argument
/frameworks/av/media/utils/
H A DMemoryLeakTrackUtil.cpp55 std::string dumpMemoryAddresses(size_t limit) argument
74 if (count > limit) count = limit;
/frameworks/base/core/java/android/text/
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 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] == ' ' || w[i + 1] == 0.0f)) {
285 return limit - i - 1;
289 float measure(int start, int limit) { argument
292 for (int i = start; i < limit; ++i) {
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 DSpannableStringInternal.java90 int limit = src.mSpanCount;
91 for (int i = 0; i < limit; i++) {
104 for (int i = 0, j = 0; i < limit; i++) {
372 public int nextSpanTransition(int start, int limit, Class kind) { argument
385 if (st > start && st < limit && kind.isInstance(spans[i]))
386 limit = st;
387 if (en > start && en < limit && kind.isInstance(spans[i]))
388 limit = en;
391 return limit;
/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/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerDataHelper.java108 public Cursor query(String tag, int limit) { argument
117 int pos = (cursor.getCount() < limit ? 0 : cursor.getCount() - limit);
123 * Retrieves a cursor that starts at the last limit rows
125 * @param limit
128 public Cursor query(int limit) { argument
129 return query(null, limit);
133 * Query tracker data, filtering by given tag. mo limit to number of rows
/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/base/tools/layoutlib/bridge/src/android/text/
H A DOptimizingLineBreaker.java183 private int desperateBreak(int start, int limit, float maxWidth, argument
188 for (int i = start; i < limit; i++) {
/frameworks/base/core/java/android/database/sqlite/
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/tests/coretests/src/android/text/
H A DTextUtilsTest.java537 public int nextSpanTransition(int start, int limit, Class type) { argument
/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustArchive.java114 public void dump(PrintWriter writer, int limit, int userId, String linePrefix, argument
118 while (iter.hasNext() && count < limit) {
/frameworks/base/tools/incident_report/
H A Dmain.cpp59 CodedInputStream::Limit limit = in->PushLimit(size); local
61 in->PopLimit(limit);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBidiRenderer.java49 int limit; field in class:BidiRenderer.ScriptRun
54 public ScriptRun(int start, int limit, boolean isRtl) { argument
56 this.limit = limit;
112 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, argument
114 Bidi bidi = new Bidi(mText, start, null, 0, limit - start, getIcuFlags(bidiFlags));
130 * @param limit index of the first character that should not be rendered.
139 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, argument
143 for (ScriptRun run : getScriptRuns(mText, start, limit, isRtl, mFonts)) {
146 renderScript(run.start, run.limit, ru
157 renderScript(int start, int limit, Font preferredFont, int flag, float[] advances, int advancesIndex, boolean draw) argument
218 render(int start, int limit, Font font, int flag, float[] advances, int advancesIndex, boolean draw) argument
274 getScriptRuns(char[] text, int start, int limit, boolean isRtl, List<Font> fonts) argument
[all...]
/frameworks/ex/framesequence/jni/
H A DFrameSequenceJNI.cpp63 jobject buf, jint offset, jint limit) {
70 limit,
62 nativeDecodeByteBuffer(JNIEnv* env, jobject clazz, jobject buf, jint offset, jint limit) argument
/frameworks/av/media/libstagefright/id3/
H A DID3.cpp846 // return includes terminator; if unterminated, returns > limit
847 static size_t StringSize(const uint8_t *start, size_t limit, uint8_t encoding) { argument
851 return strnlen((const char *)start, limit) + 1;
856 while ((n+1 < limit) && (start[n] != '\0' || start[n + 1] != '\0')) {
/frameworks/av/media/libstagefright/rtsp/
H A DARTPWriter.cpp43 static int UniformRand(int limit) { argument
44 return ((double)rand() * limit) / RAND_MAX;
/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/media/jni/
H A Dandroid_media_MediaDescrambler.cpp57 JNIEnv *env, jobject byteBuf, jint offset, jint limit, size_t length,
82 if ((jint)length + offset > limit) {
56 getBufferAndSize( JNIEnv *env, jobject byteBuf, jint offset, jint limit, size_t length, void **outPtr, jbyteArray *outByteArray) argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
H A DMediaPlayerPerformance.java369 public boolean validateMemoryResult(int startPid, int startMemory, int limit) argument
386 if (memDiff > limit) return false;
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DGsmAlphabet.java968 * after <code>limit</code> septets have been reached, starting at
970 * into units within the SMS message size limit.
974 * @param limit maximum septets to include,
982 findGsmSeptetLimitIndex(String s, int start, int limit, int langTable, int langShiftTable) { argument
1001 if (accumulator > limit) {
/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java184 * @param limit The number of sockets to accept
186 public void setAcceptLimit(int limit) { argument
187 acceptLimit = limit;
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A Dcommon.cpp71 limitID = _env->GetFieldID(bufferClass, "limit", "I");
80 jint limit; local
85 limit = _env->GetIntField(buffer, limitID);
87 *remaining = (limit - position) << elementSizeShift;

Completed in 457 milliseconds

123