Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java102 private TransportData mTransport; field in ActiveRestoreSessionTest
111 mTransport = backupTransport(); in setUp()
158 setUpTransport(mTransport); in testGetAvailableRestoreSets_withoutPermission()
159 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_withoutPermission()
169 setUpTransport(mTransport); in testGetAvailableRestoreSets_forNullObserver()
170 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_forNullObserver()
180 setUpTransport(mTransport.unregistered()); in testGetAvailableRestoreSets_whenTransportNotRegistered()
181 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_whenTransportNotRegistered()
191 TransportMock transportMock = setUpTransport(mTransport); in testGetAvailableRestoreSets()
194 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java186 private TransportData mTransport; field in KeyValueBackupTaskTest
205 mTransport = backupTransport(); in setUp()
265 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_updatesBookkeeping()
279 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_releasesWakeLock()
290 TransportMock transportMock = setUpTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotProduceData()
296 assertDirectory(getStateDirectory(mTransport)).isEmpty(); in testRunTask_whenQueueEmpty_doesNotProduceData()
302 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotCallTransport()
315 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_notifiesCorrectly()
328 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
330 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.java146 private Transport mTransport = new Transport(); field in ContentProvider
736 return mTransport.noteProxyOp(callingPkg, attributionTag, in checkPermissionAndAppOp()
954 mTransport.mAppOpsManager.checkPackage(Binder.getCallingUid(), pkg.first); in getCallingPackage()
1166 mTransport.mReadOp = readOp; in setAppOps()
1167 mTransport.mWriteOp = writeOp; in setAppOps()
1173 return mTransport.mAppOpsManager; in getAppOpsManager()
1178 if (mTransport == null) { in setTransportLoggingEnabled()
1182 mTransport.mInterface = new LoggingContentInterface(getClass().getSimpleName(), this); in setTransportLoggingEnabled()
1184 mTransport.mInterface = this; in setTransportLoggingEnabled()
2337 return mTransport; in getIContentProvider()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattServer.java49 private int mTransport; field in BluetoothGattServer
384 mTransport = transport; in BluetoothGattServer()
547 mService.serverConnect(mServerIf, device.getAddress(), !autoConnect, mTransport); in connect()
DBluetoothGatt.java64 private int mTransport; field in BluetoothGatt
193 !mAutoConnect, mTransport, mOpportunistic,
697 mTransport = transport; in BluetoothGatt()
915 mService.clientConnect(mClientIf, mDevice.getAddress(), false, mTransport, in connect()
/frameworks/base/core/java/android/accounts/
DAbstractAccountAuthenticator.java519 private Transport mTransport = new Transport(); field in AbstractAccountAuthenticator
525 return mTransport.asBinder(); in getIBinder()