/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TransportTestUtils.java | 38 import com.android.server.backup.transport.BackupTransportClient; 39 import com.android.server.backup.transport.TransportConnection; 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() [all …]
|
/frameworks/base/core/java/com/android/internal/listeners/ |
D | ListenerTransportManager.java | 56 public final void addListener(Object key, TTransport transport) { in addListener() argument 70 registerTransport(transport); in addListener() 72 registerTransport(transport, oldTransport); in addListener() 75 mRegistrations.put(key, new WeakReference<>(transport)); in addListener() 92 TTransport transport = transportRef.get(); in removeListener() local 93 if (transport != null) { in removeListener() 94 transport.unregister(); in removeListener() 95 unregisterTransport(transport); in removeListener() 107 protected abstract void registerTransport(TTransport transport) throws RemoteException; in registerTransport() argument 113 protected void registerTransport(TTransport transport, TTransport oldTransport) in registerTransport() argument [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/transport/ |
D | CompanionTransportManager.java | 17 package com.android.server.companion.transport; 165 final Transport transport = mTransports.removeReturnOld(associationId); in detachSystemDataTransport() local 166 if (transport == null) { in detachSystemDataTransport() 170 transport.stop(); in detachSystemDataTransport() 206 Transport transport; in initializeTransport() local 210 transport = new RawTransport(associationId, fd, mContext); in initializeTransport() 215 transport = new SecureTransport(associationId, fd, mContext, testKey, null); in initializeTransport() 219 transport = new SecureTransport(associationId, fd, mContext, preSharedKey, null); in initializeTransport() 223 transport = new SecureTransport(associationId, fd, mContext); in initializeTransport() 226 addMessageListenersToTransport(transport); in initializeTransport() [all …]
|
/frameworks/proto_logging/stats/enums/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 | 63 // Indicates this network uses a Cellular transport 65 // Indicates this network uses a Wi-Fi transport 67 // Indicates this network uses a Bluetooth transport 69 // Indicates this network uses an Ethernet transport 71 // Indicates this network uses a Wi-Fi Aware transport 73 // Indicates this network uses a LoWPAN transport 75 // Indicates this network uses a Cellular+VPN transport 77 // Indicates this network uses a Wi-Fi+VPN transport 79 // Indicates this network uses a Bluetooth+VPN transport 81 // Indicates this network uses an Ethernet+VPN transport [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/ |
D | DataRetryManager.java | 241 public final int transport; field in DataRetryManager.DataThrottlingEntry 269 @Nullable DataNetwork dataNetwork, @TransportType int transport, in DataThrottlingEntry() argument 274 this.transport = transport; in DataThrottlingEntry() 284 + AccessNetworkConstants.transportTypeToString(transport) + ", expiration time=" in toString() 755 public final int transport; field in DataSetupRetryEntry 770 @TransportType int transport, in DataSetupRetryEntry() argument 776 this.transport = transport; in DataSetupRetryEntry() 798 + ", transport=" + AccessNetworkConstants.transportTypeToString(transport) in toString() 872 public Builder<T> setTransport(@TransportType int transport) { in setTransport() argument 873 mTransport = transport; in setTransport() [all …]
|
/frameworks/proto_logging/stats/enums/net/ |
D | enums.proto | 25 // Indicates this network uses a Cellular transport. 27 // Indicates this network uses a Wi-Fi transport. 29 // Indicates this network uses a Bluetooth transport. 31 // Indicates this network uses an Ethernet transport. 33 // Indicates this network uses a VPN transport. 35 // Indicates this network uses a Wi-Fi Aware transport. 37 // Indicates this network uses a LoWPAN transport. 39 // Indicates this network uses a Satellite transport.
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | PerformClearTask.java | 26 import com.android.server.backup.transport.BackupTransportClient; 27 import com.android.server.backup.transport.TransportConnection; 50 BackupTransportClient transport = null; in run() local 60 transport = mTransportConnection.connectOrThrow(callerLogString); in run() 63 transport.clearBackupData(mPackage); in run() 67 if (transport != null) { in run() 70 transport.finishBackup(); in run()
|
D | PerformInitializeTask.java | 34 import com.android.server.backup.transport.BackupTransportClient; 35 import com.android.server.backup.transport.TransportConnection; 131 BackupTransportClient transport = transportConnection.connectOrThrow( in run() local 133 int status = transport.initializeDevice(); in run() 137 status = transport.finishBackup(); in run() 162 long delay = transport.requestBackupTime(); in run()
|
D | OnTaskFinishedListener.java | 19 import com.android.server.backup.transport.TransportConnection; 20 import com.android.server.backup.transport.TransportConnectionListener;
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportConnection.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; 321 BackupTransportClient transport = mTransport; 322 if (transport != null) { 324 return transport; 345 transport = transportFuture.get(); 349 return transport; 371 BackupTransportClient transport = connect(caller); in connectOrThrow() local 372 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()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | TransportManager.java | 46 import com.android.server.backup.transport.BackupTransportClient; 47 import com.android.server.backup.transport.OnTransportRegisteredListener; 48 import com.android.server.backup.transport.TransportConnection; 49 import com.android.server.backup.transport.TransportConnectionListener; 50 import com.android.server.backup.transport.TransportConnectionManager; 51 import com.android.server.backup.transport.TransportNotAvailableException; 52 import com.android.server.backup.transport.TransportNotRegisteredException; 53 import com.android.server.backup.transport.TransportStats; 676 private boolean isTransportTrusted(ComponentName transport) { in isTransportTrusted() argument 677 if (!mTransportWhitelist.contains(transport)) { in isTransportTrusted() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | IBackupManager.aidl | 456 String selectBackupTransportForUser(int userId, String transport); in selectBackupTransportForUser() argument 463 String selectBackupTransport(String transport); in selectBackupTransport() argument 479 void selectBackupTransportAsyncForUser(int userId, in ComponentName transport, in selectBackupTransportAsyncForUser() argument 494 Intent getConfigurationIntentForUser(int userId, String transport); in getConfigurationIntentForUser() argument 500 Intent getConfigurationIntent(String transport); in getConfigurationIntent() argument 513 String getDestinationStringForUser(int userId, String transport); in getDestinationStringForUser() argument 519 String getDestinationString(String transport); in getDestinationString() argument 529 Intent getDataManagementIntentForUser(int userId, String transport); in getDataManagementIntentForUser() argument 535 Intent getDataManagementIntent(String transport); in getDataManagementIntent() argument 545 CharSequence getDataManagementLabelForUser(int userId, String transport); in getDataManagementLabelForUser() argument
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 327 verify(transportMock.transport, never()).initializeDevice(); in testRunTask_whenQueueEmpty_doesNotCallTransport() 328 verify(transportMock.transport, never()).performBackup(any(), any(), anyInt()); in testRunTask_whenQueueEmpty_doesNotCallTransport() 329 verify(transportMock.transport, never()).finishBackup(); in testRunTask_whenQueueEmpty_doesNotCallTransport() 367 when(transportMock.transport.getCurrentRestoreSet()).thenReturn(1234L); in testRunTask_whenQueueEmptyOnFirstBackup_doesNotUpdateCurrentToken() 424 when(transportMock.transport.performBackup( in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles() 439 when(transportMock.transport.performBackup( in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState() 455 when(transportMock.transport.getCurrentRestoreSet()).thenReturn(1234L); in testRunTask_whenOnePackage_updatesBookkeeping() 550 verify(transportMock.transport).initializeDevice(); in testRunTask_whenOnePackageAndNoPmState_initializesTransportAndResetsState() 569 verify(transportMock.transport, never()).initializeDevice(); in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState() 577 when(transportMock.transport.initializeDevice()) in testRunTask_whenTransportReturnsErrorForInitialization() [all …]
|
/frameworks/base/core/java/android/service/credentials/ |
D | CredentialProviderService.java | 251 ICancellationSignal transport = CancellationSignal.createTransport(); 253 callback.onCancellable(transport); 261 CancellationSignal.fromTransport(transport), 290 ICancellationSignal transport = CancellationSignal.createTransport(); 292 callback.onCancellable(transport); 300 CancellationSignal.fromTransport(transport), 329 ICancellationSignal transport = CancellationSignal.createTransport(); 331 callback.onCancellable(transport); 339 CancellationSignal.fromTransport(transport),
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/ |
D | PerformInitializeTaskTest.java | 52 import com.android.server.backup.transport.BackupTransportClient; 53 import com.android.server.backup.transport.TransportConnection; 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() [all …]
|
/frameworks/base/location/java/android/location/ |
D | CountryDetector.java | 157 ListenerTransport transport = new ListenerTransport(consumer, executor); in registerCountryDetectorCallback() local 159 mService.addCountryListener(transport); in registerCountryDetectorCallback() 160 mListeners.put(consumer, transport); in registerCountryDetectorCallback() 170 ListenerTransport transport = mListeners.remove(consumer); in unregisterCountryDetectorCallback() local 171 if (transport != null) { in unregisterCountryDetectorCallback() 173 mService.removeCountryListener(transport); in unregisterCountryDetectorCallback()
|
D | LocationManager.java | 1032 GetCurrentLocationTransport transport = new GetCurrentLocationTransport(executor, consumer, in getCurrentLocation() local 1038 locationRequest, transport, mContext.getPackageName(), in getCurrentLocation() 1585 LocationListenerTransport transport = reference != null ? reference.get() : null; in requestLocationUpdates() local 1586 if (transport == null) { in requestLocationUpdates() 1587 transport = new LocationListenerTransport(listener, executor); in requestLocationUpdates() 1589 Preconditions.checkState(transport.isRegistered()); in requestLocationUpdates() 1590 transport.setExecutor(executor); in requestLocationUpdates() 1593 mService.registerLocationListener(provider, locationRequest, transport, in requestLocationUpdates() 1597 sLocationListeners.put(listener, new WeakReference<>(transport)); in requestLocationUpdates() 1705 LocationListenerTransport transport = ref != null ? ref.get() : null; in requestFlush() local [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 67 import com.android.server.backup.transport.BackupTransportClient; 68 import com.android.server.backup.transport.TransportConnection; 69 import com.android.server.backup.transport.TransportNotAvailableException; 426 BackupTransportClient transport = in informTransportOfUnchangedApps() local 451 sendNoDataChangedTo(transport, packageInfo, flags); in informTransportOfUnchangedApps() 461 sendNoDataChangedTo(transport, endSentinal, flags); in informTransportOfUnchangedApps() 476 private void sendNoDataChangedTo(BackupTransportClient transport, PackageInfo packageInfo, in sendNoDataChangedTo() argument 486 int result = transport.performBackup(packageInfo, pfd, flags); in sendNoDataChangedTo() 495 transport.finishBackup(); in sendNoDataChangedTo() 617 BackupTransportClient transport = mTransportConnection.connectOrThrow( in startTask() local [all …]
|
/frameworks/base/core/java/android/service/autofill/ |
D | AutofillService.java | 620 ICancellationSignal transport = CancellationSignal.createTransport(); 622 callback.onCancellable(transport); 628 AutofillService.this, request, CancellationSignal.fromTransport(transport), 645 ICancellationSignal transport = CancellationSignal.createTransport(); 647 callback.onCancellable(transport); 653 AutofillService.this, request, CancellationSignal.fromTransport(transport),
|
/frameworks/base/core/java/android/service/ondeviceintelligence/ |
D | OnDeviceSandboxedInferenceService.java | 171 ICancellationSignal transport = null; in onBind() local 173 transport = CancellationSignal.createTransport(); in onBind() 174 cancellationSignalFuture.complete(transport); in onBind() 183 CancellationSignal.fromTransport(transport), in onBind() 196 ICancellationSignal transport = null; in onBind() local 198 transport = CancellationSignal.createTransport(); in onBind() 199 cancellationSignalFuture.complete(transport); in onBind() 215 CancellationSignal.fromTransport(transport), in onBind() 228 ICancellationSignal transport = null; in onBind() local 230 transport = CancellationSignal.createTransport(); in onBind() [all …]
|
/frameworks/base/core/java/android/service/rotationresolver/ |
D | RotationResolverService.java | 126 final ICancellationSignal transport = CancellationSignal.createTransport(); in onBind() local 127 callback.onCancellable(transport); in onBind() 130 RotationResolverService.this, callback, request, transport)); in onBind() 139 RotationResolutionRequest request, ICancellationSignal transport) { 150 mCancellationSignal = CancellationSignal.fromTransport(transport);
|
/frameworks/base/core/java/android/net/vcn/ |
D | VcnConfig.java | 151 final int transport = iterator.next(); in validate() local 152 if (!ALLOWED_TRANSPORTS.contains(transport)) { in validate() 157 + transport in validate() 161 if (transport == TRANSPORT_TEST && !mIsTestModeProfile) { in validate() 324 for (int transport : restrictedTransports) { in validateRestrictedTransportsOrThrow() 325 if (!ALLOWED_TRANSPORTS.contains(transport)) { in validateRestrictedTransportsOrThrow() 326 throw new IllegalArgumentException("Invalid transport " + transport); in validateRestrictedTransportsOrThrow()
|
/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
|