Home
last modified time | relevance | path

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

/frameworks/base/services/backup/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 …]
DBackupManagerService.java410 ComponentName transportComponent, in updateTransportAttributes() argument
421 transportComponent, in updateTransportAttributes()
453 ComponentName transportComponent, in selectBackupTransportAsync() argument
459 userBackupManagerService.selectBackupTransportAsync(transportComponent, listener); in selectBackupTransportAsync()
DUserBackupManagerService.java3020 ComponentName transportComponent, in updateTransportAttributes() argument
3028 transportComponent, in updateTransportAttributes() local
3039 ComponentName transportComponent, in updateTransportAttributes() argument
3048 Preconditions.checkNotNull(transportComponent, "transportComponent can't be null"); in updateTransportAttributes()
3059 .getPackageUidAsUser(transportComponent.getPackageName(), 0, mUserId); in updateTransportAttributes()
3070 transportComponent, in updateTransportAttributes()
3110 ComponentName transportComponent, ISelectBackupTransportCallback listener) { in selectBackupTransportAsync() argument
3116 String transportString = transportComponent.flattenToShortString(); in selectBackupTransportAsync()
3122 mTransportManager.registerAndSelectTransport(transportComponent); in selectBackupTransportAsync()
3126 mTransportManager.getTransportName(transportComponent); in selectBackupTransportAsync()
DTrampoline.java631 ComponentName transportComponent, in updateTransportAttributesForUser() argument
640 transportComponent, in updateTransportAttributesForUser()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportClientManager.java66 public TransportClient getTransportClient(ComponentName transportComponent, String caller) { in getTransportClient() argument
68 new Intent(SERVICE_ACTION_TRANSPORT_HOST).setComponent(transportComponent); in getTransportClient()
70 return getTransportClient(transportComponent, caller, bindIntent); in getTransportClient()
85 ComponentName transportComponent, Bundle extras, String caller) { in getTransportClient() argument
87 new Intent(SERVICE_ACTION_TRANSPORT_HOST).setComponent(transportComponent); in getTransportClient()
90 return getTransportClient(transportComponent, caller, bindIntent); in getTransportClient()
94 ComponentName transportComponent, String caller, Intent bindIntent) { in getTransportClient() argument
102 transportComponent, in getTransportClient()
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.java114 ComponentName transportComponent, in TransportClient() argument
122 transportComponent, in TransportClient()
134 ComponentName transportComponent, in TransportClient() argument
141 mTransportComponent = transportComponent; in TransportClient()
659 public void onServiceConnected(ComponentName transportComponent, IBinder binder) { in onServiceConnected() argument
669 public void onServiceDisconnected(ComponentName transportComponent) { in onServiceDisconnected() argument
679 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.java465 ComponentName transportComponent = backupManagerService.getCurrentTransportComponent(); in testGetCurrentTransportComponent() local
467 assertThat(transportComponent).isEqualTo(mTransport.getTransportComponent()); in testGetCurrentTransportComponent()
480 ComponentName transportComponent = backupManagerService.getCurrentTransportComponent(); in testGetCurrentTransportComponent_whenNoTransportSelected() local
482 assertThat(transportComponent).isNull(); in testGetCurrentTransportComponent_whenNoTransportSelected()
496 ComponentName transportComponent = backupManagerService.getCurrentTransportComponent(); in testGetCurrentTransportComponent_whenTransportNotRegistered() local
498 assertThat(transportComponent).isNull(); in testGetCurrentTransportComponent_whenTransportNotRegistered()
/frameworks/base/core/java/android/app/backup/
DBackupManager.java528 @NonNull ComponentName transportComponent, in updateTransportAttributes()
535 transportComponent, in updateTransportAttributes()
570 @NonNull ComponentName transportComponent, in updateTransportAttributes()
581 transportComponent, in updateTransportAttributes() local
DIBackupManager.aidl362 void updateTransportAttributesForUser(int userId, in ComponentName transportComponent, in updateTransportAttributesForUser() argument