/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | ContextMap.java | 74 public class App { class in ContextMap 128 App(UUID uuid, C callback, T info, String name, AppScanStats appScanStats) { in App() method in ContextMap.App 137 App(int id, C callback, String name) { in App() method in ContextMap.App 186 private List<App> mApps = new ArrayList<App>(); 206 public App add( in add() 234 App app = new App(uuid, callback, (T) piInfo, appName, appScanStats); in add() 242 public App add(int id, C callback, GattService service) { in add() 259 App app = getById(appUid); in add() 261 app = new App(appUid, callback, appName); in add() 271 Iterator<App> i = mApps.iterator(); in remove() [all …]
|
D | GattService.java | 1290 ContextMap<IBluetoothGattCallback, Void>.App app = mClientMap.getByUuid(uuid); in onClientRegistered() 1322 ContextMap<IBluetoothGattCallback, Void>.App app = mClientMap.getById(clientIf); in onConnected() 1343 ContextMap<IBluetoothGattCallback, Void>.App app = mClientMap.getById(clientIf); in onDisconnected() 1384 ContextMap<IBluetoothGattCallback, Void>.App app = mClientMap.getByConnId(connId); in onClientPhyUpdate() 1409 ContextMap<IBluetoothGattCallback, Void>.App app = mClientMap.getByConnId(connId); in onClientPhyRead() 1426 ContextMap<IBluetoothGattCallback, Void>.App app = mClientMap.getByConnId(connId); in onClientConnUpdate() 1442 ContextMap<IBluetoothGattCallback, Void>.App app = mClientMap.getByConnId(connId); in onServiceChanged() 1460 ContextMap<IBluetoothGattCallback, Void>.App app = mClientMap.getByConnId(connId); in onClientSubrateChange() 1476 ContextMap<IBluetoothGattServerCallback, Void>.App app = mServerMap.getByConnId(connId); in onServerPhyUpdate() 1494 ContextMap<IBluetoothGattServerCallback, Void>.App app = mServerMap.getByConnId(connId); in onServerPhyRead() [all …]
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/ |
D | AppsViewModel.java | 31 import com.android.adservices.service.consent.App; 49 private final MutableLiveData<Pair<AppsViewModelUiEvent, App>> mEventTrigger = 51 private final MutableLiveData<ImmutableList<App>> mApps; 52 private final MutableLiveData<ImmutableList<App>> mBlockedApps; 92 public LiveData<ImmutableList<App>> getApps() { in getApps() 101 public LiveData<ImmutableList<App>> getBlockedApps() { in getBlockedApps() 110 public void revokeAppConsent(App app) throws IOException { in revokeAppConsent() 133 public LiveData<Pair<AppsViewModelUiEvent, App>> getUiEvents() { in getUiEvents() 151 public void revokeAppConsentButtonClickHandler(App app) { in revokeAppConsentButtonClickHandler() 170 private ImmutableList<App> getAppsFromConsentManager() { in getAppsFromConsentManager() [all …]
|
D | BlockedAppsViewModel.java | 28 import com.android.adservices.service.consent.App; 46 private final MutableLiveData<Pair<BlockedAppsViewModelUiEvent, App>> mEventTrigger = 48 private final MutableLiveData<ImmutableList<App>> mBlockedApps; 76 public LiveData<ImmutableList<App>> getBlockedApps() { in getBlockedApps() 85 public void restoreAppConsent(App app) throws IOException { in restoreAppConsent() 100 public LiveData<Pair<BlockedAppsViewModelUiEvent, App>> getUiEvents() { in getUiEvents() 118 public void restoreAppConsentButtonClickHandler(App app) { in restoreAppConsentButtonClickHandler() 122 private ImmutableList<App> getBlockedAppsFromConsentManager() { in getBlockedAppsFromConsentManager()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewadatpors/ |
D | AppsListViewAdapter.java | 32 import com.android.adservices.service.consent.App; 48 private final Function<App, View.OnClickListener> mGetOnclickListener; 49 private final LiveData<ImmutableList<App>> mAppsList; 54 LiveData<ImmutableList<App>> appsList, in AppsListViewAdapter() 55 Function<App, View.OnClickListener> getOnclickListener, in AppsListViewAdapter() argument 108 Function<App, View.OnClickListener> getOnclickListener, in initAppItem() argument 109 App app, in initAppItem() 121 private void prepareAppName(App app, Context context) { in prepareAppName() 125 private void prepareAppImageView(App app, Context context) { in prepareAppImageView()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/ |
D | RecentlyAccessedByUtils.java | 50 public static List<App> getAppList(Context context, int[] appOps) { in getAppList() 58 ArrayList<App> recentApps = new ArrayList<>(packageOpsCount); in getAppList() 75 App recentApp = getRecentRequestFromOps(packageManager, currentTime, ops, in getAppList() 83 recentApps.sort(Comparator.comparingLong(app -> ((App) app).mLastAccess).reversed()); in getAppList() 88 private static App getRecentRequestFromOps(PackageManager packageManager, long currentTime, in getRecentRequestFromOps() 121 return new App(packageName, icon, appLabel, mostRecentAccessEnd); in getRecentRequestFromOps() 124 public static class App { class in RecentlyAccessedByUtils 130 private App(String packageName, Drawable icon, CharSequence label, long lastAccess) { in App() method in RecentlyAccessedByUtils.App
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/ |
D | RecentlyAccessedByUtils.java | 50 public static List<App> getAppList(Context context, int[] appOps) { in getAppList() 58 ArrayList<App> recentApps = new ArrayList<>(packageOpsCount); in getAppList() 75 App recentApp = getRecentRequestFromOps(packageManager, currentTime, ops, in getAppList() 83 recentApps.sort(Comparator.comparingLong(app -> ((App) app).mLastAccess).reversed()); in getAppList() 88 private static App getRecentRequestFromOps(PackageManager packageManager, long currentTime, in getRecentRequestFromOps() 121 return new App(packageName, icon, appLabel, mostRecentAccessEnd); in getRecentRequestFromOps() 124 public static class App { class in RecentlyAccessedByUtils 130 private App(String packageName, Drawable icon, CharSequence label, long lastAccess) { in App() method in RecentlyAccessedByUtils.App
|
D | SensorState.java | 129 List<RecentlyAccessedByUtils.App> recentApps = RecentlyAccessedByUtils.getAppList( in addRecentAppsGroup() 134 for (RecentlyAccessedByUtils.App app : recentApps) { in addRecentAppsGroup()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/ |
D | AppSearchConsentManager.java | 38 import com.android.adservices.service.consent.App; 111 public ImmutableList<App> getKnownAppsWithConsent() { in getKnownAppsWithConsent() 116 List<App> result = new ArrayList<>(); in getKnownAppsWithConsent() 119 result.add(App.create(app)); in getKnownAppsWithConsent() 131 public ImmutableList<App> getAppsWithRevokedConsent() { in getAppsWithRevokedConsent() 136 List<App> result = new ArrayList<>(); in getAppsWithRevokedConsent() 139 result.add(App.create(app)); in getAppsWithRevokedConsent() 150 public void revokeConsentForApp(@NonNull App app) { in revokeConsentForApp() 163 public void restoreConsentForApp(@NonNull App app) { in restoreConsentForApp() 491 List<App> consentedApps = getKnownAppsWithConsent(); in migrateConsentDataIfNeeded() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | App.java | 33 public class App { class 37 App(String packageName) { in App() method in App 43 public static App create(String packageName) { in create() 44 return new App(packageName); in create()
|
/packages/modules/AdServices/adservices/apk/tests/settings/src/com/android/adservices/ui/settings/ |
D | DialogFragmentTest.java | 50 import com.android.adservices.service.consent.App; 106 List<App> appTempList = new ArrayList<>(); in setup() 107 appTempList.add(App.create("app1")); in setup() 108 appTempList.add(App.create("app2")); in setup() 109 ImmutableList<App> appsList = ImmutableList.copyOf(appTempList); in setup() 113 appTempList.add(App.create("app3")); in setup() 114 ImmutableList<App> blockedAppsList = ImmutableList.copyOf(appTempList); in setup() 123 doNothing().when(mConsentManager).revokeConsentForApp(any(App.class)); in setup() 124 doNothing().when(mConsentManager).restoreConsentForApp(any(App.class)); in setup() 311 verify(mConsentManager, timeout(1000)).revokeConsentForApp(any(App.class)); in blockAppDialogTest() [all …]
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/activitydelegates/ |
D | BlockedAppsActivityActionDelegate.java | 28 import com.android.adservices.service.consent.App; 83 Function<App, View.OnClickListener> getOnclickListener = in configureSharedElements() 97 Observer<Pair<BlockedAppsViewModelUiEvent, App>> observer = in listenToBlockedAppsViewModelUiEvents() 103 App app = eventAppPair.second; in listenToBlockedAppsViewModelUiEvents()
|
D | AppsActivityActionDelegate.java | 31 import com.android.adservices.service.consent.App; 77 Function<View, Observer<ImmutableList<App>>> observerProvider = in initGA() 122 Function<App, OnClickListener> getOnclickListener = in configureSharedElements() 159 Observer<Pair<AppsViewModelUiEvent, App>> observer = in listenToAppsViewModelUiEvents() 165 App app = eventAppPair.second; in listenToAppsViewModelUiEvents()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/delegates/ |
D | BlockedAppsActionDelegate.java | 27 import com.android.adservices.service.consent.App; 54 Observer<Pair<BlockedAppsViewModelUiEvent, App>> observer = in listenToBlockedAppsViewModelUiEvents() 60 App app = eventAppPair.second; in listenToBlockedAppsViewModelUiEvents()
|
D | AppsActionDelegate.java | 31 import com.android.adservices.service.consent.App; 59 Observer<Pair<AppsViewModelUiEvent, App>> observer = in listenToAppsViewModelUiEvents() 65 App app = eventAppPair.second; in listenToAppsViewModelUiEvents()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | ConsentManagerTest.java | 1479 ImmutableList<App> knownAppsWithConsent = mConsentManager.getKnownAppsWithConsent(); in testGetKnownAppsWithConsent_ppApiOnly() 1480 ImmutableList<App> appsWithRevokedConsent = mConsentManager.getAppsWithRevokedConsent(); in testGetKnownAppsWithConsent_ppApiOnly() 1515 ImmutableList<App> knownAppsWithConsent = mConsentManager.getKnownAppsWithConsent(); in testGetKnownAppsWithConsent_systemServerOnly() 1516 ImmutableList<App> appsWithRevokedConsent = mConsentManager.getAppsWithRevokedConsent(); in testGetKnownAppsWithConsent_systemServerOnly() 1561 ImmutableList<App> knownAppsWithConsent = mConsentManager.getKnownAppsWithConsent(); in testGetKnownAppsWithConsent_ppApiAndSystemServer() 1562 ImmutableList<App> appsWithRevokedConsent = mConsentManager.getAppsWithRevokedConsent(); in testGetKnownAppsWithConsent_ppApiAndSystemServer() 1584 ImmutableList<App> consentedAppsList = in testGetKnownAppsWithConsent_appSearchOnly() 1585 ImmutableList.of(App.create(AppConsentDaoFixture.APP10_PACKAGE_NAME)); in testGetKnownAppsWithConsent_appSearchOnly() 1586 ImmutableList<App> revokedAppsList = in testGetKnownAppsWithConsent_appSearchOnly() 1588 App.create(AppConsentDaoFixture.APP20_PACKAGE_NAME), in testGetKnownAppsWithConsent_appSearchOnly() [all …]
|
D | ConsentManagerV2Test.java | 1422 ImmutableList<App> knownAppsWithConsent = mConsentManager.getKnownAppsWithConsent(); in testGetKnownAppsWithConsent_ppApiOnly() 1423 ImmutableList<App> appsWithRevokedConsent = mConsentManager.getAppsWithRevokedConsent(); in testGetKnownAppsWithConsent_ppApiOnly() 1458 ImmutableList<App> knownAppsWithConsent = mConsentManager.getKnownAppsWithConsent(); in testGetKnownAppsWithConsent_systemServerOnly() 1459 ImmutableList<App> appsWithRevokedConsent = mConsentManager.getAppsWithRevokedConsent(); in testGetKnownAppsWithConsent_systemServerOnly() 1504 ImmutableList<App> knownAppsWithConsent = mConsentManager.getKnownAppsWithConsent(); in testGetKnownAppsWithConsent_ppApiAndSystemServer() 1505 ImmutableList<App> appsWithRevokedConsent = mConsentManager.getAppsWithRevokedConsent(); in testGetKnownAppsWithConsent_ppApiAndSystemServer() 1537 ImmutableList<App> knownAppsWithConsent = mConsentManager.getKnownAppsWithConsent(); in testGetKnownAppsWithConsent_appSearchOnly() 1538 ImmutableList<App> appsWithRevokedConsent = mConsentManager.getAppsWithRevokedConsent(); in testGetKnownAppsWithConsent_appSearchOnly() 1592 App app = App.create(AppConsentDaoFixture.APP10_PACKAGE_NAME); in testGetKnownAppsWithConsentAfterConsentForOneOfThemWasRevoked_ppApiOnly() 1596 ImmutableList<App> knownAppsWithConsent = mConsentManager.getKnownAppsWithConsent(); in testGetKnownAppsWithConsentAfterConsentForOneOfThemWasRevoked_ppApiOnly() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/ |
D | TransitionalScanHelper.java | 378 ContextMap<IScannerCallback, PendingIntentInfo>.App app = in onScanResultInternal() 527 ContextMap<IScannerCallback, PendingIntentInfo>.App cbApp = mScannerMap.getByUuid(uuid); in onScannerRegistered() 701 ContextMap<IScannerCallback, PendingIntentInfo>.App app = in onBatchScanReportsInternal() 754 ContextMap<IScannerCallback, PendingIntentInfo>.App app, in sendBatchScanResults() 787 ContextMap.App app = mScannerMap.getById(client.scannerId); in deliverBatchScan() 967 ContextMap<IScannerCallback, PendingIntentInfo>.App app = in onTrackAdvFoundLost() 1028 ContextMap.App app = mScannerMap.getById(scannerId); in onScanParamSetupCompleted() 1038 ContextMap<IScannerCallback, PendingIntentInfo>.App app = mScannerMap.getById(scannerId); in onScanManagerErrorCallback() 1174 ContextMap.App cbApp = mScannerMap.getById(scannerId); in startScan() 1225 ContextMap.App app = mScannerMap.add(uuid, null, null, piInfo, mContext, this); in registerPiAndStartScan() [all …]
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/ |
D | DialogManager.java | 30 import com.android.adservices.service.consent.App; 158 @NonNull Context context, AppsViewModel appsViewModel, App app) { in showBlockAppDialog() 187 public static void showUnblockAppDialog(@NonNull Context context, App app) { in showUnblockAppDialog()
|
D | DialogFragmentManager.java | 28 import com.android.adservices.service.consent.App; 179 @NonNull FragmentActivity fragmentActivity, AppsViewModel appsViewModel, App app) { in showBlockAppDialog() 212 public static void showUnblockAppDialog(@NonNull FragmentActivity fragmentActivity, App app) { in showUnblockAppDialog()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/fragments/ |
D | AdServicesSettingsBlockedAppsFragment.java | 33 import com.android.adservices.service.consent.App; 70 Function<App, View.OnClickListener> getOnclickListener = in setupViewModel()
|
D | AdServicesSettingsAppsFragment.java | 34 import com.android.adservices.service.consent.App; 77 Function<App, View.OnClickListener> getOnclickListener = in setupViewModel()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchConsentManagerTest.java | 49 import com.android.adservices.service.consent.App; 128 List<App> result = mAppSearchConsentManager.getKnownAppsWithConsent(); in testKnownAppsWithConsent() 142 List<App> result = mAppSearchConsentManager.getAppsWithRevokedConsent(); in testAppsWithRevokedConsent() 153 App app = App.create(PACKAGE_NAME1); in testRevokeConsentForApp() 165 App app = App.create(PACKAGE_NAME1); in testRestoreConsentForApp()
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/appupdate/ |
D | Android.bp | 44 // Sample App will be installed and uninstalled in the test. 80 // Sample App will be installed and uninstalled in the test.
|
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/ |
D | main.rs | 6 use clap::{App, Arg}; 22 let matches = App::new("Bluetooth Manager") in main()
|