/frameworks/base/core/java/android/util/ |
H A D | IntArray.java | 84 final int count = values.mSize; 85 ensureCapacity(count); 87 System.arraycopy(values.mValues, 0, mValues, mSize, count); 88 mSize += count; 92 * Ensures capacity to append at least <code>count</code> values. 94 private void ensureCapacity(int count) { argument 96 final int minCapacity = currentSize + count;
|
H A D | LogWriter.java | 64 @Override public void write(char[] buf, int offset, int count) { argument 65 for(int i = 0; i < count; i++) {
|
H A D | LongArray.java | 83 final int count = values.mSize; 84 ensureCapacity(count); 86 System.arraycopy(values.mValues, 0, mValues, mSize, count); 87 mSize += count; 91 * Ensures capacity to append at least <code>count</code> values. 93 private void ensureCapacity(int count) { argument 95 final int minCapacity = currentSize + count;
|
/frameworks/base/core/java/android/view/ |
H A D | FocusFinder.java | 181 final int count = focusables.size(); 184 return getNextFocusable(focused, focusables, count); 186 return getPreviousFocusable(focused, focusables, count); 188 return focusables.get(count - 1); 243 private static View getNextFocusable(View focused, ArrayList<View> focusables, int count) { argument 246 if (position >= 0 && position + 1 < count) { 256 private static View getPreviousFocusable(View focused, ArrayList<View> focusables, int count) { argument 264 return focusables.get(count - 1);
|
H A D | GLES20Canvas.java | 692 final int count = (meshWidth + 1) * (meshHeight + 1); 693 checkRange(verts.length, vertOffset, count * 2); 696 checkRange(colors.length, colorOffset, count); 762 public void drawLines(float[] pts, int offset, int count, Paint paint) { argument 763 if (count < 4) return; 765 if ((offset | count) < 0 || offset + count > pts.length) { 768 nDrawLines(mRenderer, pts, offset, count, paint.mNativePaint); 772 int offset, int count, long paint); 828 public void drawPoints(float[] pts, int offset, int count, Pain argument 771 nDrawLines(long renderer, float[] points, int offset, int count, long paint) argument 834 nDrawPoints(long renderer, float[] points, int offset, int count, long paint) argument 873 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument 882 nDrawText(long renderer, char[] text, int index, int count, float x, float y, int bidiFlags, long paint, long typeface) argument 925 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument 935 nDrawTextOnPath(long renderer, char[] text, int index, int count, long path, float hOffset, float vOffset, int bidiFlags, long nativePaint, long typeface) argument 952 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, Paint paint) argument 962 nDrawTextRun(long renderer, char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, long nativePaint, long nativeTypeface) argument [all...] |
H A D | KeyEvent.java | 1240 * @param count Number of pairs as returned by event.getRepeatCount(). 1246 boolean onKeyMultiple(int keyCode, int count, KeyEvent event); argument 1279 * @param repeat A repeat count for down events (> 0 if this is after the 1280 * initial down) or event count for multiple events. 1302 * @param repeat A repeat count for down events (> 0 if this is after the 1303 * initial down) or event count for multiple events. 1327 * @param repeat A repeat count for down events (> 0 if this is after the 1328 * initial down) or event count for multiple events. 1356 * @param repeat A repeat count for down events (> 0 if this is after the 1357 * initial down) or event count fo [all...] |
H A D | ViewGroup.java | 930 final int count = mChildrenCount; 933 for (int i = 0; i < count; i++) { 958 final int count = mChildrenCount; 961 for (int i = 0; i < count; i++) { 1056 final int count = mChildrenCount; 1058 for (int i = 0; i < count; i++) { 1070 final int count = mChildrenCount; 1073 for (int i = 0; i < count; i++) { 1087 final int count = mChildrenCount; 1089 for (int i = 0; i < count; 4055 removeFromArray(int start, int count) argument 4103 attachLayoutAnimationParameters(View child, LayoutParams params, int index, int count) argument 4155 removeViewsInLayout(int start, int count) argument 4184 removeViews(int start, int count) argument 4284 removeViewsInternal(int start, int count) argument 4570 detachViewsFromParent(int start, int count) argument [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | LayoutAnimationController.java | 378 final float totalDelay = delay * params.count; 404 return params.count - 1 - params.index; 409 return (int) (params.count * mRandomizer.nextFloat()); 427 public int count; field in class:LayoutAnimationController.AnimationParameters
|
/frameworks/base/core/java/android/webkit/ |
H A D | FindActionModeCallback.java | 258 int count, 267 int count) { 256 beforeTextChanged(CharSequence s, int start, int count, int after) argument 264 onTextChanged(CharSequence s, int start, int before, int count) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | AbsListView.java | 251 * Running count of how many items are currently checked 699 * Track the item count from the last time we handled a data change. 993 final int count = idStates.size(); 994 final long[] ids = new long[count]; 996 for (int i = 0; i < count; i++) { 1159 final int count = getChildCount(); 1162 for (int i = 0; i < count; i++) { 1472 // child count have not changed we will avoid sending duplicate accessibility 1852 final int count = mCheckedIdStates.size(); 1853 for (int i = 0; i < count; 5544 sendToTextFilter(int keyCode, int count, KeyEvent event) argument 5863 beforeTextChanged(CharSequence s, int start, int count, int after) argument 5872 onTextChanged(CharSequence s, int start, int before, int count) argument 5908 onFilterComplete(int count) argument [all...] |
H A D | AutoCompleteTextView.java | 750 public void beforeTextChanged(CharSequence s, int start, int count, int after) { argument 753 public void onTextChanged(CharSequence s, int start, int before, int count) { argument 955 public void onFilterComplete(int count) { argument 956 updateDropDownForFilter(count); 959 private void updateDropDownForFilter(int count) { argument 972 if ((count > 0 || dropDownAlwaysVisible) && enoughToFilter) { 979 // count (when the query is being performed on the network). Future updates when some 1125 final int count = Math.min(adapter.getCount(), 20); 1126 CompletionInfo[] completions = new CompletionInfo[count]; 1129 for (int i = 0; i < count; [all...] |
H A D | CalendarView.java | 119 * @param count The shown week count. 123 public void setShownWeekCount(int count) { argument 124 mDelegate.setShownWeekCount(count); 130 * @return The shown week count. 520 void setShownWeekCount(int count); argument
|
H A D | CalendarViewLegacyDelegate.java | 342 public void setShownWeekCount(int count) { argument 343 if (mShownWeekCount != count) { 344 mShownWeekCount = count; 700 for (int i = mFirstDayOfWeek, count = mFirstDayOfWeek + mDaysPerWeek; i < count; i++) { 714 for (int i = 1, count = mDayNamesHeader.getChildCount(); i < count; i++) {
|
H A D | CalendarViewMaterialDelegate.java | 83 public void setShownWeekCount(int count) { argument
|
H A D | Filter.java | 194 public int count; field in class:Filter.FilterResults 205 * @param count the number of values computed by the filter 207 public void onFilterComplete(int count); argument 284 int count = args.results != null ? args.results.count : -1; 285 args.listener.onFilterComplete(count);
|
H A D | GridLayout.java | 722 private static int clip(Interval minorRange, boolean minorWasDefined, int count) { argument 724 if (count == 0) { 727 int min = minorWasDefined ? min(minorRange.min, count) : 0; 728 return min(size, count - min); 735 final int count = (axis.definedCount != UNDEFINED) ? axis.definedCount : 0; 739 int[] maxSizes = new int[count]; 755 final int minorSpan = clip(minorRange, minorWasDefined, count); 760 if (count != 0) { 767 if (minor + minorSpan <= count) { 834 int count 1284 setCount(int count) argument [all...] |
H A D | GridView.java | 249 final int count = getChildCount(); 256 final int startOffset = count > 0 ? 257 getChildAt(count - 1).getBottom() + verticalSpacing : paddingTop; 258 int position = mFirstPosition + count; 269 final int startOffset = count > 0 ? 505 final int count = getChildCount(); 506 if (mFirstPosition + count == mItemCount) { 507 final int bottom = getChildAt(count - 1).getBottom(); 1058 final int count = mItemCount; 1059 if (count > 1120 attachLayoutAnimationParameters(View child, ViewGroup.LayoutParams params, int index, int count) argument 1627 commonKey(int keyCode, int count, KeyEvent event) argument [all...] |
H A D | LinearLayout.java | 345 final int count = getVirtualChildCount(); 346 for (int i = 0; i < count; i++) { 358 if (hasDividerBeforeChildAt(count)) { 359 final View child = getVirtualChildAt(count - 1); 372 final int count = getVirtualChildCount(); 374 for (int i = 0; i < count; i++) { 391 if (hasDividerBeforeChildAt(count)) { 392 final View child = getVirtualChildAt(count - 1); 664 final int count = getVirtualChildCount(); 678 for (int i = 0; i < count; 952 forceUniformWidth(int count, int heightMeasureSpec) argument 1372 forceUniformHeight(int count, int widthMeasureSpec) argument [all...] |
H A D | ListView.java | 535 final int count = infos.size(); 537 for (int i = 0; i < count; i++) { 654 final int count = getChildCount(); 660 final int startOffset = count > 0 ? getChildAt(count - 1).getBottom() + mDividerHeight : 662 fillDown(mFirstPosition + count, startOffset); 669 final int startOffset = count > 0 ? getChildAt(0).getTop() - mDividerHeight : 2037 final int count = adapter.getCount(); 2041 while (position < count && !adapter.isEnabled(position)) { 2045 position = Math.min(position, count 2158 commonKey(int keyCode, int count, KeyEvent event) argument [all...] |
H A D | RemoteViewsAdapter.java | 395 int count; field in class:RemoteViewsAdapter.RemoteViewsMetaData 415 count = d.count; 423 count = 0; 549 // The meta data related to all the RemoteViews, ie. count, is stable, etc. 610 // Trim the cache if we go beyond the count 718 int count = 0; 720 count = mMetaData.count; 733 int effectiveUpperBound = Math.min(mPreloadUpperBound, count 1308 getVisibleWindow(int lower, int upper, int count) argument [all...] |
H A D | ViewAnimator.java | 152 final int count = getChildCount(); 153 for (int i = 0; i < count; i++) { 219 // Displayed is above child count, so float down to top of stack 231 public void removeViews(int start, int count) { argument 232 super.removeViews(start, count); 236 } else if (mWhichChild >= start && mWhichChild < start + count) { 242 public void removeViewsInLayout(int start, int count) { argument 243 removeViews(start, count);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ProcessStats.java | 877 long count = proc.getPssSampleCount(bucket); 878 if (count > 0) { 898 pw.print(count); 959 long count = getSysMemUsageValue(bucket, SYS_MEM_USAGE_SAMPLE_COUNT); 960 if (count > 0) { 972 pw.print(count); 1271 long count = proc.mStats.getLong(off, PSS_SAMPLE_COUNT); 1281 pw.print(count); 1311 // First initialize use count of all common processes. 1736 if (!readCheckedInt(in, STATE_COUNT, "state count")) { 2402 dumpServiceStats(PrintWriter pw, String prefix, String prefixInner, String headerPrefix, String header, ServiceState service, int count, int serviceType, int state, long startTime, long now, long totalTime, boolean dumpAll) argument [all...] |
H A D | RestrictionsPinActivity.java | 107 // Do the count down timer for less than a minute, otherwise just say try again later. 144 public void beforeTextChanged(CharSequence s, int start, int count, int after) { argument 148 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 404 Process.PROC_TAB_TERM|Process.PROC_OUT_LONG, // 1: count 414 Process.PROC_OUT_LONG, // 1: count 747 int count = mCount.get(); 748 out.writeInt(count); 768 public void addCountAtomic(long count) { argument 769 mCount.addAndGet((int)count); 832 void addCountLocked(long count) { argument 833 mCount += count; 876 // lock count, and are in "battery realtime" units. 1063 * The most recent reported count fro 1130 updateCurrentReportedCount(int count) argument 1844 KernelWakelockStats(int count, long totalTime, int version) argument [all...] |
H A D | LoggingPrintStream.java | 120 public synchronized void write(byte bytes[], int start, int count) { argument 129 int end = start + count;
|