/frameworks/base/services/backup/backuplib/java/com/android/server/backup/ |
D | TransportManager.java | 121 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/ |
D | TransportClientManager.java | 74 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 …]
|
D | TransportStats.java | 33 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()
|
D | TransportNotRegisteredException.java | 37 public TransportNotRegisteredException(ComponentName transportComponent) { in TransportNotRegisteredException() argument 38 super("Transport for host " + transportComponent + " not registered"); in TransportNotRegisteredException()
|
D | TransportClient.java | 115 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/ |
D | TransportTestUtils.java | 63 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/ |
D | TransportManagerTest.java | 318 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()
|
D | UserBackupManagerServiceTest.java | 480 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/ |
D | BackupManager.java | 530 @NonNull ComponentName transportComponent, in updateTransportAttributes() 537 transportComponent, in updateTransportAttributes() 572 @NonNull ComponentName transportComponent, in updateTransportAttributes() 583 transportComponent, in updateTransportAttributes() local
|
D | IBackupManager.aidl | 362 void updateTransportAttributesForUser(int userId, in ComponentName transportComponent, in updateTransportAttributesForUser() argument
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 1010 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()
|
D | UserBackupManagerService.java | 3412 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()
|