/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/ |
D | NfcPaymentPreferenceController.java | 92 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus() local 93 return (appInfos != null && !appInfos.isEmpty()) in getAvailabilityStatus() 117 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in updateState() local 118 if (appInfos != null) { in updateState() 119 final PaymentAppInfo[] apps = appInfos.toArray(new PaymentAppInfo[appInfos.size()]); in updateState() 178 private PaymentAppInfo[] appInfos; field in NfcPaymentPreferenceController.NfcPaymentAdapter 185 public void updateApps(PaymentAppInfo[] appInfos) { in updateApps() argument 187 this.appInfos = appInfos; in updateApps() 193 return (appInfos != null) ? appInfos.length : 0; in getCount() 198 return appInfos[i]; in getItem() [all …]
|
D | NfcForegroundPreferenceController.java | 75 final List<PaymentBackend.PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus() local 76 return (appInfos != null && !appInfos.isEmpty()) in getAvailabilityStatus()
|
D | PaymentBackend.java | 84 ArrayList<PaymentAppInfo> appInfos = new ArrayList<PaymentAppInfo>(); in refresh() local 113 appInfos.add(appInfo); in refresh() 115 mAppInfos = appInfos; in refresh()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | NfcPaymentPreferenceController.java | 92 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus() local 93 return (appInfos != null && !appInfos.isEmpty()) in getAvailabilityStatus() 117 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in updateState() local 118 if (appInfos != null) { in updateState() 119 final PaymentAppInfo[] apps = appInfos.toArray(new PaymentAppInfo[appInfos.size()]); in updateState() 178 private PaymentAppInfo[] appInfos; field in NfcPaymentPreferenceController.NfcPaymentAdapter 185 public void updateApps(PaymentAppInfo[] appInfos) { in updateApps() argument 187 this.appInfos = appInfos; in updateApps() 193 return (appInfos != null) ? appInfos.length : 0; in getCount() 198 return appInfos[i]; in getItem() [all …]
|
D | NfcForegroundPreferenceController.java | 75 final List<PaymentBackend.PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus() local 76 return (appInfos != null && !appInfos.isEmpty()) in getAvailabilityStatus()
|
D | PaymentBackend.java | 84 ArrayList<PaymentAppInfo> appInfos = new ArrayList<PaymentAppInfo>(); in refresh() local 113 appInfos.add(appInfo); in refresh() 115 mAppInfos = appInfos; in refresh()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AppInfoTest.java | 79 List<AppInfo> appInfos = new ArrayList<>(); in testCompareTo_hasCorrectOrder() local 80 appInfos.add(appInfo); in testCompareTo_hasCorrectOrder() 81 appInfos.add(mAppInfo); in testCompareTo_hasCorrectOrder() 83 Collections.sort(appInfos); in testCompareTo_hasCorrectOrder() 84 assertThat(appInfos.get(0).screenOnTimeMs).isLessThan(appInfos.get(1).screenOnTimeMs); in testCompareTo_hasCorrectOrder()
|
D | BatteryTipDialogFragmentTest.java | 165 final List<AppInfo> appInfos = new ArrayList<>(); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog() local 167 appInfos.add(mAppInfo); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog() 170 appInfos); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
|
D | AnomalyCleanupJobServiceTest.java | 121 final List<AppInfo> appInfos = databaseManager.queryAllAnomalies(0, in onStartJob_cleanUpDataBefore30days() local 123 assertThat(appInfos).containsExactly(new AppInfo.Builder() in onStartJob_cleanUpDataBefore30days()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | BatteryDatabaseManager.java | 102 final List<AppInfo> appInfos = new ArrayList<>(); in queryAllAnomalies() local 128 appInfos.add(mAppInfoBuilders.get(uid).build()); in queryAllAnomalies() 131 return appInfos; in queryAllAnomalies() 146 public synchronized void updateAnomalies(List<AppInfo> appInfos, int state) { in updateAnomalies() argument 147 if (!appInfos.isEmpty()) { in updateAnomalies() 148 final int size = appInfos.size(); in updateAnomalies() 151 whereArgs[i] = appInfos.get(i).packageName; in updateAnomalies() 158 Collections.nCopies(appInfos.size(), "?")) + ")", whereArgs); in updateAnomalies()
|
D | BatteryTipUtils.java | 63 final List<AppInfo> appInfos = new ArrayList<>(); in getRestrictedAppsList() local 76 appInfos.add(new AppInfo.Builder() in getRestrictedAppsList() 84 return appInfos; in getRestrictedAppsList()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryDatabaseManager.java | 102 final List<AppInfo> appInfos = new ArrayList<>(); in queryAllAnomalies() local 128 appInfos.add(mAppInfoBuilders.get(uid).build()); in queryAllAnomalies() 131 return appInfos; in queryAllAnomalies() 146 public synchronized void updateAnomalies(List<AppInfo> appInfos, int state) { in updateAnomalies() argument 147 if (!appInfos.isEmpty()) { in updateAnomalies() 148 final int size = appInfos.size(); in updateAnomalies() 151 whereArgs[i] = appInfos.get(i).packageName; in updateAnomalies() 158 Collections.nCopies(appInfos.size(), "?")) + ")", whereArgs); in updateAnomalies()
|
D | BatteryTipUtils.java | 63 final List<AppInfo> appInfos = new ArrayList<>(); in getRestrictedAppsList() local 76 appInfos.add(new AppInfo.Builder() in getRestrictedAppsList() 84 return appInfos; in getRestrictedAppsList()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | RestrictAppTipTest.java | 197 final List<AppInfo> appInfos = new ArrayList<>(); in sanityCheck_appUninstalled_stateInvisible() local 198 appInfos.add(mUninstallAppInfo); in sanityCheck_appUninstalled_stateInvisible() 199 final BatteryTip batteryTip = new RestrictAppTip(BatteryTip.StateType.NEW, appInfos); in sanityCheck_appUninstalled_stateInvisible() 208 final List<AppInfo> appInfos = new ArrayList<>(); in sanityCheck_twoRestrictedAppsWhileUninstallOne_stateVisible() local 209 appInfos.add(mAppInfo); in sanityCheck_twoRestrictedAppsWhileUninstallOne_stateVisible() 210 appInfos.add(mUninstallAppInfo); in sanityCheck_twoRestrictedAppsWhileUninstallOne_stateVisible() 211 final BatteryTip batteryTip = new RestrictAppTip(BatteryTip.StateType.NEW, appInfos); in sanityCheck_twoRestrictedAppsWhileUninstallOne_stateVisible()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/ |
D | RestrictAppAction.java | 56 final List<AppInfo> appInfos = mRestrictAppTip.getRestrictAppList(); in handlePositiveAction() local 58 for (int i = 0, size = appInfos.size(); i < size; i++) { in handlePositiveAction() 59 final AppInfo appInfo = appInfos.get(i); in handlePositiveAction() 82 mBatteryDatabaseManager.updateAnomalies(appInfos, AnomalyDatabaseHelper.State.HANDLED); in handlePositiveAction()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/ |
D | RestrictAppAction.java | 56 final List<AppInfo> appInfos = mRestrictAppTip.getRestrictAppList(); in handlePositiveAction() local 58 for (int i = 0, size = appInfos.size(); i < size; i++) { in handlePositiveAction() 59 final AppInfo appInfo = appInfos.get(i); in handlePositiveAction() 82 mBatteryDatabaseManager.updateAnomalies(appInfos, AnomalyDatabaseHelper.State.HANDLED); in handlePositiveAction()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/gamedriver/ |
D | GameDriverAppPreferenceController.java | 193 final List<AppInfo> appInfos = new ArrayList<>(); in getAppInfos() local 196 appInfos.add(new AppInfo(packageManager, applicationInfo)); in getAppInfos() 200 Collections.sort(appInfos, appInfoComparator); in getAppInfos() 202 return appInfos; in getAppInfos()
|
/packages/apps/Settings/src/com/android/settings/development/gamedriver/ |
D | GameDriverAppPreferenceController.java | 209 final List<AppInfo> appInfos = new ArrayList<>(); in getAppInfos() local 212 appInfos.add(new AppInfo(packageManager, applicationInfo)); in getAppInfos() 216 Collections.sort(appInfos, appInfoComparator); in getAppInfos() 218 return appInfos; in getAppInfos()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcPaymentPreferenceControllerTest.java | 96 final ArrayList<PaymentAppInfo> appInfos = new ArrayList<>(); in getAvailabilityStatus_hasPaymentApps_AVAILABLE() local 97 appInfos.add(new PaymentAppInfo()); in getAvailabilityStatus_hasPaymentApps_AVAILABLE() 98 when(mPaymentBackend.getPaymentAppInfos()).thenReturn(appInfos); in getAvailabilityStatus_hasPaymentApps_AVAILABLE()
|
D | NfcForegroundPreferenceControllerTest.java | 108 final ArrayList<PaymentBackend.PaymentAppInfo> appInfos = new ArrayList<>(); in initPaymentApps() local 109 appInfos.add(new PaymentBackend.PaymentAppInfo()); in initPaymentApps() 110 when(mPaymentBackend.getPaymentAppInfos()).thenReturn(appInfos); in initPaymentApps()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetectorTest.java | 152 final List<AppInfo> appInfos = highUsageTip.getHighUsageAppList(); in testDetect_containsHighUsageApp_tipVisibleAndSorted() local 153 assertThat(appInfos).containsExactly(mLowAppInfo, mHighAppInfo); in testDetect_containsHighUsageApp_tipVisibleAndSorted() 154 assertThat(appInfos.get(0)).isEqualTo(mHighAppInfo); in testDetect_containsHighUsageApp_tipVisibleAndSorted()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/ |
D | TermsProvider.java | 120 List<ApplicationInfo> appInfos = mContext.getPackageManager().getInstalledApplications( in getSystemAppTerms() local 122 for (ApplicationInfo appInfo : appInfos) { in getSystemAppTerms()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryDatabaseManagerTest.java | 104 List<AppInfo> appInfos = mBatteryDatabaseManager.queryAllAnomalies(ONE_DAY_BEFORE, in allAnomalyFunctions() local 106 assertThat(appInfos).containsExactly(mNewAppInfo); in allAnomalyFunctions()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | RestrictedAppDetails.java | 83 List<AppInfo> appInfos) { in startRestrictedAppDetails() argument 85 args.putParcelableList(EXTRA_APP_INFO_LIST, appInfos); in startRestrictedAppDetails()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | RestrictedAppDetails.java | 83 List<AppInfo> appInfos) { in startRestrictedAppDetails() argument 85 args.putParcelableList(EXTRA_APP_INFO_LIST, appInfos); in startRestrictedAppDetails()
|