/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/backuplib/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; 46 import com.android.server.backup.transport.TransportUtils.Priority; 318 IBackupTransport transport = mTransport; 319 if (transport != null) { 321 return transport; 342 transport = transportFuture.get(); 346 return transport; 367 IBackupTransport transport = connect(caller); in connectOrThrow() local 368 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/backuplib/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 …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 308 verify(transportMock.transport, never()).initializeDevice(); in testRunTask_whenQueueEmpty_doesNotCallTransport() 309 verify(transportMock.transport, never()).performBackup(any(), any(), anyInt()); in testRunTask_whenQueueEmpty_doesNotCallTransport() 310 verify(transportMock.transport, never()).finishBackup(); in testRunTask_whenQueueEmpty_doesNotCallTransport() 348 when(transportMock.transport.getCurrentRestoreSet()).thenReturn(1234L); in testRunTask_whenQueueEmptyOnFirstBackup_doesNotUpdateCurrentToken() 405 when(transportMock.transport.performBackup( in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles() 420 when(transportMock.transport.performBackup( in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState() 436 when(transportMock.transport.getCurrentRestoreSet()).thenReturn(1234L); in testRunTask_whenOnePackage_updatesBookkeeping() 528 verify(transportMock.transport).initializeDevice(); in testRunTask_whenOnePackageAndNoPmState_initializesTransportAndResetsState() 547 verify(transportMock.transport, never()).initializeDevice(); in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState() 555 when(transportMock.transport.initializeDevice()) in testRunTask_whenTransportReturnsErrorForInitialization() [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/packages/BackupEncryption/src/com/android/server/backup/encryption/transport/ |
D | IntermediateEncryptingTransportManager.java | 17 package com.android.server.backup.encryption.transport; 30 import com.android.server.backup.transport.TransportClientManager; 31 import com.android.server.backup.transport.TransportStats; 100 IntermediateEncryptingTransport transport; in cleanup() local 102 transport = mTransports.remove(transportIntent.getComponent()); in cleanup() 104 if (transport != null) { in cleanup() 105 mTransportClientManager.disposeOfTransportClient(transport.getClient(), CALLER); in cleanup()
|
/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/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 | 722 GetCurrentLocationTransport transport = new GetCurrentLocationTransport(executor, in getCurrentLocation() local 733 transport, mContext.getPackageName(), mContext.getAttributionTag(), in getCurrentLocation() 734 transport.getListenerId())) { in getCurrentLocation() 735 transport.register(mContext.getSystemService(AlarmManager.class), in getCurrentLocation() 738 cancellationSignal.setOnCancelListener(transport::cancel); in getCurrentLocation() 741 transport.fail(); in getCurrentLocation() 1168 LocationListenerTransport transport = mListeners.get(listener); in requestLocationUpdates() local 1169 if (transport != null) { in requestLocationUpdates() 1170 transport.unregister(); in requestLocationUpdates() 1172 transport = new LocationListenerTransport(listener); in requestLocationUpdates() [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/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 68 import com.android.server.backup.transport.TransportClient; 69 import com.android.server.backup.transport.TransportNotAvailableException; 415 IBackupTransport transport = in informTransportOfUnchangedApps() local 440 sendNoDataChangedTo(transport, packageInfo, flags); in informTransportOfUnchangedApps() 450 sendNoDataChangedTo(transport, endSentinal, flags); in informTransportOfUnchangedApps() 465 private void sendNoDataChangedTo(IBackupTransport transport, PackageInfo packageInfo, int flags) in sendNoDataChangedTo() argument 475 int result = transport.performBackup(packageInfo, pfd, flags); in sendNoDataChangedTo() 484 transport.finishBackup(); in sendNoDataChangedTo() 606 IBackupTransport transport = mTransportClient.connectOrThrow("KVBT.startTask()"); in startTask() local 607 String transportName = transport.name(); in startTask() [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/packages/BackupEncryption/test/unittest/src/com/android/server/backup/encryption/transport/ |
D | IntermediateEncryptingTransportManagerTest.java | 17 package com.android.server.backup.encryption.transport; 37 import com.android.server.backup.transport.TransportClient; 38 import com.android.server.backup.transport.TransportClientManager; 97 IntermediateEncryptingTransport transport = in testCleanup_disposesTransportClient() local
|
/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/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/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/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 54 import com.android.server.backup.transport.TransportClient; 55 import com.android.server.backup.transport.TransportNotAvailableException; 297 IBackupTransport transport = in handleCancel() local 299 transport.cancelFullBackup(); in handleCancel() 350 IBackupTransport transport = mTransportClient.connect("PFTBT.run()"); in run() local 351 if (transport == null) { in run() 384 backupPackageStatus = transport.performFullBackup(currentPackage, in run() 388 quota = transport.getBackupQuota(currentPackage.packageName, in run() 395 transport.getTransportFlags()); in run() 449 backupPackageStatus = transport.sendBackupData(nRead); in run() [all …]
|