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.java119 registerTransportsFromPackage(packageName, transportComponent -> true); in onPackageAdded()
189 public String getTransportName(ComponentName transportComponent) in getTransportName() argument
192 return getRegisteredTransportDescriptionOrThrowLocked(transportComponent).name; in getTransportName()
201 public String getTransportDirName(ComponentName transportComponent) in getTransportDirName() argument
204 return getRegisteredTransportDescriptionOrThrowLocked(transportComponent) in getTransportDirName()
305 ComponentName transportComponent, in updateTransportAttributes() argument
313 mRegisteredTransportsDescriptionMap.get(transportComponent); in updateTransportAttributes()
329 ComponentName transportComponent) throws TransportNotRegisteredException { in getRegisteredTransportDescriptionOrThrowLocked() argument
331 mRegisteredTransportsDescriptionMap.get(transportComponent); in getRegisteredTransportDescriptionOrThrowLocked()
333 throw new TransportNotRegisteredException(transportComponent); in getRegisteredTransportDescriptionOrThrowLocked()
[all …]
DBackupManagerServiceInterface.java125 ComponentName transportComponent, in updateTransportAttributes() argument
DTrampoline.java364 ComponentName transportComponent, in updateTransportAttributes() argument
373 transportComponent, in updateTransportAttributes()
DBackupManagerService.java2959 ComponentName transportComponent, in updateTransportAttributes() argument
2967 transportComponent, in updateTransportAttributes() local
2978 ComponentName transportComponent, in updateTransportAttributes() argument
2987 Preconditions.checkNotNull(transportComponent, "transportComponent can't be null"); in updateTransportAttributes()
2998 .getPackageUid(transportComponent.getPackageName(), 0); in updateTransportAttributes()
3009 transportComponent, in updateTransportAttributes()
3048 ComponentName transportComponent, @Nullable ISelectBackupTransportCallback listener) { in selectBackupTransportAsync() argument
3051 if (!isAllowedByMandatoryBackupTransportPolicy(transportComponent)) { in selectBackupTransportAsync()
3064 String transportString = transportComponent.flattenToShortString(); in selectBackupTransportAsync()
3070 mTransportManager.registerAndSelectTransport(transportComponent); in selectBackupTransportAsync()
[all …]
/frameworks/base/services/robotests/src/com/android/server/backup/testing/
DTransportTestUtils.java58 ComponentName transportComponent = transport.getTransportComponent(); in setUpTransportsForTransportManager() local
59 String packageName = transportComponent.getPackageName(); in setUpTransportsForTransportManager()
60 ResolveInfo resolveInfo = resolveInfo(transportComponent); in setUpTransportsForTransportManager()
71 private static ResolveInfo resolveInfo(ComponentName transportComponent) { in resolveInfo() argument
74 resolveInfo.serviceInfo.packageName = transportComponent.getPackageName(); in resolveInfo()
75 resolveInfo.serviceInfo.name = transportComponent.getClassName(); in resolveInfo()
102 ComponentName transportComponent = transport.getTransportComponent(); in setUpTransport() local
113 when(transportManager.getTransportName(transportComponent)).thenReturn(transportName); in setUpTransport()
116 when(transportManager.getTransportDirName(eq(transportComponent))) in setUpTransport()
125 when(transportManager.getTransportName(transportComponent)) in setUpTransport()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportClientManager.java60 public TransportClient getTransportClient(ComponentName transportComponent, String caller) { in getTransportClient() argument
62 new Intent(SERVICE_ACTION_TRANSPORT_HOST).setComponent(transportComponent); in getTransportClient()
64 return getTransportClient(transportComponent, caller, bindIntent); in getTransportClient()
79 ComponentName transportComponent, Bundle extras, String caller) { in getTransportClient() argument
81 new Intent(SERVICE_ACTION_TRANSPORT_HOST).setComponent(transportComponent); in getTransportClient()
84 return getTransportClient(transportComponent, caller, bindIntent); in getTransportClient()
88 ComponentName transportComponent, String caller, Intent bindIntent) { in getTransportClient() argument
95 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.java112 ComponentName transportComponent, in TransportClient() argument
119 transportComponent, in TransportClient()
130 ComponentName transportComponent, in TransportClient() argument
136 mTransportComponent = transportComponent; in TransportClient()
654 public void onServiceConnected(ComponentName transportComponent, IBinder binder) { in onServiceConnected() argument
664 public void onServiceDisconnected(ComponentName transportComponent) { in onServiceDisconnected() argument
674 public void onBindingDied(ComponentName transportComponent) { in onBindingDied() argument
/frameworks/base/services/robotests/src/com/android/server/backup/
DTransportManagerTest.java326 ComponentName transportComponent = mTransportA1.getTransportComponent(); in testRegisterAndSelectTransport_whenTransportRegistered() local
328 int result = transportManager.registerAndSelectTransport(transportComponent); in testRegisterAndSelectTransport_whenTransportRegistered()
333 .contains(transportComponent); in testRegisterAndSelectTransport_whenTransportRegistered()
343 ComponentName transportComponent = mTransportA1.getTransportComponent(); in testRegisterAndSelectTransport_whenTransportNotRegistered() local
345 int result = transportManager.registerAndSelectTransport(transportComponent); in testRegisterAndSelectTransport_whenTransportNotRegistered()
350 .contains(transportComponent); in testRegisterAndSelectTransport_whenTransportNotRegistered()
/frameworks/base/core/java/android/app/backup/
DIBackupManager.aidl250 void updateTransportAttributes(in ComponentName transportComponent, in String name, in updateTransportAttributes() argument
DBackupManager.java500 ComponentName transportComponent, in updateTransportAttributes() argument
510 transportComponent, in updateTransportAttributes()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java2288 ComponentName transportComponent = ComponentName.unflattenFromString( in testCreateAdminSupportIntent() local
2290 dpm.setMandatoryBackupTransport(admin1, transportComponent); in testCreateAdminSupportIntent()