Searched refs:count (Results 26 - 50 of 642) sorted by relevance

1234567891011>>

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
H A Dprobability_entry_test.cpp42 const int count = 0xABCD; local
44 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count);
54 EXPECT_EQ(count, decodedEntry.getHistoricalInfo()->getCount());
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DDrawingPreviewPlacerView.java57 final int count = mPreviews.size();
58 for (int i = 0; i < count; i++) {
64 final int count = mPreviews.size();
65 for (int i = 0; i < count; i++) {
82 final int count = mPreviews.size();
83 for (int i = 0; i < count; i++) {
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dnj_str.c55 NJ_UINT16 count = 0; local
59 count++;
61 return count;
92 NJ_UINT16 count = 0; local
96 count++;
99 return count;
/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DWidgetModel.java38 * @param count the number of widgets of the given type
41 void updateWidgetCount(Class widgetClass, int count, @StringRes int eventCategoryId) { argument
42 int delta = WidgetDAO.updateWidgetCount(mPrefs, widgetClass, count);
/packages/apps/Email/src/com/android/email/activity/setup/
H A DSpinnerOption.java27 for (int i = 0, count = spinner.getCount(); i < count; i++) {
/packages/apps/Launcher3/src/com/android/launcher3/badge/
H A DBadgeInfo.java71 * Returns whether the notification was added or its count changed.
78 if (prevKey.count == notificationKey.count) {
81 // Notification was updated with a new count.
82 mTotalCount -= prevKey.count;
83 mTotalCount += notificationKey.count;
84 prevKey.count = notificationKey.count;
89 mTotalCount += notificationKey.count;
100 mTotalCount -= notificationKey.count;
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DFolderItemView.java141 * Sets the unread count, taking care to hide/show the textview if the count is zero/non-zero.
143 private void setUnreadCount(int count) { argument
144 mUnreadCountTextView.setVisibility(count > 0 ? View.VISIBLE : View.GONE);
145 if (count > 0) {
146 mUnreadCountTextView.setText(Utils.getUnreadCountString(getContext(), count));
151 * Sets the unseen count, taking care to hide/show the textview if the count is zero/non-zero.
153 private void setUnseenCount(final int color, final int count) { argument
154 mUnseenCountTextView.setVisibility(count >
168 overrideUnreadCount(int count) argument
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
H A DTestContentResolver.java50 public void waitForChanges(int count) throws Exception { argument
52 waitForChanges(count, 1000);
58 * @param count Number of files to wait for.
61 public void waitForChanges(int count, int timeOut) throws Exception { argument
62 mNotificationSignal = new CountDownLatch(count);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DFocusOnlyTabWidget.java38 final int count = getTabCount();
39 for (int i = 0; i < count; ++i) {
61 final int count = getTabCount();
62 for (int i = 0; i < count; ++i) {
H A DPagedViewCellLayoutChildren.java48 final int count = getChildCount();
49 for (int i = 0; i < count; i++) {
89 final int count = getChildCount();
90 for (int i = 0; i < count; i++) {
111 int count = getChildCount();
114 if (mCenterContent && count > 0) {
118 for (int i = 0; i < count; i++) {
131 for (int i = 0; i < count; i++) {
150 final int count = getChildCount();
151 for (int i = 0; i < count;
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationKeyData.java35 public int count; field in class:NotificationKeyData
37 private NotificationKeyData(String notificationKey, String shortcutId, int count) { argument
40 this.count = Math.max(1, count);
/packages/apps/Settings/src/com/android/settings/applications/
H A DNotificationApps.java63 private void updateSummary(int count) { argument
64 if (count == 0) {
68 R.plurals.notification_summary, count, count));
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
H A Dmemorybuffer.h47 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); } argument
48 void Pop(size_t count) { stack_.template Pop<Ch>(count); } argument
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
H A Dlanguage_model_dict_content_global_counters.h66 void addToTotalCount(const int count) { argument
67 mTotalCount += count;
70 void updateMaxValueOfCounters(const int count) { argument
71 mMaxValueOfCounters = std::max(count, mMaxValueOfCounters);
/packages/services/BuiltInPrintService/src/com/android/bips/util/
H A DFileUtils.java47 int count;
48 while ((count = in.read(buffer)) > 0) {
49 if (count > 0) out.write(buffer, 0, count);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMergedAdapter.java90 int count = 0;
92 count += adapter.getCount();
94 return count;
109 int count = 0;
113 int newCount = count + a.getCount();
115 return new LocalAdapterPosition<T>(a, position - count);
117 count = newCount;
139 int count = 0;
141 count += adapter.getViewTypeCount();
143 return count;
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapMessageListing.java119 public void segment(int count, int offset) { argument
120 count = Math.min(count, mList.size() - offset);
121 if (count > 0) {
122 mList = mList.subList(offset, offset + count);
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DStrings.java142 * @param count the number of times to repeat it; a nonnegative integer
143 * @return a string containing {@code string} repeated {@code count} times
144 * (the empty string if {@code count} is zero)
145 * @throws IllegalArgumentException if {@code count} is negative
147 public static String repeat(String string, int count) { argument
149 checkArgument(count >= 0, "invalid count: %s", count);
153 StringBuilder builder = new StringBuilder(string.length() * count);
154 for (int i = 0; i < count;
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
H A DSwappedDataInputStream.java141 int count = read( data, location, remaining );
143 if( -1 == count )
148 remaining -= count;
240 * @param count the number of bytes to skip
245 public int skipBytes( int count )
248 return (int)in.skip( count );
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/
H A DMockUiProviderTests.java78 int count = 0;
94 switch (count) {
129 count++;
132 count = 0;
139 switch (count) {
147 count++;
151 assertEquals(2, count);
152 count = 0;
162 switch (count) {
176 count
[all...]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
H A Dstack.h111 RAPIDJSON_FORCEINLINE T* Push(size_t count = 1) {
113 if (stackTop_ + sizeof(T) * count >= stackEnd_)
114 Expand<T>(count);
117 stackTop_ += sizeof(T) * count;
122 T* Pop(size_t count) { argument
123 RAPIDJSON_ASSERT(GetSize() >= count * sizeof(T));
124 stackTop_ -= count * sizeof(T);
151 void Expand(size_t count) { argument
162 size_t newSize = GetSize() + sizeof(T) * count;
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
H A DLegacyVoicemailNotificationReceiver.java74 int count = intent.getIntExtra(TelephonyManager.EXTRA_NOTIFICATION_COUNT, -1);
76 if (!hasVoicemailCountChanged(context, phoneAccountHandle, count)) {
79 "voicemail count hasn't changed, ignoring");
83 if (count == -1) {
84 // Carrier might not send voicemail count. Missing extra means there are unknown numbers of
87 count = 1;
90 if (count == 0) {
115 count,
128 "User locked, bypassing voicemail count check");
133 // Carrier does not report voicemail count
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DCopyUtils.java198 int count = 0;
202 count += n;
204 return count;
223 int count = 0;
227 count += n;
229 return count;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
H A DCommonNicknameCache.java76 int count = cursor.getCount();
77 for (int i = 0; i < count; i++) {
142 int count = cursor.getCount();
143 if (count > 0) {
144 clusters = new String[count];
145 for (int i = 0; i < count; i++) {
/packages/apps/Contacts/src/com/android/contacts/logging/
H A DListEvent.java32 public int count; field in class:ListEvent
89 .add("count", count)

Completed in 1557 milliseconds

1234567891011>>