Home
last modified time | relevance | path

Searched refs:mServer (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java136 private SntpTestServer mServer; field in SntpClientTest
145 mServer = new SntpTestServer(); in setUp()
164 mServer.setServerReply(HexEncoding.decode(LATE_ERA_RESPONSE.toCharArray(), false)); in testRequestTime_era0ClientEra0RServer()
165 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era0ClientEra0RServer()
166 assertEquals(1, mServer.numRequestsReceived()); in testRequestTime_era0ClientEra0RServer()
167 assertEquals(1, mServer.numRepliesSent()); in testRequestTime_era0ClientEra0RServer()
177 mServer.setServerReply(HexEncoding.decode(EARLY_ERA_RESPONSE.toCharArray(), false)); in testRequestTime_era0ClientEra1Server()
178 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era0ClientEra1Server()
179 assertEquals(1, mServer.numRequestsReceived()); in testRequestTime_era0ClientEra1Server()
180 assertEquals(1, mServer.numRepliesSent()); in testRequestTime_era0ClientEra1Server()
[all …]
/frameworks/base/media/java/android/media/midi/
DMidiDeviceService.java54 private MidiDeviceServer mServer; field in MidiDeviceService
91 mServer = server; in onCreate()
109 if (mServer == null) { in getOutputPortReceivers()
112 return mServer.getOutputPortReceivers(); in getOutputPortReceivers()
140 if (SERVICE_INTERFACE.equals(intent.getAction()) && mServer != null) { in onBind()
141 return mServer.getBinderInterface().asBinder(); in onBind()
DMidiUmpDeviceService.java66 private MidiDeviceServer mServer; field in MidiUmpDeviceService
109 mServer = server; in onCreate()
130 if (mServer == null) { in getOutputPortReceivers()
133 return Arrays.asList(mServer.getOutputPortReceivers()); in getOutputPortReceivers()
165 if (SERVICE_INTERFACE.equals(intent.getAction()) && mServer != null) { in onBind()
166 return mServer.getBinderInterface().asBinder(); in onBind()
DMidiDeviceServer.java208 private final IMidiDeviceServer mServer = new IMidiDeviceServer.Stub() { field in MidiDeviceServer
447 return mServer; in getBinderInterface()
451 return mServer.asBinder(); in asBinder()
464 mMidiManager.setDeviceStatus(mServer, status); in updateDeviceStatus()
492 mMidiManager.unregisterDeviceServer(mServer); in close()
526 mMidiManager.updateTotalBytes(mServer, mTotalInputBytes.get(), mTotalOutputBytes.get()); in updateTotalBytes()
/frameworks/base/core/java/android/os/
DFileBridge.java64 private ParcelFileDescriptor mServer; field in FileBridge
72 mServer = fds[0]; in FileBridge()
85 IoUtils.closeQuietly(mServer); in forceClose()
102 while (IoBridge.read(mServer.getFileDescriptor(), temp, in run()
109 int n = IoBridge.read(mServer.getFileDescriptor(), temp, 0, in run()
122 IoBridge.write(mServer.getFileDescriptor(), temp, 0, MSG_LENGTH); in run()
129 IoBridge.write(mServer.getFileDescriptor(), temp, 0, MSG_LENGTH); in run()
/frameworks/native/libs/binder/
DRpcServer.cpp93 if (0 != getsockname(mServer.fd.get(), reinterpret_cast<sockaddr*>(&addr), &len)) { in setupInetServer()
172 LOG_ALWAYS_FATAL_IF(mServer.fd.ok(), "Already started"); in setServerSocketModifier()
203 accept4(server.mServer.fd.get(), nullptr, nullptr, SOCK_CLOEXEC | SOCK_NONBLOCK)))); in acceptSocketConnection()
219 ssize_t num_bytes = binder::os::receiveMessageFromSocket(server.mServer, &iov, 1, &fds); in recvmsgSocketConnection()
244 LOG_ALWAYS_FATAL_IF(!mServer.fd.ok(), "RpcServer must be setup to join."); in join()
253 while ((status = mShutdownTrigger->triggerablePoll(mServer, POLLIN)) == OK) { in join()
266 LOG_RPC_DETAIL("accept on fd %d yields fd %d", mServer.fd.get(), clientSocket.fd.get()); in join()
347 mServer = RpcTransportFd(); in shutdown()
639 return mServer.fd.ok(); in hasServer()
644 return std::move(mServer.fd); in releaseServer()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DViewServer.java70 private ServerSocket mServer; field in ViewServer
107 mServer = new ServerSocket(mPort, VIEW_SERVER_MAX_CONNECTIONS, InetAddress.getLocalHost()); in start()
139 mServer.close(); in stop()
140 mServer = null; in stop()
169 Socket client = mServer.accept(); in run()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbAlsaMidiDevice.java60 private MidiDeviceServer mServer; field in UsbAlsaMidiDevice
220 final MidiReceiver[] outputReceivers = mServer.getOutputPortReceivers(); in openLocked()
317 mServer = midiManager.createDeviceServer(mMidiInputPortReceivers, mNumInputs, in register()
320 if (mServer == null) { in register()
336 if (mServer != null) { in close()
337 IoUtils.closeQuietly(mServer); in close()
DUsbDirectMidiDevice.java78 private MidiDeviceServer mServer; field in UsbDirectMidiDevice
387 final MidiReceiver[] outputReceivers = mServer.getOutputPortReceivers(); in openLocked()
711 mServer = midiManager.createDeviceServer(mMidiInputPortReceivers, mNumInputs, in register()
713 if (mServer == null) { in register()
729 if (mServer != null) { in close()
730 IoUtils.closeQuietly(mServer); in close()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java108 private MtpServer mServer; field in MtpDatabase
278 if (mServer != null) {
280 mServer.sendDevicePropertyChanged(
296 if (MtpDatabase.this.mServer != null) in MtpDatabase()
297 MtpDatabase.this.mServer.sendObjectAdded(id); in MtpDatabase()
302 if (MtpDatabase.this.mServer != null) in MtpDatabase()
303 MtpDatabase.this.mServer.sendObjectRemoved(id); in MtpDatabase()
308 if (MtpDatabase.this.mServer != null) in MtpDatabase()
309 MtpDatabase.this.mServer.sendObjectInfoChanged(id); in MtpDatabase()
319 mServer = server; in setServer()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java67 private MockWebServer mServer = null; field in DownloadManagerBaseTest
242 mServer = new MockWebServer(); in setUp()
243 mServer.play(); in setUp()
250 mServer.shutdown(); in tearDown()
291 mServer.enqueue(resp); in enqueueResponse()
448 URL url = mServer.getUrl("/" + filename); in getServerUri()
932 mServer.enqueue(buildResponse(HTTP_OK, body)); in enqueueDownloadRequest()
947 mServer.enqueue(buildResponse(HTTP_OK, body)); in enqueueDownloadRequest()
DPropertyInvalidatedCacheTests.java77 private final ServerProxy mServer; field in PropertyInvalidatedCacheTests.ServerQuery
80 mServer = server; in ServerQuery()
85 return mServer.query(x); in apply()
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java387 private IMidiDeviceServer mServer; field in MidiService.Device
439 if (mServer != null) { in setDeviceServer()
446 mServer = server; in setDeviceServer()
448 mServer = null; in setDeviceServer()
452 } else if (mServer != null) { in setDeviceServer()
453 server = mServer; in setDeviceServer()
454 mServer = null; in setDeviceServer()
499 return mServer; in getDeviceServer()
537 Log.d(TAG, " mServer:" + mServer); in addDeviceConnection()
538 if (mServer != null) { in addDeviceConnection()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DIpcDataCacheTest.java83 private final ServerProxy mServer; field in IpcDataCacheTest.ServerQuery
86 mServer = server; in ServerQuery()
91 return mServer.query(x); in apply()
/frameworks/native/libs/binder/include/binder/
DRpcServer.h276 RpcTransportFd mServer; // socket we are accepting sessions on variable
/frameworks/av/include/private/media/
DAudioTrackShared.h225 uint32_t mServer; // Number of filled frames consumed by server (mIsOut),
386 return mEpoch + mCblk->mServer;
/frameworks/av/services/audioflinger/fastpath/
DFastCapture.cpp221 cblk->mServer += framesWritten; in onWork()
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp67 : mServer(0), mFutex(0), mMinimum(0) in audio_track_cblk_t()
924 cblk->mServer += stepCount; in releaseBuffer()
1259 cblk->mServer += stepCount; in releaseBuffer()
DAudioTrack.cpp2014 mServer = 0; in createTrack_l()
2979 const int32_t delta = (newServer - mServer).signedValue(); in updateAndGetPosition_l()
2991 mServer = newServer; in updateAndGetPosition_l()
3376 const int32_t pipelineDepthInFrames = (mServer - timestamp.mPosition).signedValue(); in getTimestamp_l()
3385 timestamp.mPosition = (mPosition - mServer + timestamp.mPosition).value(); in getTimestamp_l()
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h1387 Modulo<uint32_t> mServer; // in frames, last known mProxy->getPosition() variable
/frameworks/av/services/audioflinger/
DTracks.cpp1024 mCblk->mServer, in appendDump()
1044 result.appendFormat("%10s", mCblk->mServer != 0 ? "unavail" : "new"); in appendDump()
2965 mCblk->mServer, in appendDump()
2978 result.appendFormat("%10s", mCblk->mServer != 0 ? "unavail" : "new"); in appendDump()
DThreads.cpp5898 ALOGVV("track(%d) s=%08x [OK] on thread %p", trackId, cblk->mServer, this); in prepareTracks_l()
5929 if (cblk->mServer != 0) { in prepareTracks_l()
5936 } else if (cblk->mServer != 0) { in prepareTracks_l()
6178 ALOGVV("track(%d) s=%08x [NOT READY] on thread %p", trackId, cblk->mServer, this); in prepareTracks_l()
6877 ALOGVV("track(%d) s=%08x [OK]", trackId, cblk->mServer); in prepareTracks_l()
7452 ALOGVV("OffloadThread: track(%d) s=%08x [OK]", track->id(), cblk->mServer); in prepareTracks_l()
7496 ALOGVV("OffloadThread: track(%d) s=%08x [NOT READY]", track->id(), cblk->mServer); in prepareTracks_l()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt29128 Landroid/media/midi/MidiDeviceServer;->mServer:Landroid/media/midi/IMidiDeviceServer;
29134 Landroid/media/midi/MidiDeviceService;->mServer:Landroid/media/midi/MidiDeviceServer;
32193 Landroid/mtp/MtpDatabase;->mServer:Landroid/mtp/MtpServer;
35312 Landroid/os/FileBridge;->mServer:Ljava/io/FileDescriptor;
57450 Landroid/util/NtpTrustedTime;->mServer:Ljava/lang/String;