Home
last modified time | relevance | path

Searched refs:usageType (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageAdvanced.java94 final int usageType = extractUsageType(entry.sipper);
96 PowerUsageData usageData = mBatteryDataMap.get(usageType);
97 Preference pref = findPreference(String.valueOf(usageType));
212 pref.setKey(String.valueOf(batteryData.usageType)); in refreshPowerUsageDataList()
251 return powerUsageData.usageType == UsageType.UNACCOUNTED in shouldHideCategory()
252 || powerUsageData.usageType == UsageType.OVERCOUNTED in shouldHideCategory()
253 || (powerUsageData.usageType == UsageType.USER && mUserManager.getUserCount() == 1) in shouldHideCategory()
254 || (powerUsageData.usageType == UsageType.CELL in shouldHideCategory()
306 if (usageData.usageType == UsageType.UNACCOUNTED) { in calculateHiddenPower()
322 usageData.summary = usageData.usageType == UsageType.IDLE ? timeSequence in updateUsageDataSummary()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageAdvancedTest.java200 switch (data.usageType) { in testParsePowerUsageData_PercentageCalculatedCorrectly()
228 mPowerUsageData.usageType = UsageType.IDLE; in testUpdateUsageDataSummary_typeIdle_showUsageTime()
284 mPowerUsageData.usageType = UsageType.UNACCOUNTED; in testShouldHideCategory_typeUnAccounted_returnTrue()
291 mPowerUsageData.usageType = UsageType.OVERCOUNTED; in testShouldHideCategory_typeOverCounted_returnTrue()
298 mPowerUsageData.usageType = UsageType.USER; in testShouldHideCategory_typeUserAndOnlyOne_returnTrue()
306 mPowerUsageData.usageType = UsageType.CELL; in testShouldHideCategory_typeCellWhileNotSupported_returnTrue()
315 mPowerUsageData.usageType = UsageType.CELL; in testShouldHideCategory_typeCellWhileSupported_returnFalse()
324 mPowerUsageData.usageType = UsageType.USER; in testShouldHideCategory_typeUserAndMoreThanOne_returnFalse()
332 mPowerUsageData.usageType = UsageType.APP; in testShouldHideCategory_typeNormal_returnFalse()
339 mPowerUsageData.usageType = UsageType.CELL; in testShouldHideSummary_typeCell_returnTrue()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DMetadataEntryParser.java68 public UsageStats(String usageType, long lastTimeUsed, int timesUsed) { in UsageStats() argument
69 this.mUsageType = usageType; in UsageStats()
215 final String usageType = usageStat.getString(USAGE_TYPE); in parseDataToMetaDataEntry() local
216 if (TextUtils.isEmpty(usageType)) { in parseDataToMetaDataEntry()
223 usageType, lastTimeUsed, usageCount); in parseDataToMetaDataEntry()
DContactsProvider2.java5109 final String usageType = usageStats.mUsageType; in updateFromMetaDataEntry() local
5110 final int typeInt = getDataUsageFeedbackType(usageType.toLowerCase(), null); in updateFromMetaDataEntry()
6806 final String usageType = uri.getQueryParameter(DataUsageFeedback.USAGE_TYPE); in queryLocal() local
6807 final int typeInt = getDataUsageFeedbackType(usageType, USAGE_TYPE_ALL); in queryLocal()
8312 String[] projection, boolean distinct, Integer usageType) { in setTablesAndProjectionMapForData() argument
8313 setTablesAndProjectionMapForData(qb, uri, projection, distinct, false, usageType); in setTablesAndProjectionMapForData()
8317 String[] projection, boolean distinct, boolean addSipLookupColumns, Integer usageType) { in setTablesAndProjectionMapForData() argument
8328 sb, usageType == null ? USAGE_TYPE_ALL : usageType, DataColumns.CONCRETE_ID); in setTablesAndProjectionMapForData()
8430 private void appendDataUsageStatJoin(StringBuilder sb, int usageType, String dataIdColumn) { in appendDataUsageStatJoin() argument
8431 if (usageType != USAGE_TYPE_ALL) { in appendDataUsageStatJoin()
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java466 String usageType = DataUsageFeedback.USAGE_TYPE_CALL;
472 usageType = DataUsageFeedback.USAGE_TYPE_SHORT_TEXT;
479 .appendQueryParameter(DataUsageFeedback.USAGE_TYPE, usageType)
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java9899 private void sendFeedback(String data1, String usageType, ContentValues values) { in sendFeedback() argument
9902 MoreAsserts.assertNotEqual(0, updateDataUsageFeedback(usageType, dataId)); in sendFeedback()
9908 private void updateDataUsageFeedback(String usageType, Uri resultUri) { in updateDataUsageFeedback() argument
9910 final boolean successful = updateDataUsageFeedback(usageType, id) > 0; in updateDataUsageFeedback()
9914 private int updateDataUsageFeedback(String usageType, long... ids) { in updateDataUsageFeedback() argument
9922 .appendQueryParameter(DataUsageFeedback.USAGE_TYPE, usageType) in updateDataUsageFeedback()