Home
last modified time | relevance | path

Searched refs:mClient (Results 1 – 25 of 101) sorted by relevance

12345

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DClientWakelockAccountantTest.java26 ClientWakelockAccountant mClient; field in ClientWakelockAccountantTest
31 mClient = new ClientWakelockAccountant("Package Name"); in setUp()
41 Assert.assertEquals(0, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
42 mClient.startAttributingWakelock(15, 25, 1, 100); in testStartAttributingWakelock()
43 Assert.assertEquals(1, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
44 mClient.startAttributingWakelock(22, 26, 2, 150); in testStartAttributingWakelock()
45 Assert.assertEquals(2, mClient.getPendingRequestCount()); in testStartAttributingWakelock()
55 mClient.startAttributingWakelock(15, 25, 1, 100); in testStopAttributingWakelock()
56 mClient.startAttributingWakelock(25, 26, 2, 200); in testStopAttributingWakelock()
57 mClient.changeConcurrentRequests(2, 200); in testStopAttributingWakelock()
[all …]
/frameworks/native/libs/gui/
DSurfaceControl.cpp53 : mClient(client), mHandle(handle), mGraphicBufferProducer(gbp), mOwned(owned) in SurfaceControl()
58 mClient = other->mClient; in SurfaceControl()
68 if (mClient != nullptr && mHandle != nullptr && mOwned) { in ~SurfaceControl()
69 SurfaceComposerClient::doDropReferenceTransaction(mHandle, mClient->getClient()); in ~SurfaceControl()
86 mClient.clear(); in release()
110 const sp<SurfaceComposerClient>& client(mClient); in clearLayerFrameStats()
117 const sp<SurfaceComposerClient>& client(mClient); in getLayerFrameStats()
123 if (mHandle==nullptr || mClient==nullptr) { in validate()
125 mHandle.get(), mClient.get()); in validate()
179 return mClient; in getClient()
[all …]
/frameworks/base/core/java/android/os/
DFileBridge.java64 private final FileDescriptor mClient = new FileDescriptor(); field in FileBridge
70 Os.socketpair(AF_UNIX, SOCK_STREAM, 0, mServer, mClient); in FileBridge()
83 IoUtils.closeQuietly(mClient); in forceClose()
92 return mClient; in getClientSocket()
138 private final FileDescriptor mClient; field in FileBridge.FileBridgeOutputStream
143 mClient = clientPfd.getFileDescriptor(); in FileBridgeOutputStream()
148 mClient = client; in FileBridgeOutputStream()
156 IoBridge.closeAndSignalBlockedThreads(mClient); in close()
167 IoBridge.write(mClient, mTemp, 0, MSG_LENGTH); in writeCommandAndBlock()
170 if (IoBridge.read(mClient, mTemp, 0, MSG_LENGTH) == MSG_LENGTH) { in writeCommandAndBlock()
[all …]
/frameworks/base/media/java/android/media/
DMediaScannerConnection.java45 private MediaScannerConnectionClient mClient; field in MediaScannerConnection
51 MediaScannerConnectionClient client = mClient;
104 mClient = client; in MediaScannerConnection()
136 if (mClient instanceof ClientProxy) { in disconnect()
137 mClient = null; in disconnect()
188 final OnScanCompletedListener mClient; field in MediaScannerConnection.ClientProxy
195 mClient = client; in ClientProxy()
203 if (mClient != null) { in onScanCompleted()
204 mClient.onScanCompleted(path, uri); in onScanCompleted()
255 if (mService != null && mClient != null) { in onServiceConnected()
[all …]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DCameraBrowserApplication.java23 private MtpClient mClient; field in CameraBrowserApplication
27 mClient = new MtpClient(this); in onCreate()
32 mClient.close(); in onTerminate()
33 mClient = null; in onTerminate()
37 return mClient; in getMtpClient()
DCameraBrowser.java44 private MtpClient mClient; field in CameraBrowser
99 mClient = ((CameraBrowserApplication)getApplication()).getMtpClient(); in onCreate()
100 mClient.addListener(this); in onCreate()
101 mDeviceList = mClient.getDeviceList(); in onCreate()
112 mClient.removeListener(this); in onDestroy()
129 mDeviceList = mClient.getDeviceList(); in deviceAdded()
135 mDeviceList = mClient.getDeviceList(); in deviceRemoved()
DObjectViewer.java49 private MtpClient mClient; field in ObjectViewer
97 mClient = ((CameraBrowserApplication)getApplication()).getMtpClient(); in onCreate()
118 MtpObjectInfo info = mClient.getObjectInfo(mDeviceName, mObjectID); in onResume()
152 byte[] thumbnail = mClient.getThumbnail(mDeviceName, info.getObjectHandle()); in onResume()
177 if (mClient.importFile(mDeviceName, mObjectID, dest.getAbsolutePath())) { in importObject()
188 if (mClient.deleteObject(mDeviceName, mObjectID)) { in deleteObject()
DObjectBrowser.java47 private MtpClient mClient; field in ObjectBrowser
94 byte[] thumbnail = mClient.getThumbnail(mDeviceName, info.getObjectHandle()); in getView()
111 mClient = ((CameraBrowserApplication)getApplication()).getMtpClient(); in onCreate()
122 mObjectList = mClient.getObjectList(mDeviceName, mStorageID, mObjectID); in onResume()
/frameworks/base/core/java/android/widget/
DCursorFilter.java29 CursorFilterClient mClient; field in CursorFilter
39 mClient = client; in CursorFilter()
44 return mClient.convertToString((Cursor) resultValue); in convertResultToString()
49 Cursor cursor = mClient.runQueryOnBackgroundThread(constraint); in performFiltering()
64 Cursor oldCursor = mClient.getCursor(); in publishResults()
67 mClient.changeCursor((Cursor) results.values); in publishResults()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/master/
DVtsHalMediaC2V1_0TargetMasterTest.cpp40 mClient = android::Codec2Client::CreateFromService( in SetUp()
42 ASSERT_NE(mClient, nullptr); in SetUp()
50 std::shared_ptr<android::Codec2Client> mClient; member in __anonc9796b5b0111::Codec2MasterHalTest
64 C2String name = mClient->getName(); in TEST_F()
69 mClient->ListComponents(); in TEST_F()
82 component = mClient->CreateComponentByName( in TEST_F()
83 listTraits[i].name.c_str(), listener, &mClient); in TEST_F()
/frameworks/base/services/core/java/com/android/server/wm/
DViewServer.java210 private Socket mClient; field in ViewServer.ViewServerWorker
215 mClient = client; in ViewServerWorker()
224 in = new BufferedReader(new InputStreamReader(mClient.getInputStream()), 1024); in run()
242 result = writeValue(mClient, VALUE_PROTOCOL_VERSION); in run()
244 result = writeValue(mClient, VALUE_SERVER_VERSION); in run()
246 result = mWindowManager.viewServerListWindows(mClient); in run()
248 result = mWindowManager.viewServerGetFocusedWindow(mClient); in run()
252 result = mWindowManager.viewServerWindowCommand(mClient, in run()
270 if (mClient != null) { in run()
272 mClient.close(); in run()
[all …]
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerService.cpp28 FakeComposerService::FakeComposerService(android::sp<ComposerClient>& client) : mClient(client) {} in FakeComposerService()
31 ALOGI("Maybe killing client %p", mClient.get()); in ~FakeComposerService()
48 ALOGI("FakeComposerService::createClient %p", mClient.get()); in createClient()
49 if (!mClient->init()) { in createClient()
52 hidl_cb(Error::NONE, mClient); in createClient()
/frameworks/base/services/core/java/com/android/server/os/
DSchedulingPolicyService.java54 private IBinder mClient; field in SchedulingPolicyService
149 if (mClient != null) { in enableCpusetBoost()
151 mClient.unlinkToDeath(mDeathRecipient, 0); in enableCpusetBoost()
154 mClient = null; in enableCpusetBoost()
165 mClient = client; in enableCpusetBoost()
184 if (mClient != null) { in disableCpusetBoost()
186 mClient.unlinkToDeath(mDeathRecipient, 0); in disableCpusetBoost()
189 mClient = null; in disableCpusetBoost()
/frameworks/base/core/java/android/app/servertransaction/
DClientTransaction.java57 private IApplicationThread mClient; field in ClientTransaction
64 return mClient; in getClient()
135 mClient.scheduleTransaction(this); in schedule()
149 instance.mClient = client; in obtain()
168 mClient = null; in recycle()
178 dest.writeStrongBinder(mClient.asBinder()); in writeToParcel()
194 mClient = (IApplicationThread) in.readStrongBinder(); in ClientTransaction()
234 && mClient == other.mClient in equals()
/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java71 private SntpClient mClient; field in SntpClientTest
79 mClient = new SntpClient(); in setUp()
85 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testBasicWorkingSntpClientQuery()
92 assertFalse(mClient.requestTime("ntp.server.doesnotexist.example", 5000, mNetwork)); in testDnsResolutionFailure()
98 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testTimeoutFailure()
108 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testIgnoreLeapNoSync()
121 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptOnlyServerAndBroadcastModes()
147 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptableStrataOnly()
164 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testZeroTransmitTime()
/frameworks/base/core/java/android/hardware/display/
DWifiDisplaySessionInfo.java33 private final boolean mClient; field in WifiDisplaySessionInfo
64 mClient = client; in WifiDisplaySessionInfo()
72 return mClient; in isClient()
93 dest.writeInt(mClient ? 1 : 0); in writeToParcel()
109 +"\n Client/Owner: " + (mClient ? "Client":"Owner") in toString()
/frameworks/layoutlib/remote/tests/src/
DRemoteBridgeTest.java44 private RemoteBridgeClient mClient; field in RemoteBridgeTest
68 mClient = RemoteBridgeClient.getRemoteBridge(mServerMain.getPort()); in setupServer()
78 mClient.init(ConfigGenerator.loadProperties(buildProp), fontLocation, null, in setupServer()
86 mClient.dispose(); in stopServer()
96 RenderResult result = renderAndVerify(mClient, params, "activity.png", 250); in testActivity()
123 RenderResult result = renderAndVerify(mClient, params, "remote_component_load.png", 250); in testCustomClassLoading()
139 result = renderAndVerify(mClient, params, "remote_component_load_fail.png", 250); in testCustomClassLoading()
/frameworks/base/drm/java/android/drm/
DDrmOutputStream.java47 private final DrmManagerClient mClient; field in DrmOutputStream
58 mClient = client; in DrmOutputStream()
62 mSessionId = mClient.openConvertSession(mimeType); in DrmOutputStream()
69 final DrmConvertedStatus status = mClient.closeConvertSession(mSessionId); in finish()
104 final DrmConvertedStatus status = mClient.convertData(mSessionId, exactBuffer); in write()
/frameworks/base/core/java/android/printservice/
DPrintService.java275 private IPrintServiceClient mClient; field in PrintService
345 if (mClient == null) { in getActivePrintJobs()
350 List<PrintJobInfo> printJobInfos = mClient.getPrintJobInfos(); in getActivePrintJobs()
355 printJobs.add(new PrintJob(this, printJobInfos.get(i), mClient)); in getActivePrintJobs()
490 session.setObserver(mClient);
575 onRequestCancelPrintJob(new PrintJob(PrintService.this, printJobInfo, mClient));
587 onPrintJobQueued(new PrintJob(PrintService.this, printJobInfo, mClient));
595 mClient = (IPrintServiceClient) message.obj;
596 if (mClient != null) {
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkC2Common.cpp24 mClient = android::Codec2Client::CreateFromService("default"); in setupCodec2()
25 if (!mClient) { in setupCodec2()
26 mClient = android::Codec2Client::CreateFromService("software"); in setupCodec2()
28 if (!mClient) return -1; in setupCodec2()
56 const std::vector<C2Component::Traits> listTraits = mClient->ListComponents(); in getSupportedComponentList()
/frameworks/base/core/tests/coretests/src/android/content/
DContentResolverTest.java49 private ContentProviderClient mClient; field in ContentResolverTest
59 mClient = new ContentProviderClient(mResolver, mProvider, false); in setUp()
107 Bitmap res = ContentResolver.loadThumbnail(mClient, in testLoadThumbnail_Normal()
122 Bitmap res = ContentResolver.loadThumbnail(mClient, in testLoadThumbnail_Scaling()
137 Bitmap res = ContentResolver.loadThumbnail(mClient, in testLoadThumbnail_Aspect()
152 Bitmap res = ContentResolver.loadThumbnail(mClient, in testLoadThumbnail_Tiny()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DComposerHal.cpp177 mClient = tmpClient; in Composer()
188 mClient = tmpClient; in Composer()
190 mClient_2_2 = V2_2::IComposerClient::castFrom(mClient); in Composer()
197 if (mClient == nullptr) { in Composer()
202 sp<IVrComposerClient> vrClient = IVrComposerClient::castFrom(mClient); in Composer()
234 auto ret = mClient->registerCallback(callback); in registerCallback()
241 return mClient->isRemote(); in isRemote()
254 auto ret = mClient->getMaxVirtualDisplayCount(); in getMaxVirtualDisplayCount()
279 mClient->createVirtualDisplay(width, height, in createVirtualDisplay()
298 auto ret = mClient->destroyVirtualDisplay(display); in destroyVirtualDisplay()
[all …]
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp26 : mFlinger(flinger), mClient(new Client(&mFlinger)) { in RefreshRateOverlay()
32 mFlinger.createLayer(String8("RefreshRateOverlay"), mClient, 0, 0, in createLayer()
41 mLayer = mClient->getLayerUser(mIBinder); in createLayer()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp63 : mClient{client}, in PatchCountCheck()
64 mInitialCount{mClient->getActivePatchesCount()} {}
66 size_t currentCount = mClient->getActivePatchesCount(); in deltaFromSnapshot()
74 const AudioPolicyManagerTestClient *mClient; member in PatchCountCheck
104 PatchCountCheck snapshotPatchCount() { return PatchCountCheck(mClient.get()); } in snapshotPatchCount()
110 std::unique_ptr<AudioPolicyManagerTestClient> mClient; member in AudioPolicyManagerTest
115 mClient.reset(new AudioPolicyManagerTestClient); in SetUp()
116 mManager.reset(new AudioPolicyTestManager(mClient.get())); in SetUp()
124 mClient.reset(); in TearDown()
889 ASSERT_EQ(injectionPort.id, getDeviceIdFromPatch(mClient->getLastAddedPatch())); in SetUp()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositioningControllerTests.java68 mWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp()
81 assertTrue(mTarget.startMovingTask(mWindow.mClient, 0, 0)); in testStartAndFinishPositioning()
104 assertTrue(mTarget.startMovingTask(mWindow.mClient, 0, 0)); in testFinishPositioningWhenAppRequested()
111 mTarget.finishTaskPositioning(mWindow.mClient); in testFinishPositioningWhenAppRequested()

12345