Home
last modified time | relevance | path

Searched refs:second (Results 1 – 25 of 169) sorted by relevance

1234567

/packages/services/Car/vehicle_monitor_service/
DProcessMonitor.cpp39 return a.second->delta_time > b.second->delta_time; in procDeltaCpuCmp()
44 return a.second->delta_rss > b.second->delta_rss; in procDeltaMemCmp()
49 return a.second->delta_wbytes > b.second->delta_wbytes; in procDeltaWbytesCmp()
54 return (a.second->utime + a.second->utime) > (b.second->stime + b.second->stime); in procCpuCmp()
59 return a.second->rss > b.second->rss; in procMemCmp()
64 return a.second->wbytes > b.second->wbytes; in procWbytesCmp()
119 it->second->name.c_str(), in dumpTopProcesses()
121 it->second->delta_time, in dumpTopProcesses()
122 it->second->delta_rss, in dumpTopProcesses()
123 it->second->delta_wbytes, in dumpTopProcesses()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaListTests.java369 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataRemoteInsert() local
373 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataRemoteInsert()
374 assertEquals("Unexpected change when merging", second, merged); in testMergeDataRemoteInsert()
380 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteInsert() local
394 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteInsert()
405 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteDelete() local
420 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteDelete()
431 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalDeleteRemoteUpdate() local
445 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalDeleteRemoteUpdate()
456 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalInsertRemoteInsert() local
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/
DPreferenceListCacheTest.java70 Preference second = createPreference("second"); in testCacheAndRestoreAllPreferences() local
72 Preference[] preferences = new Preference[] {first, second, third}; in testCacheAndRestoreAllPreferences()
77 assertEquals(second, mCache.getCachedPreference("second")); in testCacheAndRestoreAllPreferences()
87 Preference second = createPreference("second"); in testRestoreSomePreferences() local
89 Preference[] preferences = new Preference[] {first, second, third}; in testRestoreSomePreferences()
94 assertEquals(second, mCache.getCachedPreference("second")); in testRestoreSomePreferences()
105 Preference second = createPreference("second"); in testRestoreZeroPreferences() local
107 Preference[] preferences = new Preference[] {first, second, third}; in testRestoreZeroPreferences()
116 verify(mGroup).removePreference(eq(second)); in testRestoreZeroPreferences()
123 Preference second = createPreference("first"); in testKeyCollisionThrows() local
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dtrie_map_test.cpp109 EXPECT_EQ(v.second, trieMap.getRoot(v.first).mValue); in TEST()
162 secondLevelKey.second, secondLevel); in TEST()
165 threeLevelMap[secondLevelKey.first][secondLevelKey.second][key] = value; in TEST()
169 EXPECT_EQ(firstLevelEntry.second, trieMap.getRoot(firstLevelEntry.first).mValue); in TEST()
175 for (const auto &secondLevelEntry : firstLevelEntry.second) { in TEST()
176 EXPECT_EQ(secondLevelEntry.second, in TEST()
184 for (const auto &secondLevelEntry : firstLevelEntry.second) { in TEST()
188 for (const auto &thirdLevelEntry : secondLevelEntry.second) { in TEST()
189 EXPECT_EQ(thirdLevelEntry.second, in TEST()
216 EXPECT_TRUE(secondLevelEntry.second.empty()); in TEST()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/
DDateTime.java39 private final int second; field in DateTime
42 …public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZ… in DateTime() argument
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone); in DateTime()
49 this.second = second; in DateTime()
69 …public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, i… in convertToDate() argument
71 c.set(year, month - 1, day, hour, minute, second); in convertToDate()
107 return second; in getSecond()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_read_write_utils.cpp101 return it->second.data(); in readCodePointTable()
143 if (it->first.empty() || it->second.empty()) { in writeHeaderAttributes()
152 if (!buffer->writeCodePointsAndAdvancePosition(&(it->second.at(0)), it->second.size(), in writeHeaderAttributes()
197 return it->second; in readCodePointVectorAttributeValue()
224 for (size_t i = 0; i < it->second.size(); ++i) { in readIntAttributeValueInner()
225 if (i == 0 && it->second.at(i) == '-') { in readIntAttributeValueInner()
228 if (!isdigit(it->second.at(i))) { in readIntAttributeValueInner()
233 value += it->second.at(i) - '0'; in readIntAttributeValueInner()
/packages/apps/TV/jni/
Dtunertvinput_jni.cpp45 delete it->second; in Java_com_android_tv_tuner_TunerHal_nativeFinalize()
64 dvbManager = it->second; in Java_com_android_tv_tuner_TunerHal_nativeTune()
80 it->second->closeAllDvbPidFilter(); in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters()
94 it->second->stopTune(); in Java_com_android_tv_tuner_TunerHal_nativeStopTune()
108 it->second->startTsPidFilter(env, thiz, pid, filterType); in Java_com_android_tv_tuner_TunerHal_nativeAddPidFilter()
125 DvbManager *dvbManager = it->second; in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
155 it->second->setHasPendingTune(hasPendingTune); in Java_com_android_tv_tuner_TunerHal_nativeSetHasPendingTune()
169 return it->second->getDeliverySystemType(env, thiz); in Java_com_android_tv_tuner_TunerHal_nativeGetDeliverySystemType()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp343 || itPP->second > it->second + ProximityInfoParams::MARGIN_FOR_PREV_LOCAL_MIN); in isPrevLocalMin()
345 || itC->second > it->second + ProximityInfoParams::MARGIN_FOR_PREV_LOCAL_MIN); in isPrevLocalMin()
771 << it->second in updateAlignPointProbabilities()
778 << it->second in updateAlignPointProbabilities()
811 } else if(it->second < ProximityInfoParams::MIN_PROBABILITY) { in updateAlignPointProbabilities()
815 it->second = -logf(it->second); in updateAlignPointProbabilities()
885 if (it2 != (*charProbabilities)[index1].end() && it->second < it2->second) { in suppressCharProbabilities()
886 const float newProbability = it->second * suppressionRate; in suppressCharProbabilities()
887 const float suppression = it->second - newProbability; in suppressCharProbabilities()
888 it->second = newProbability; in suppressCharProbabilities()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java227 final Intent result = mActivity.setResult.getLastValue().second; in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
253 final Intent result = mActivity.setResult.getLastValue().second; in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree()
283 final Intent result = mActivity.setResult.getLastValue().second; in testSaveDocument_SetsCorrectResultAndFinishes()
323 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent()
350 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection()
375 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen()
402 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen_MultipleSelection()
427 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionCreate()
445 assertEquals(intent, mActivity.setResult.getLastValue().second); in testOnAppPickedResult_OnOK()
464 assertEquals((long) mActivity.startActivityForResult.getLastValue().second, in testOpenAppRoot()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_and_options.h48 return it->second; in getOptionValue()
53 return it != mArguments.end() && !it->second.empty(); in hasArgument()
58 ASSERT(it != mArguments.end() && !it->second.empty()); in getSingleArgument()
59 return it->second.front(); in getSingleArgument()
65 return it->second; in getVariableLengthArguments()
Darguments_parser.cpp54 const OptionSpec &spec = option.second; in printUsage()
75 const OptionSpec &spec = option.second; in printUsage()
102 const OptionSpec &optionSpec = entry.second; in parseArguments()
123 if (it->second.needsValue()) { in parseArguments()
152 const size_t actualcount = it == arguments.end() ? 0 : it->second.size(); in parseArguments()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java83 private int second; field in DateTimeParser.Time
86 public Time(int hour, int minute, int second, int zone) { in Time() argument
89 this.second = second; in Time()
95 public int getSecond() { return second; } in getSecond()
291 s = second(); in time()
316 final public int second() throws ParseException { in second() method in DateTimeParser
/packages/apps/Camera2/src/com/android/camera/one/v2/
DImageCaptureManager.java97 public void onImageMetadataChange(Key<?> key, Object second, Object newValue, in onImageMetadataChange() argument
432 final Object oldValue = (oldEntry != null) ? oldEntry.second : null; in updateMetadataChangeListeners()
595 CapturedImage image = pinnedImage.second;
704 CapturedImage img = toCapture.second;
735 if (toCapture != null && toCapture.second != null) {
736 pinnedImage = toCapture.second.tryGetImage();
737 imageCaptureResult = toCapture.second.tryGetMetadata();
/packages/apps/Dialer/java/com/android/dialer/calllog/database/contract/
DAnnotatedCallLogContract.java130 private static String[] concat(String[] first, String[] second) { in concat() argument
131 String[] result = Arrays.copyOf(first, first.length + second.length); in concat()
132 System.arraycopy(second, 0, result, first.length, second.length); in concat()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapUtility.java104 int second = Integer.parseInt(range.substring(colonPos + 1)); in getImapRangeValues() local
105 if (first < second) { in getImapRangeValues()
106 for (int i = first; i <= second; i++) { in getImapRangeValues()
110 for (int i = first; i >= second; i--) { in getImapRangeValues()
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapUtility.java108 int second = Integer.parseInt(range.substring(colonPos + 1)); in getImapRangeValues() local
109 if (first < second) { in getImapRangeValues()
110 for (int i = first; i <= second; i++) { in getImapRangeValues()
114 for (int i = first; i >= second; i--) { in getImapRangeValues()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/
DSharedPreferenceLoggerTest.java176 return pair -> pair.first == tag && Platform.isInstanceOfType(pair.second, clazz); in pairMatches()
181 && Platform.isInstanceOfType(pair.second, Integer.class) in pairMatches()
182 && pair.second.equals((bool ? 1 : 0)); in pairMatches()
187 && Platform.isInstanceOfType(pair.second, Integer.class) in pairMatches()
188 && pair.second.equals(val); in pairMatches()
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
DBandController.java962 …l.RelativeCoordinate min(GridModel.RelativeCoordinate first, GridModel.RelativeCoordinate second) { in min() argument
963 return first.compareTo(second) < 0 ? first : second; in min()
966 …l.RelativeCoordinate max(GridModel.RelativeCoordinate first, GridModel.RelativeCoordinate second) { in max() argument
967 return first.compareTo(second) > 0 ? first : second; in max()
995 RelativePoint first, RelativePoint second) { in areItemsCoveredByBand() argument
996 return doesCoordinateLocationCoverItems(first.xLocation, second.xLocation) && in areItemsCoveredByBand()
997 doesCoordinateLocationCoverItems(first.yLocation, second.yLocation); in areItemsCoveredByBand()
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java99 assertNull(intents.second); in testImIntentCustom()
117 assertNull(intents.second); in testImIntent()
136 final Intent secondaryIntent = intents.second; in testImIntentWithAudio()
158 final Intent secondaryIntent = intents.second; in testImIntentWithVideo()
183 final Intent secondaryIntent = intents.second; in testImEmailIntent()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java37 int day, int hour, int minute, int second) throws Exception { in testParseDateTimesHelper() argument
44 assertEquals(second, cal.get(Calendar.SECOND)); in testParseDateTimesHelper()
60 int day, int hour, int minute, int second, int millis) throws Exception { in testParseEmailDateTimeHelper() argument
62 hour, minute, second); in testParseEmailDateTimeHelper()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
DViewModeTests.java39 ViewMode second = new ViewMode(); in testBundleSaveRestorePreserveState() local
40 second.handleRestore(state); in testBundleSaveRestorePreserveState()
41 assertEquals(ViewMode.CONVERSATION_LIST, second.getMode()); in testBundleSaveRestorePreserveState()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DAddWorkspaceItemsTaskTest.java76 .isRegionVacant(spaceFound.second[0], spaceFound.second[1], 1, 1)); in testFindSpaceForItem_prefers_second()
83 .isRegionVacant(spaceFound.second[0], spaceFound.second[1], 2, 3)); in testFindSpaceForItem_prefers_second()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRoutineWatchEvaluatorTest.java248 private int hourMinuteSecondToSec(int hour, int minute, int second) { in hourMinuteSecondToSec() argument
249 return hour * 60 * 60 + minute * 60 + second; in hourMinuteSecondToSec()
256 private Calendar todayAtHourMinSec(int hour, int minute, int second) { in todayAtHourMinSec() argument
260 time.set(Calendar.SECOND, second); in todayAtHourMinSec()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestDocumentsAccess.java94 assertEquals(mimeType, mLastCreatedDoc.second.mimeType); in assertCreatedDocument()
95 assertEquals(displayName, mLastCreatedDoc.second.displayName); in assertCreatedDocument()
99 return mLastCreatedDoc.second.derivedUri; in getLastCreatedDocumentUri()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/
DViewInfoActivityTest.java136 (ViewEmergencyInfoFragment) fragments.get(0).second; in testMedicalInfoSet()
157 (ViewEmergencyContactsFragment) fragments.get(0).second; in testEmergencyContactsSet()
185 (ViewEmergencyInfoFragment) fragments.get(0).second; in testMedicalInfoAndEmergencyContactsSet()
188 (ViewEmergencyContactsFragment) fragments.get(1).second; in testMedicalInfoAndEmergencyContactsSet()

1234567