Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java107 private TransportData mTransport; field in ActiveRestoreSessionTest
116 mTransport = backupTransport(); in setUp()
165 setUpTransport(mTransport); in testGetAvailableRestoreSets_withoutPermission()
166 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_withoutPermission()
176 setUpTransport(mTransport); in testGetAvailableRestoreSets_forNullObserver()
177 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_forNullObserver()
187 setUpTransport(mTransport.unregistered()); in testGetAvailableRestoreSets_whenTransportNotRegistered()
188 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets_whenTransportNotRegistered()
198 TransportMock transportMock = setUpTransport(mTransport); in testGetAvailableRestoreSets()
201 IRestoreSession restoreSession = createActiveRestoreSession(PACKAGE_1, mTransport); in testGetAvailableRestoreSets()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java200 private TransportData mTransport; field in KeyValueBackupTaskTest
220 mTransport = backupTransport(); in setUp()
284 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_updatesBookkeeping()
298 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_releasesWakeLock()
309 TransportMock transportMock = setUpTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotProduceData()
315 assertDirectory(getStateDirectory(mTransport)).isEmpty(); in testRunTask_whenQueueEmpty_doesNotProduceData()
321 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotCallTransport()
334 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_notifiesCorrectly()
347 TransportMock transportMock = setUpInitializedTransport(mTransport); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
349 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/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/core/java/android/database/
DContentObserver.java55 private Transport mTransport; // guarded by mLock field in ContentObserver
88 if (mTransport == null) { in getContentObserver()
89 mTransport = new Transport(this); in getContentObserver()
91 return mTransport; in getContentObserver()
104 final Transport oldTransport = mTransport; in releaseContentObserver()
107 mTransport = null; in releaseContentObserver()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportConnection.java109 private volatile BackupTransportClient mTransport; field in TransportConnection
249 notifyListener(listener, mTransport, caller); in connectAsync()
321 BackupTransportClient transport = mTransport;
390 BackupTransportClient transport = mTransport; in getConnectedTransport()
452 if (mTransport != null) { in onServiceDisconnected()
453 mTransport.onBecomingUnusable(); in onServiceDisconnected()
479 if (mTransport != null) { in onBindingDied()
480 mTransport.onBecomingUnusable(); in onBindingDied()
527 mTransport = transport; in setStateLocked()
570 mTransport == null, "Transport expected to be null when state = UNUSABLE"); in checkStateIntegrityLocked()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataNetwork.java722 private int mTransport; field in DataNetwork
1046 mTransport = transport; in DataNetwork()
1452 + ((mTransport == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) ? "C" : "I");
1460 if (mTransport == AccessNetworkConstants.TRANSPORT_TYPE_WLAN) {
1564 mDataServiceManagers.get(mTransport)
1684 if (mTransport == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) {
1706 mPcoData.getOrDefault(mCid.get(mTransport), Collections.emptyMap())
1751 + AccessNetworkConstants.transportTypeToString(mTransport)
1753 mDataServiceManagers.get(mTransport).startHandover(mCid.get(mTransport),
1827 if (transport != mTransport) {
[all …]
DDataRetryManager.java825 private int mTransport = AccessNetworkConstants.TRANSPORT_TYPE_INVALID; field in Builder
873 mTransport = transport; in setTransport()
887 if (mTransport != AccessNetworkConstants.TRANSPORT_TYPE_WWAN in build()
888 && mTransport != AccessNetworkConstants.TRANSPORT_TYPE_WLAN) { in build()
889 throw new IllegalArgumentException("Invalid transport type " + mTransport); in build()
897 mTransport, (DataSetupRetryRule) mAppliedDataRetryRule, mRetryDelayMillis); in build()
/frameworks/base/media/java/android/media/midi/
DMidiManager.java116 private final int mTransport; field in MidiManager.DeviceListener
121 mTransport = transport; in DeviceListener()
167 if (mTransport == TRANSPORT_UNIVERSAL_MIDI_PACKETS) { in shouldInvokeCallback()
169 } else if (mTransport == TRANSPORT_MIDI_BYTE_STREAM) { in shouldInvokeCallback()
172 Log.e(TAG, "Invalid transport type: " + mTransport); in shouldInvokeCallback()
/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.java123 private TransportData mTransport; field in UserBackupManagerServiceTest
136 mTransport = backupTransport(); in setUp()
137 mTransportName = mTransport.transportName; in setUp()
223 setUpCurrentTransport(mTransportManager, mTransport); in testIsAppEligibleForBackup_whenAppNotEligible()
258 setUpCurrentTransport(mTransportManager, mTransport); in testIsAppEligibleForBackup_withoutPermission()
276 TransportMock transportMock = setUpCurrentTransport(mTransportManager, mTransport); in testFilterAppsEligibleForBackup()
314 setUpCurrentTransport(mTransportManager, mTransport); in testFilterAppsEligibleForBackup_withoutPermission()
452 setUpTransports(mTransportManager, mTransport.unregistered()); in testSelectBackupTransportAsync_whenTransportGetsUnregistered()
453 ComponentName newTransportComponent = mTransport.getTransportComponent(); in testSelectBackupTransportAsync_whenTransportGetsUnregistered()
499 .thenReturn(mTransport.getTransportComponent()); in testGetCurrentTransportComponent()
[all …]
/frameworks/base/core/java/android/content/
DContentProvider.java163 private Transport mTransport = new Transport(); field in ContentProvider
824 if (mTransport.mReadOp != AppOpsManager.OP_NONE in enforceReadPermission()
825 && mTransport.mReadOp != AppOpsManager.permissionToOpCode(mReadPermission)) { in enforceReadPermission()
827 AppOpsManager.opToPublicName(mTransport.mReadOp), in enforceReadPermission()
842 if (mTransport.mWriteOp != AppOpsManager.OP_NONE in enforceWritePermission()
843 && mTransport.mWriteOp != AppOpsManager.permissionToOpCode(mWritePermission)) { in enforceWritePermission()
845 AppOpsManager.opToPublicName(mTransport.mWriteOp), in enforceWritePermission()
1178 mTransport.mAppOpsManager.checkPackage(Binder.getCallingUid(), in getCallingAttributionSource()
1395 mTransport.mReadOp = readOp; in setAppOps()
1396 mTransport.mWriteOp = writeOp; in setAppOps()
[all …]
/frameworks/base/core/java/android/accounts/
DAbstractAccountAuthenticator.java535 private Transport mTransport = new Transport(); field in AbstractAccountAuthenticator
541 return mTransport.asBinder(); in getIBinder()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt328 Landroid/accounts/AbstractAccountAuthenticator;->mTransport:Landroid/accounts/AbstractAccountAuthen…
10112 Landroid/content/ContentProvider;->mTransport:Landroid/content/ContentProvider$Transport;
14307 Landroid/database/ContentObserver;->mTransport:Landroid/database/ContentObserver$Transport;