/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TransportTestUtils.java | 39 import com.android.server.backup.transport.TransportClient; 40 import com.android.server.backup.transport.TransportNotAvailableException; 41 import com.android.server.backup.transport.TransportNotRegisteredException; 59 for (TransportData transport : transports) { in setUpTransportsForTransportManager() 60 if (transport.transportStatus == TransportStatus.UNREGISTERED) { in setUpTransportsForTransportManager() 63 ComponentName transportComponent = transport.getTransportComponent(); in setUpTransportsForTransportManager() 86 TransportManager transportManager, TransportData transport) throws Exception { in setUpCurrentTransport() argument 87 TransportMock transportMock = setUpTransport(transportManager, transport); in setUpCurrentTransport() 88 int status = transport.transportStatus; in setUpCurrentTransport() 89 when(transportManager.getCurrentTransportName()).thenReturn(transport.transportName); in setUpCurrentTransport() [all …]
|
/frameworks/base/core/java/android/net/util/ |
D | KeepaliveUtils.java | 71 int transport; in getSupportedKeepalives() local 74 transport = Integer.parseInt(arr[0]); in getSupportedKeepalives() 80 if (!NetworkCapabilities.isValidTransport(transport)) { in getSupportedKeepalives() 81 throw new KeepaliveDeviceConfigurationException("Invalid transport " + transport); in getSupportedKeepalives() 87 + NetworkCapabilities.transportNameOf(transport)); in getSupportedKeepalives() 89 ret[transport] = supported; in getSupportedKeepalives() 108 for (final int transport : transports) { in getSupportedKeepalivesForNetworkCapabilities() 109 if (supportedCount > supportedKeepalives[transport]) { in getSupportedKeepalivesForNetworkCapabilities() 110 supportedCount = supportedKeepalives[transport]; in getSupportedKeepalivesForNetworkCapabilities()
|
/frameworks/base/core/proto/android/stats/connectivity/ |
D | tethering.proto | 60 // Indicates upstream using a Cellular transport. 62 // Indicates upstream using a Wi-Fi transport. 64 // Indicates upstream using a Bluetooth transport. 66 // Indicates upstream using an Ethernet transport. 68 // Indicates upstream using a Wi-Fi Aware transport. 70 // Indicates upstream using a LoWPAN transport. 72 // Indicates upstream using a Cellular+VPN transport. 74 // Indicates upstream using a Wi-Fi+VPN transport. 76 // Indicates upstream using a Bluetooth+VPN transport. 78 // Indicates upstream using an Ethernet+VPN transport. [all …]
|
D | network_stack.proto | 45 // Indicates this network uses a Cellular transport 47 // Indicates this network uses a Wi-Fi transport 49 // Indicates this network uses a Bluetooth transport 51 // Indicates this network uses an Ethernet transport 53 // Indicates this network uses a Wi-Fi Aware transport 55 // Indicates this network uses a LoWPAN transport 57 // Indicates this network uses a Cellular+VPN transport 59 // Indicates this network uses a Wi-Fi+VPN transport 61 // Indicates this network uses a Bluetooth+VPN transport 63 // Indicates this network uses an Ethernet+VPN transport [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportClient.java | 17 package com.android.server.backup.transport; 19 import static com.android.server.backup.transport.TransportUtils.formatMessage; 45 import com.android.server.backup.transport.TransportUtils.Priority; 317 IBackupTransport transport = mTransport; 318 if (transport != null) { 320 return transport; 341 transport = transportFuture.get(); 345 return transport; 366 IBackupTransport transport = connect(caller); in connectOrThrow() local 367 if (transport == null) { in connectOrThrow() [all …]
|
D | TransportUtils.java | 17 package com.android.server.backup.transport; 38 public static IBackupTransport checkTransportNotNull(@Nullable IBackupTransport transport) in checkTransportNotNull() argument 40 if (transport == null) { in checkTransportNotNull() 44 return transport; in checkTransportNotNull()
|
D | TransportConnectionListener.java | 17 package com.android.server.backup.transport; 36 @Nullable IBackupTransport transport, TransportClient transportClient); in onTransportConnectionResult()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | TransportManager.java | 41 import com.android.server.backup.transport.OnTransportRegisteredListener; 42 import com.android.server.backup.transport.TransportClient; 43 import com.android.server.backup.transport.TransportClientManager; 44 import com.android.server.backup.transport.TransportConnectionListener; 45 import com.android.server.backup.transport.TransportNotAvailableException; 46 import com.android.server.backup.transport.TransportNotRegisteredException; 47 import com.android.server.backup.transport.TransportStats; 594 private boolean isTransportTrusted(ComponentName transport) { in isTransportTrusted() argument 595 if (!mTransportWhitelist.contains(transport)) { in isTransportTrusted() 598 "BackupTransport " + transport.flattenToShortString() + " not whitelisted."); in isTransportTrusted() [all …]
|
D | Trampoline.java | 650 public String selectBackupTransportForUser(int userId, String transport) in selectBackupTransportForUser() argument 652 return (isUserReadyForBackup(userId)) ? mService.selectBackupTransport(userId, transport) in selectBackupTransportForUser() 657 public String selectBackupTransport(String transport) throws RemoteException { in selectBackupTransport() argument 658 return selectBackupTransportForUser(binderGetCallingUserId(), transport); in selectBackupTransport() 662 public void selectBackupTransportAsyncForUser(int userId, ComponentName transport, in selectBackupTransportAsyncForUser() argument 665 mService.selectBackupTransportAsync(userId, transport, listener); in selectBackupTransportAsyncForUser() 678 public Intent getConfigurationIntentForUser(int userId, String transport) in getConfigurationIntentForUser() argument 680 return isUserReadyForBackup(userId) ? mService.getConfigurationIntent(userId, transport) in getConfigurationIntentForUser() 685 public Intent getConfigurationIntent(String transport) in getConfigurationIntent() argument 687 return getConfigurationIntentForUser(binderGetCallingUserId(), transport); in getConfigurationIntent() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | IBackupManager.aidl | 439 String selectBackupTransportForUser(int userId, String transport); in selectBackupTransportForUser() argument 446 String selectBackupTransport(String transport); in selectBackupTransport() argument 462 void selectBackupTransportAsyncForUser(int userId, in ComponentName transport, in selectBackupTransportAsyncForUser() argument 477 Intent getConfigurationIntentForUser(int userId, String transport); in getConfigurationIntentForUser() argument 483 Intent getConfigurationIntent(String transport); in getConfigurationIntent() argument 496 String getDestinationStringForUser(int userId, String transport); in getDestinationStringForUser() argument 502 String getDestinationString(String transport); in getDestinationString() argument 512 Intent getDataManagementIntentForUser(int userId, String transport); in getDataManagementIntentForUser() argument 518 Intent getDataManagementIntent(String transport); in getDataManagementIntent() argument 528 CharSequence getDataManagementLabelForUser(int userId, String transport); in getDataManagementLabelForUser() argument
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | PerformClearTask.java | 27 import com.android.server.backup.transport.TransportClient; 50 IBackupTransport transport = null; in run() local 59 transport = mTransportClient.connectOrThrow(callerLogString); in run() 62 transport.clearBackupData(mPackage); in run() 66 if (transport != null) { in run() 69 transport.finishBackup(); in run()
|
D | PerformInitializeTask.java | 35 import com.android.server.backup.transport.TransportClient; 131 IBackupTransport transport = transportClient.connectOrThrow(callerLogString); in run() local 132 int status = transport.initializeDevice(); in run() 136 status = transport.finishBackup(); in run() 161 long delay = transport.requestBackupTime(); in run()
|
D | OnTaskFinishedListener.java | 19 import com.android.server.backup.transport.TransportClient; 20 import com.android.server.backup.transport.TransportConnectionListener;
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 304 verify(transportMock.transport, never()).initializeDevice(); in testRunTask_whenQueueEmpty_doesNotCallTransport() 305 verify(transportMock.transport, never()).performBackup(any(), any(), anyInt()); in testRunTask_whenQueueEmpty_doesNotCallTransport() 306 verify(transportMock.transport, never()).finishBackup(); in testRunTask_whenQueueEmpty_doesNotCallTransport() 346 when(transportMock.transport.getCurrentRestoreSet()).thenReturn(1234L); in testRunTask_whenQueueEmptyOnFirstBackup_doesNotUpdateCurrentToken() 403 when(transportMock.transport.performBackup( in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles() 418 when(transportMock.transport.performBackup( in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState() 434 when(transportMock.transport.getCurrentRestoreSet()).thenReturn(1234L); in testRunTask_whenOnePackage_updatesBookkeeping() 526 verify(transportMock.transport).initializeDevice(); in testRunTask_whenOnePackageAndNoPmState_initializesTransportAndResetsState() 545 verify(transportMock.transport, never()).initializeDevice(); in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState() 553 when(transportMock.transport.initializeDevice()) in testRunTask_whenTransportReturnsErrorForInitialization() [all …]
|
/frameworks/base/location/java/android/location/ |
D | CountryDetector.java | 127 ListenerTransport transport = new ListenerTransport(listener, looper); in addCountryListener() local 129 mService.addCountryListener(transport); in addCountryListener() 130 mListeners.put(listener, transport); in addCountryListener() 144 ListenerTransport transport = mListeners.get(listener); in removeCountryListener() local 145 if (transport != null) { in removeCountryListener() 148 mService.removeCountryListener(transport); in removeCountryListener()
|
D | LocationManager.java | 1000 ListenerTransport transport = mListeners.get(listener); in wrapListener() local 1001 if (transport == null) { in wrapListener() 1002 transport = new ListenerTransport(listener, looper); in wrapListener() 1004 mListeners.put(listener, transport); in wrapListener() 1005 return transport; in wrapListener() 1016 ListenerTransport transport = wrapListener(listener, looper); in requestLocationUpdates() local 1019 mService.requestLocationUpdates(request, transport, intent, packageName); in requestLocationUpdates() 1038 ListenerTransport transport; in removeUpdates() local 1040 transport = mListeners.remove(listener); in removeUpdates() 1042 if (transport == null) return; in removeUpdates() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/ |
D | PerformInitializeTaskTest.java | 53 import com.android.server.backup.transport.TransportClient; 249 configureTransport(transportMocks.get(0).transport, TRANSPORT_ERROR, 0); in testRun_whenOnlyOneTransportFails() 250 configureTransport(transportMocks.get(1).transport, TRANSPORT_OK, TRANSPORT_OK); in testRun_whenOnlyOneTransportFails() 256 verify(transportMocks.get(1).transport).initializeDevice(); in testRun_whenOnlyOneTransportFails() 267 configureTransport(transportMocks.get(0).transport, TRANSPORT_OK, TRANSPORT_OK); in testRun_withMultipleTransports() 268 configureTransport(transportMocks.get(1).transport, TRANSPORT_OK, TRANSPORT_OK); in testRun_withMultipleTransports() 269 configureTransport(transportMocks.get(2).transport, TRANSPORT_OK, TRANSPORT_OK); in testRun_withMultipleTransports() 285 TransportData transport = transportsIterator.next(); in testRun_withMultipleTransports() local 286 verify(mTransportManager).getTransportClient(eq(transport.transportName), any()); in testRun_withMultipleTransports() 298 configureTransport(transportMocks.get(0).transport, TRANSPORT_ERROR, 0); in testRun_whenOnlyOneTransportFails_disposesAllTransports() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactory.java | 192 int transport = bundle.getInt( in handleMessage() local 198 onDataHandoverSetupCompleted(nr, success, transport, fallback, in handleMessage() 217 int transport, Message onCompleteMsg) { in requestNetworkInternal() argument 218 if (mPhone.getDcTracker(transport) != null) { in requestNetworkInternal() 219 mPhone.getDcTracker(transport).requestNetwork(networkRequest, requestType, in requestNetworkInternal() 226 int transport) { in releaseNetworkInternal() argument 227 if (mPhone.getDcTracker(transport) != null) { in releaseNetworkInternal() 228 mPhone.getDcTracker(transport).releaseNetwork(networkRequest, releaseType); in releaseNetworkInternal() 323 int transport = getTransportTypeFromNetworkRequest(networkRequest); in onReleaseNetworkFor() local 324 releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL, transport); in onReleaseNetworkFor() [all …]
|
/frameworks/av/media/libaudiohal/ |
D | FactoryHalHidl.cpp | 85 Return<Transport> transport = sm->getTransport(fqName, instance); in hasHalService() local 86 if (!transport.isOk()) { in hasHalService() 88 fqName.c_str(), instance.c_str(), transport.description().c_str()); in hasHalService() 91 return transport != Transport::EMPTY; in hasHalService()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 68 import com.android.server.backup.transport.TransportClient; 413 IBackupTransport transport = mTransportClient.connectOrThrow("KVBT.startTask()"); in startTask() local 414 String transportName = transport.name(); in startTask() 421 int status = transport.initializeDevice(); in startTask() 544 IBackupTransport transport = mTransportClient.connectOrThrow(callerLogString); in finishTask() local 545 mBackupManagerService.setCurrentToken(transport.getCurrentRestoreSet()); in finishTask() 614 IBackupTransport transport = in triggerTransportInitializationLocked() local 616 mBackupManagerService.getPendingInits().add(transport.name()); in triggerTransportInitializationLocked() 698 IBackupTransport transport = mTransportClient.connectOrThrow("KVBT.extractAgentData()"); in extractAgentData() local 699 long quota = transport.getBackupQuota(packageName, /* isFullBackup */ false); in extractAgentData() [all …]
|
/frameworks/base/core/proto/android/stats/dnsresolver/ |
D | dns_resolver.proto | 172 // Indicates this network uses a Cellular transport. 174 // Indicates this network uses a Wi-Fi transport. 176 // Indicates this network uses a Bluetooth transport. 178 // Indicates this network uses an Ethernet transport. 180 // Indicates this network uses a VPN transport, now deprecated. 182 // Indicates this network uses a Wi-Fi Aware transport. 184 // Indicates this network uses a LoWPAN transport. 186 // Indicates this network uses a Cellular+VPN transport. 188 // Indicates this network uses a Wi-Fi+VPN transport. 190 // Indicates this network uses a Bluetooth+VPN transport. [all …]
|
/frameworks/base/core/java/android/os/ |
D | CancellationSignal.java | 189 public static CancellationSignal fromTransport(ICancellationSignal transport) { in fromTransport() argument 190 if (transport instanceof Transport) { in fromTransport() 191 return ((Transport)transport).mCancellationSignal; in fromTransport()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 55 import com.android.server.backup.transport.TransportClient; 56 import com.android.server.backup.transport.TransportNotAvailableException; 294 IBackupTransport transport = in handleCancel() local 296 transport.cancelFullBackup(); in handleCancel() 346 IBackupTransport transport = mTransportClient.connect("PFTBT.run()"); in run() local 347 if (transport == null) { in run() 380 backupPackageStatus = transport.performFullBackup(currentPackage, in run() 384 quota = transport.getBackupQuota(currentPackage.packageName, in run() 391 transport.getTransportFlags()); in run() 445 backupPackageStatus = transport.sendBackupData(nRead); in run() [all …]
|
/frameworks/base/core/java/android/debug/ |
D | AdbManagerInternal.java | 33 public abstract void registerTransport(IAdbTransport transport); in registerTransport() argument 40 public abstract void unregisterTransport(IAdbTransport transport); in unregisterTransport() argument
|
/frameworks/base/core/proto/android/net/ |
D | networkcapabilities.proto | 32 // Indicates this network uses a Cellular transport. 34 // Indicates this network uses a Wi-Fi transport. 36 // Indicates this network uses a Bluetooth transport. 38 // Indicates this network uses an Ethernet transport. 40 // Indicates this network uses a VPN transport. 42 // Indicates this network uses a Wi-Fi Aware transport. 44 // Indicates this network uses a LoWPAN transport. 119 // bandwidth for the first hop on the given transport. It is not measured,
|