Home
last modified time | relevance | path

Searched refs:transportComponent (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/backup/backuplib/java/com/android/server/backup/
DTransportManager.java121 registerTransportsFromPackage(packageName, transportComponent -> true); in onPackageAdded()
209 public String getTransportName(ComponentName transportComponent) in getTransportName() argument
212 return getRegisteredTransportDescriptionOrThrowLocked(transportComponent).name; in getTransportName()
221 public String getTransportDirName(ComponentName transportComponent) in getTransportDirName() argument
224 return getRegisteredTransportDescriptionOrThrowLocked(transportComponent) in getTransportDirName()
325 ComponentName transportComponent, in updateTransportAttributes() argument
333 mRegisteredTransportsDescriptionMap.get(transportComponent); in updateTransportAttributes()
350 ComponentName transportComponent = getRegisteredTransportComponentLocked(transportName); in getRegisteredTransportComponentOrThrowLocked() local
351 if (transportComponent == null) { in getRegisteredTransportComponentOrThrowLocked()
354 return transportComponent; in getRegisteredTransportComponentOrThrowLocked()
[all …]
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/
DTransportClientManager.java74 private static Intent getRealTransportIntent(ComponentName transportComponent) { in getRealTransportIntent() argument
75 return new Intent(SERVICE_ACTION_TRANSPORT_HOST).setComponent(transportComponent); in getRealTransportIntent()
84 ComponentName transportComponent = encryptingTransportIntent.getParcelableExtra( in getRealTransportIntent() local
86 Intent intent = getRealTransportIntent(transportComponent) in getRealTransportIntent()
127 public TransportClient getTransportClient(ComponentName transportComponent, String caller) { in getTransportClient() argument
128 return getTransportClient(transportComponent, null, caller); in getTransportClient()
143 ComponentName transportComponent, @Nullable Bundle extras, String caller) { in getTransportClient() argument
144 Intent bindIntent = mIntentFunction.apply(transportComponent); in getTransportClient()
148 return getTransportClient(transportComponent, caller, bindIntent); in getTransportClient()
152 ComponentName transportComponent, String caller, Intent bindIntent) { in getTransportClient() argument
[all …]
DTransportStats.java33 void registerConnectionTime(ComponentName transportComponent, long timeMs) { in registerConnectionTime() argument
35 Stats stats = mTransportStats.get(transportComponent); in registerConnectionTime()
38 mTransportStats.put(transportComponent, stats); in registerConnectionTime()
46 public Stats getStatsForTransport(ComponentName transportComponent) { in getStatsForTransport() argument
48 Stats stats = mTransportStats.get(transportComponent); in getStatsForTransport()
65 for (ComponentName transportComponent : mTransportStats.keySet()) { in dump()
66 Stats stats = mTransportStats.get(transportComponent); in dump()
67 pw.println(" " + transportComponent.flattenToShortString()); in dump()
DTransportNotRegisteredException.java37 public TransportNotRegisteredException(ComponentName transportComponent) { in TransportNotRegisteredException() argument
38 super("Transport for host " + transportComponent + " not registered"); in TransportNotRegisteredException()
DTransportClient.java115 ComponentName transportComponent, in TransportClient() argument
123 transportComponent, in TransportClient()
135 ComponentName transportComponent, in TransportClient() argument
142 mTransportComponent = transportComponent; in TransportClient()
660 public void onServiceConnected(ComponentName transportComponent, IBinder binder) { in onServiceConnected() argument
674 public void onServiceDisconnected(ComponentName transportComponent) { in onServiceDisconnected() argument
684 public void onBindingDied(ComponentName transportComponent) { in onBindingDied() argument
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTransportTestUtils.java63 ComponentName transportComponent = transport.getTransportComponent(); in setUpTransportsForTransportManager() local
64 String packageName = transportComponent.getPackageName(); in setUpTransportsForTransportManager()
65 ResolveInfo resolveInfo = resolveInfo(transportComponent); in setUpTransportsForTransportManager()
76 private static ResolveInfo resolveInfo(ComponentName transportComponent) { in resolveInfo() argument
79 resolveInfo.serviceInfo.packageName = transportComponent.getPackageName(); in resolveInfo()
80 resolveInfo.serviceInfo.name = transportComponent.getClassName(); in resolveInfo()
118 ComponentName transportComponent = transport.getTransportComponent(); in setUpTransport() local
129 when(transportManager.getTransportName(transportComponent)).thenReturn(transportName); in setUpTransport()
132 when(transportManager.getTransportDirName(eq(transportComponent))) in setUpTransport()
141 when(transportManager.getTransportName(transportComponent)) in setUpTransport()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DTransportManagerTest.java318 ComponentName transportComponent = mTransportA1.getTransportComponent(); in testRegisterAndSelectTransport_whenTransportRegistered() local
320 int result = transportManager.registerAndSelectTransport(transportComponent); in testRegisterAndSelectTransport_whenTransportRegistered()
325 .contains(transportComponent); in testRegisterAndSelectTransport_whenTransportRegistered()
335 ComponentName transportComponent = mTransportA1.getTransportComponent(); in testRegisterAndSelectTransport_whenTransportNotRegistered() local
337 int result = transportManager.registerAndSelectTransport(transportComponent); in testRegisterAndSelectTransport_whenTransportNotRegistered()
342 .contains(transportComponent); in testRegisterAndSelectTransport_whenTransportNotRegistered()
406 ComponentName transportComponent = transportManager.getCurrentTransportComponent(); in testGetCurrentTransportComponent() local
408 assertThat(transportComponent).isEqualTo(mTransportA1.getTransportComponent()); in testGetCurrentTransportComponent()
416 ComponentName transportComponent = transportManager.getCurrentTransportComponent(); in testGetCurrentTransportComponent_whenNoTransportSelected() local
418 assertThat(transportComponent).isNull(); in testGetCurrentTransportComponent_whenNoTransportSelected()
DUserBackupManagerServiceTest.java480 ComponentName transportComponent = backupManagerService.getCurrentTransportComponent(); in testGetCurrentTransportComponent() local
482 assertThat(transportComponent).isEqualTo(mTransport.getTransportComponent()); in testGetCurrentTransportComponent()
495 ComponentName transportComponent = backupManagerService.getCurrentTransportComponent(); in testGetCurrentTransportComponent_whenNoTransportSelected() local
497 assertThat(transportComponent).isNull(); in testGetCurrentTransportComponent_whenNoTransportSelected()
511 ComponentName transportComponent = backupManagerService.getCurrentTransportComponent(); in testGetCurrentTransportComponent_whenTransportNotRegistered() local
513 assertThat(transportComponent).isNull(); in testGetCurrentTransportComponent_whenTransportNotRegistered()
/frameworks/base/core/java/android/app/backup/
DBackupManager.java530 @NonNull ComponentName transportComponent, in updateTransportAttributes()
537 transportComponent, in updateTransportAttributes()
572 @NonNull ComponentName transportComponent, in updateTransportAttributes()
583 transportComponent, in updateTransportAttributes() local
DIBackupManager.aidl362 void updateTransportAttributesForUser(int userId, in ComponentName transportComponent, in updateTransportAttributesForUser() argument
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java1010 ComponentName transportComponent, in updateTransportAttributesForUser() argument
1019 transportComponent, in updateTransportAttributesForUser()
1053 ComponentName transportComponent, in updateTransportAttributes() argument
1064 transportComponent, in updateTransportAttributes()
1124 ComponentName transportComponent, in selectBackupTransportAsync() argument
1130 userBackupManagerService.selectBackupTransportAsync(transportComponent, listener); in selectBackupTransportAsync()
DUserBackupManagerService.java3412 ComponentName transportComponent, in updateTransportAttributes() argument
3420 transportComponent, in updateTransportAttributes() local
3431 ComponentName transportComponent, in updateTransportAttributes() argument
3440 Objects.requireNonNull(transportComponent, "transportComponent can't be null"); in updateTransportAttributes()
3451 .getPackageUidAsUser(transportComponent.getPackageName(), 0, mUserId); in updateTransportAttributes()
3462 transportComponent, in updateTransportAttributes()
3508 ComponentName transportComponent, ISelectBackupTransportCallback listener) { in selectBackupTransportAsync() argument
3514 String transportString = transportComponent.flattenToShortString(); in selectBackupTransportAsync()
3524 mTransportManager.registerAndSelectTransport(transportComponent); in selectBackupTransportAsync()
3528 mTransportManager.getTransportName(transportComponent); in selectBackupTransportAsync()