Home
last modified time | relevance | path

Searched refs:mTransport (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java104 private TransportData mTransport; field in ActiveRestoreSessionTest
113 mTransport = backupTransport(); in setUp()
160 setUpTransport(mTransport); in testGetAvailableRestoreSets_withoutPermission()
161 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_withoutPermission()
171 setUpTransport(mTransport); in testGetAvailableRestoreSets_forNullObserver()
172 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_forNullObserver()
182 setUpTransport(mTransport.unregistered()); in testGetAvailableRestoreSets_whenTransportNotRegistered()
183 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_whenTransportNotRegistered()
193 TransportMock transportMock = setUpTransport(mTransport); in testGetAvailableRestoreSets()
196 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java191 private TransportData mTransport; field in KeyValueBackupTaskTest
211 mTransport = backupTransport(); in setUp()
273 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_updatesBookkeeping()
287 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_releasesWakeLock()
298 TransportMock transportMock = setUpTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotProduceData()
304 assertDirectory(getStateDirectory(mTransport)).isEmpty(); in testRunTask_whenQueueEmpty_doesNotProduceData()
310 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotCallTransport()
323 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_notifiesCorrectly()
336 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
338 Files.write(getStateFile(mTransport, PM_PACKAGE), "pmState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
[all …]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DService.java35 private final Transport mTransport; field in Service
40 mTransport = transport; in Service()
53 return mTransport; in getTransport()
57 return mTransport.getLogger(); in getLogger()
61 mTransport.registerService(mServiceId, this); in start()
65 mTransport.unregisterService(mServiceId); in stop()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java83 private TransportData mTransport; field in PerformInitializeTaskTest
90 mTransport = backupTransport(); in setUp()
91 mTransportName = mTransport.transportName; in setUp()
103 setUpTransport(mTransport); in testRun_callsTransportCorrectly()
115 setUpTransport(mTransport); in testRun_callsBackupManagerCorrectly()
122 .recordInitPending(false, mTransportName, mTransport.transportDirName); in testRun_callsBackupManagerCorrectly()
124 .resetBackupState(eq(new File(mBaseStateDir, mTransport.transportDirName))); in testRun_callsBackupManagerCorrectly()
129 setUpTransport(mTransport); in testRun_callsObserverAndListenerCorrectly()
142 setUpTransport(mTransport); in testRun_whenInitializeDeviceFails()
151 .recordInitPending(true, mTransportName, mTransport.transportDirName); in testRun_whenInitializeDeviceFails()
[all …]
/frameworks/base/core/java/android/database/
DContentObserver.java53 private Transport mTransport; // guarded by mLock field in ContentObserver
73 if (mTransport == null) { in getContentObserver()
74 mTransport = new Transport(this); in getContentObserver()
76 return mTransport; in getContentObserver()
89 final Transport oldTransport = mTransport; in releaseContentObserver()
92 mTransport = null; in releaseContentObserver()
/frameworks/base/obex/javax/obex/
DServerSession.java52 private ObexTransport mTransport; field in ServerSession
77 mTransport = trans; in ServerSession()
78 mInput = mTransport.openInputStream(); in ServerSession()
79 mOutput = mTransport.openOutputStream(); in ServerSession()
170 if (length > ObexHelper.getMaxRxPacketSize(mTransport)) { in handleAbortRequest()
313 if (length > ObexHelper.getMaxRxPacketSize(mTransport)) { in handleSetPathRequest()
435 if (length > ObexHelper.getMaxRxPacketSize(mTransport)) { in handleDisconnectRequest()
565 if(mMaxPacketLength > ObexHelper.getMaxTxPacketSize(mTransport)) { in handleConnectRequest()
568 + ObexHelper.getMaxTxPacketSize(mTransport) in handleConnectRequest()
570 mMaxPacketLength = ObexHelper.getMaxTxPacketSize(mTransport); in handleConnectRequest()
[all …]
DClientSession.java73 private final ObexTransport mTransport; field in ClientSession
81 mTransport = trans; in ClientSession()
97 mTransport = trans; in ClientSession()
129 int maxRxPacketSize = ObexHelper.getMaxRxPacketSize(mTransport); in connect()
516 if (length > ObexHelper.getMaxRxPacketSize(mTransport)) { in sendRequest()
534 if(mMaxTxPacketSize > ObexHelper.getMaxTxPacketSize(mTransport)) { in sendRequest()
539 + ObexHelper.getMaxTxPacketSize(mTransport) in sendRequest()
541 mMaxTxPacketSize = ObexHelper.getMaxTxPacketSize(mTransport); in sendRequest()
DServerOperation.java88 private ObexTransport mTransport; field in ServerOperation
142 mTransport = p.getTransport(); in ServerOperation()
185 if (packet.mLength > ObexHelper.getMaxRxPacketSize(mTransport)) { in ServerOperation()
188 + packet.mLength + " maxLength: " + ObexHelper.getMaxRxPacketSize(mTransport)); in ServerOperation()
290 if(mTransport.isSrmSupported() && srmMode != null in updateRequestHeaders()
569 if (packet.mLength > ObexHelper.getMaxRxPacketSize(mTransport)) { in sendReply()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DSourceActivity.java54 private UsbAccessoryStreamTransport mTransport; field in SourceActivity
163 mTransport = new UsbAccessoryStreamTransport(mLogger, fd); in connect()
165 mTransport.startReading(); in connect()
175 if (mTransport != null) { in disconnect()
176 mTransport.close(); in disconnect()
177 mTransport = null; in disconnect()
182 mDisplaySourceService = new DisplaySourceService(this, mTransport, mPresenter); in startServices()
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/
DTransportClient.java108 private volatile IBackupTransport mTransport; field in TransportClient
246 notifyListener(listener, mTransport, caller); in connectAsync()
318 IBackupTransport transport = mTransport;
386 IBackupTransport transport = mTransport; in getConnectedTransport()
516 mTransport = transport; in setStateLocked()
559 mTransport == null, "Transport expected to be null when state = UNUSABLE"); in checkStateIntegrityLocked()
562 checkState(mTransport == null, "Transport expected to be null when state = IDLE"); in checkStateIntegrityLocked()
566 mTransport == null, in checkStateIntegrityLocked()
572 mTransport != null, in checkStateIntegrityLocked()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DSinkActivity.java80 private UsbAccessoryBulkTransport mTransport; field in SinkActivity
228 mTransport = new UsbAccessoryBulkTransport(mLogger, conn, bulkIn, bulkOut); in connect()
233 mTransport.startReading(); in connect()
284 if (mTransport != null) { in disconnect()
285 mTransport.close(); in disconnect()
286 mTransport = null; in disconnect()
405 mDisplaySinkService = new DisplaySinkService(this, mTransport, in startServices()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java121 private TransportData mTransport; field in UserBackupManagerServiceTest
134 mTransport = backupTransport(); in setUp()
135 mTransportName = mTransport.transportName; in setUp()
221 setUpCurrentTransport(mTransportManager, mTransport); in testIsAppEligibleForBackup_whenAppNotEligible()
256 setUpCurrentTransport(mTransportManager, mTransport); in testIsAppEligibleForBackup_withoutPermission()
274 TransportMock transportMock = setUpCurrentTransport(mTransportManager, mTransport); in testFilterAppsEligibleForBackup()
312 setUpCurrentTransport(mTransportManager, mTransport); in testFilterAppsEligibleForBackup_withoutPermission()
430 setUpTransports(mTransportManager, mTransport.unregistered()); in testSelectBackupTransportAsync_whenTransportGetsUnregistered()
431 ComponentName newTransportComponent = mTransport.getTransportComponent(); in testSelectBackupTransportAsync_whenTransportGetsUnregistered()
477 .thenReturn(mTransport.getTransportComponent()); in testGetCurrentTransportComponent()
[all …]
/frameworks/base/core/java/android/content/
DContentProvider.java140 private Transport mTransport = new Transport(); field in ContentProvider
700 if (mTransport.mReadOp != AppOpsManager.OP_NONE in enforceReadPermission()
701 && mTransport.mReadOp != AppOpsManager.permissionToOpCode(mReadPermission)) { in enforceReadPermission()
703 AppOpsManager.opToPublicName(mTransport.mReadOp), in enforceReadPermission()
718 if (mTransport.mWriteOp != AppOpsManager.OP_NONE in enforceWritePermission()
719 && mTransport.mWriteOp != AppOpsManager.permissionToOpCode(mWritePermission)) { in enforceWritePermission()
721 AppOpsManager.opToPublicName(mTransport.mWriteOp), in enforceWritePermission()
984 mTransport.mAppOpsManager.checkPackage(Binder.getCallingUid(), in getCallingAttributionSource()
1195 mTransport.mReadOp = readOp; in setAppOps()
1196 mTransport.mWriteOp = writeOp; in setAppOps()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattServer.java57 private int mTransport; field in BluetoothGattServer
395 mTransport = transport; in BluetoothGattServer()
586 mServerIf, device.getAddress(), !autoConnect, mTransport, mAttributionSource); in connect()
DBluetoothGatt.java70 private int mTransport; field in BluetoothGatt
202 !mAutoConnect, mTransport, mOpportunistic,
737 mTransport = transport; in BluetoothGatt()
987 mService.clientConnect(mClientIf, mDevice.getAddress(), false, mTransport, in connect()
/frameworks/base/core/java/android/accounts/
DAbstractAccountAuthenticator.java520 private Transport mTransport = new Transport(); field in AbstractAccountAuthenticator
526 return mTransport.asBinder(); in getIBinder()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt328 Landroid/accounts/AbstractAccountAuthenticator;->mTransport:Landroid/accounts/AbstractAccountAuthen…
10227 Landroid/bluetooth/BluetoothGattServer;->mTransport:I
12990 Landroid/content/ContentProvider;->mTransport:Landroid/content/ContentProvider$Transport;
17185 Landroid/database/ContentObserver;->mTransport:Landroid/database/ContentObserver$Transport;