Home
last modified time | relevance | path

Searched refs:dc (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/rs/driver/
DrsdGL.cpp130 static void DumpDebug(RsdHal *dc) { in DumpDebug() argument
131 ALOGE(" EGL ver %i %i", dc->gl.egl.majorVersion, dc->gl.egl.minorVersion); in DumpDebug()
132 ALOGE(" EGL context %p surface %p, Display=%p", dc->gl.egl.context, dc->gl.egl.surface, in DumpDebug()
133 dc->gl.egl.display); in DumpDebug()
134 ALOGE(" GL vendor: %s", dc->gl.gl.vendor); in DumpDebug()
135 ALOGE(" GL renderer: %s", dc->gl.gl.renderer); in DumpDebug()
136 ALOGE(" GL Version: %s", dc->gl.gl.version); in DumpDebug()
137 ALOGE(" GL Extensions: %s", dc->gl.gl.extensions); in DumpDebug()
138 ALOGE(" GL int Versions %i %i", dc->gl.gl.majorVersion, dc->gl.gl.minorVersion); in DumpDebug()
140 ALOGV("MAX Textures %i, %i %i", dc->gl.gl.maxVertexTextureUnits, in DumpDebug()
[all …]
DrsdBcc.cpp44 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdScriptInit() local
46 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode, in rsdScriptInit()
58 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdInitIntrinsic() local
59 RsdCpuReference::CpuScript * cs = dc->mCpuRef->createIntrinsic(s, iid, e); in rsdInitIntrinsic()
103 int rsdScriptInvokeRoot(const Context *dc, Script *s) { in rsdScriptInvokeRoot() argument
108 void rsdScriptInvokeInit(const Context *dc, Script *s) { in rsdScriptInvokeInit() argument
113 void rsdScriptInvokeFreeChildren(const Context *dc, Script *s) { in rsdScriptInvokeFreeChildren() argument
118 void rsdScriptInvokeFunction(const Context *dc, Script *s, in rsdScriptInvokeFunction() argument
126 void rsdScriptInvokeReduce(const Context *dc, Script *s, in rsdScriptInvokeReduce() argument
135 void rsdScriptSetGlobalVar(const Context *dc, const Script *s, in rsdScriptSetGlobalVar() argument
[all …]
DrsdProgram.cpp64 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramVertexSetActive() local
67 dc->gl.shaderCache->setActiveVertex((RsdShader*)pv->mHal.drv); in rsdProgramVertexSetActive()
71 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramVertexDestroy() local
80 dc->gl.shaderCache->cleanupVertex(drv); in rsdProgramVertexDestroy()
98 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramFragmentSetActive() local
101 dc->gl.shaderCache->setActiveFragment((RsdShader*)pf->mHal.drv); in rsdProgramFragmentSetActive()
105 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramFragmentDestroy() local
114 dc->gl.shaderCache->cleanupFragment(drv); in rsdProgramFragmentDestroy()
DrsdFrameBufferObj.cpp125 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setActive() local
131 eglQuerySurface(dc->gl.egl.display, dc->gl.egl.surface, EGL_WIDTH, &width); in setActive()
132 eglQuerySurface(dc->gl.egl.display, dc->gl.egl.surface, EGL_HEIGHT, &height); in setActive()
150 if(dc->gl.wndSurface != dc->gl.currentWndSurface) { in setActive()
151 rsdGLSetInternalSurface(rsc, dc->gl.wndSurface); in setActive()
DrsdCore.cpp331 RsdHal *dc = (RsdHal *)calloc(1, sizeof(RsdHal)); in rsdHalInit() local
332 if (!dc) { in rsdHalInit()
336 rsc->mHal.drv = dc; in rsdHalInit()
338 dc->mCpuRef = RsdCpuReference::create(rsc, version_major, version_minor, in rsdHalInit()
340 if (!dc->mCpuRef) { in rsdHalInit()
343 free(dc); in rsdHalInit()
352 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in SetPriority() local
354 dc->mCpuRef->setPriority(priority); in SetPriority()
357 if (dc->mHasGraphics) { in SetPriority()
364 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in Shutdown() local
[all …]
DrsdBcc.h31 void rsdScriptInvokeFunction(const android::renderscript::Context *dc,
64 int rsdScriptInvokeRoot(const android::renderscript::Context *dc,
66 void rsdScriptInvokeInit(const android::renderscript::Context *dc,
68 void rsdScriptInvokeFreeChildren(const android::renderscript::Context *dc,
91 void rsdScriptSetGlobal(const android::renderscript::Context *dc,
96 void rsdScriptGetGlobal(const android::renderscript::Context *dc,
101 void rsdScriptDestroy(const android::renderscript::Context *dc,
105 const android::renderscript::Context *dc,
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayContentTests.java234 final DisplayContent dc = createNewDisplay(); in testMoveStackBetweenDisplays() local
237 final TaskStack stack = createTaskStackOnDisplay(dc); in testMoveStackBetweenDisplays()
238 assertEquals(dc.getDisplayId(), stack.getDisplayContent().getDisplayId()); in testMoveStackBetweenDisplays()
239 assertEquals(dc, stack.getParent().getParent()); in testMoveStackBetweenDisplays()
240 assertEquals(dc, stack.getDisplayContent()); in testMoveStackBetweenDisplays()
244 dc); in testMoveStackBetweenDisplays()
246 assertEquals(dc, task.getDisplayContent()); in testMoveStackBetweenDisplays()
247 assertEquals(dc, token.getDisplayContent()); in testMoveStackBetweenDisplays()
371 final DisplayContent dc = createNewDisplay(); in doTestFocusedWindowMultipleDisplays() local
377 final WindowState window2 = createWindow(null, TYPE_BASE_APPLICATION, dc, "window2"); in doTestFocusedWindowMultipleDisplays()
[all …]
DWindowTestUtils.java51 static TestAppWindowToken createAppWindowTokenInTask(DisplayContent dc, Task task) { in createAppWindowTokenInTask() argument
52 final TestAppWindowToken newToken = createTestAppWindowToken(dc); in createAppWindowTokenInTask()
57 static TestAppWindowToken createTestAppWindowToken(DisplayContent dc) { in createTestAppWindowToken() argument
58 synchronized (dc.mWmService.mGlobalLock) { in createTestAppWindowToken()
59 return new TestAppWindowToken(dc); in createTestAppWindowToken()
67 private TestAppWindowToken(DisplayContent dc) { in TestAppWindowToken() argument
68 super(dc.mWmService, new IApplicationToken.Stub() { in TestAppWindowToken()
73 }, new ComponentName("", ""), false, dc, true /* fillsParent */); in TestAppWindowToken()
102 static TestWindowToken createTestWindowToken(int type, DisplayContent dc) { in createTestWindowToken() argument
103 return createTestWindowToken(type, dc, false /* persistOnEmpty */); in createTestWindowToken()
[all …]
DWallpaperControllerTests.java49 final DisplayContent dc = createNewDisplay(); in testWallpaperScreenshot() local
50 assertFalse(dc.mWallpaperController.canScreenshotWallpaper()); in testWallpaperScreenshot()
54 true, dc, true /* ownerCanManageAppTokens */); in testWallpaperScreenshot()
57 assertFalse(dc.mWallpaperController.canScreenshotWallpaper()); in testWallpaperScreenshot()
62 assertFalse(dc.mWallpaperController.canScreenshotWallpaper()); in testWallpaperScreenshot()
68 assertFalse(dc.mWallpaperController.canScreenshotWallpaper()); in testWallpaperScreenshot()
72 assertTrue(dc.mWallpaperController.canScreenshotWallpaper()); in testWallpaperScreenshot()
DWindowTestsBase.java258 DisplayContent dc, int windowingMode, int activityType, int type) { in createWindowToken() argument
261 return WindowTestUtils.createTestWindowToken(type, dc); in createWindowToken()
264 return createAppWindowToken(dc, windowingMode, activityType); in createWindowToken()
268 AppWindowToken createAppWindowToken(DisplayContent dc, int windowingMode, int activityType) { in createAppWindowToken() argument
269 return createTestAppWindowToken(dc, windowingMode, activityType); in createAppWindowToken()
272 WindowTestUtils.TestAppWindowToken createTestAppWindowToken(DisplayContent dc, int in createTestAppWindowToken() argument
274 final TaskStack stack = createTaskStackOnDisplay(windowingMode, activityType, dc); in createTestAppWindowToken()
277 WindowTestUtils.createTestAppWindowToken(dc); in createTestAppWindowToken()
299 int type, DisplayContent dc, String name) { in createWindowOnStack() argument
301 final WindowToken token = createWindowToken(dc, windowingMode, activityType, type); in createWindowOnStack()
[all …]
DAppTransitionTests.java190 DisplayContent dc = createNewDisplay(Display.STATE_ON); in testLoadAnimationSafely() local
191 assertNull(dc.mAppTransition.loadAnimationSafely( in testLoadAnimationSafely()
197 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testCancelRemoteAnimationWhenFreeze() local
199 dc, "exiting app"); in testCancelRemoteAnimationWhenFreeze()
214 dc.prepareAppTransition(TRANSIT_ACTIVITY_CLOSE, in testCancelRemoteAnimationWhenFreeze()
216 assertEquals(TRANSIT_ACTIVITY_CLOSE, dc.mAppTransition.getAppTransition()); in testCancelRemoteAnimationWhenFreeze()
217 dc.mAppTransition.overridePendingAppTransitionRemote(adapter); in testCancelRemoteAnimationWhenFreeze()
219 assertTrue(dc.mClosingApps.size() > 0); in testCancelRemoteAnimationWhenFreeze()
222 assertTrue(dc.isAppAnimating()); in testCancelRemoteAnimationWhenFreeze()
224 dc.mAppTransition.freeze(); in testCancelRemoteAnimationWhenFreeze()
[all …]
DWindowTokenTests.java77 final DisplayContent dc = mDisplayContent; in testChildRemoval() local
78 final WindowTestUtils.TestWindowToken token = WindowTestUtils.createTestWindowToken(0, dc); in testChildRemoval()
80 assertEquals(token, dc.getWindowToken(token.token)); in testChildRemoval()
87 assertEquals(token, dc.getWindowToken(token.token)); in testChildRemoval()
92 assertEquals(null, dc.getWindowToken(token.token)); in testChildRemoval()
DAppChangeTransitionTests.java60 public void setUpOnDisplay(DisplayContent dc) { in setUpOnDisplay() argument
61 mStack = createTaskStackOnDisplay(WINDOWING_MODE_UNDEFINED, ACTIVITY_TYPE_STANDARD, dc); in setUpOnDisplay()
63 mToken = WindowTestUtils.createTestAppWindowToken(dc); in setUpOnDisplay()
72 dc.registerRemoteAnimations(definition); in setUpOnDisplay()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java86 DcNetworkAgent(DataConnection dc, Phone phone, NetworkInfo ni, int score, in DcNetworkAgent() argument
88 super(phone.getContext(), dc.getHandler().getLooper(), "DcNetworkAgent", in DcNetworkAgent()
89 dc.getNetworkCapabilities(), dc.getLinkProperties(), score, config, in DcNetworkAgent()
95 mNetworkCapabilities = dc.getNetworkCapabilities(); in DcNetworkAgent()
97 mDataConnection = dc; in DcNetworkAgent()
100 if (dc.getLinkProperties() != null) { in DcNetworkAgent()
101 checkDuplicateInterface(mId, dc.getLinkProperties().getInterfaceName()); in DcNetworkAgent()
102 logd("created for data connection " + dc.getName() + ", " in DcNetworkAgent()
103 + dc.getLinkProperties().getInterfaceName()); in DcNetworkAgent()
139 public synchronized void acquireOwnership(@NonNull DataConnection dc, in acquireOwnership() argument
[all …]
DDcController.java164 void addDc(DataConnection dc) { in addDc() argument
166 mDcListAll.add(dc); in addDc()
170 void removeDc(DataConnection dc) { in removeDc() argument
172 mDcListActiveByCid.remove(dc.mCid); in removeDc()
173 mDcListAll.remove(dc); in removeDc()
177 public void addActiveDcByCid(DataConnection dc) { in addActiveDcByCid() argument
178 if (DBG && dc.mCid < 0) { in addActiveDcByCid()
179 log("addActiveDcByCid dc.mCid < 0 dc=" + dc); in addActiveDcByCid()
182 mDcListActiveByCid.put(dc.mCid, dc); in addActiveDcByCid()
192 void removeActiveDcByCid(DataConnection dc) { in removeActiveDcByCid() argument
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowSettings.java293 int getWindowingModeLocked(DisplayContent dc) { in getWindowingModeLocked() argument
294 final DisplayInfo displayInfo = dc.getDisplayInfo(); in getWindowingModeLocked()
296 return getWindowingModeLocked(entry, dc.getDisplayId()); in getWindowingModeLocked()
299 void setWindowingModeLocked(DisplayContent dc, int mode) { in setWindowingModeLocked() argument
300 final DisplayInfo displayInfo = dc.getDisplayInfo(); in setWindowingModeLocked()
303 dc.setWindowingMode(mode); in setWindowingModeLocked()
307 int getRemoveContentModeLocked(DisplayContent dc) { in getRemoveContentModeLocked() argument
308 final DisplayInfo displayInfo = dc.getDisplayInfo(); in getRemoveContentModeLocked()
311 if (dc.isPrivate()) { in getRemoveContentModeLocked()
321 void setRemoveContentModeLocked(DisplayContent dc, int mode) { in setRemoveContentModeLocked() argument
[all …]
DRootWindowContainer.java172 final DisplayContent dc = mChildren.get(i); in updateFocusedWindowLocked() local
173 changed |= dc.updateFocusedWindowLocked(mode, updateInputWindows, topFocusedDisplayId); in updateFocusedWindowLocked()
174 final WindowState newFocus = dc.mCurrentFocus; in updateFocusedWindowLocked()
181 topFocusedDisplayId = dc.getDisplayId(); in updateFocusedWindowLocked()
183 } else if (topFocusedDisplayId == INVALID_DISPLAY && dc.mFocusedApp != null) { in updateFocusedWindowLocked()
187 topFocusedDisplayId = dc.getDisplayId(); in updateFocusedWindowLocked()
204 final DisplayContent dc = getDisplayContent(mTopFocusedDisplayId); in getTopFocusedDisplayContent() local
205 return dc != null ? dc : getDisplayContent(DEFAULT_DISPLAY); in getTopFocusedDisplayContent()
238 final DisplayContent dc = new DisplayContent(display, mWmService, activityDisplay); in createDisplayContent() local
242 mWmService.mDisplayWindowSettings.applySettingsToDisplayLocked(dc); in createDisplayContent()
[all …]
DWindowAnimator.java157 final DisplayContent dc = mService.mRoot.getDisplayContent(displayId); in animate() local
174 accessibilityController.onRotationChangedLocked(dc); in animate()
181 dc.updateWindowsForAnimator(); in animate()
182 dc.updateBackgroundForAnimator(); in animate()
183 dc.prepareSurfaces(); in animate()
188 final DisplayContent dc = mService.mRoot.getDisplayContent(displayId); in animate() local
190 dc.checkAppWindowsReadyToShow(); in animate()
197 orAnimating(dc.getDockedDividerController().animate(mCurrentTime)); in animate()
283 final DisplayContent dc = in dumpLocked() local
285 dc.dumpWindowAnimators(pw, subPrefix); in dumpLocked()
DBlackFrame.java42 int l, int t, int r, int b, DisplayContent dc) throws OutOfResourcesException { in BlackSurface() argument
49 surface = dc.makeOverlay() in BlackSurface()
55 transaction.setLayerStack(surface, dc.getDisplayId()); in BlackSurface()
116 Rect inner, int layer, DisplayContent dc, boolean forceDefaultOrientation) in BlackFrame() argument
130 outer.left, outer.top, inner.right, inner.top, dc); in BlackFrame()
134 outer.left, inner.top, inner.left, outer.bottom, dc); in BlackFrame()
138 inner.left, inner.bottom, outer.right, outer.bottom, dc); in BlackFrame()
142 inner.right, outer.top, outer.right, inner.bottom, dc); in BlackFrame()
DWindowToken.java109 DisplayContent dc, boolean ownerCanManageAppTokens) { in WindowToken() argument
110 this(service, _token, type, persistOnEmpty, dc, ownerCanManageAppTokens, in WindowToken()
115 DisplayContent dc, boolean ownerCanManageAppTokens, boolean roundedCornerOverlay) { in WindowToken() argument
122 onDisplayChanged(dc); in WindowToken()
260 void onDisplayChanged(DisplayContent dc) { in onDisplayChanged() argument
261 dc.reParentWindowToken(this); in onDisplayChanged()
268 super.onDisplayChanged(dc); in onDisplayChanged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaConnection.java128 public GsmCdmaConnection (GsmCdmaPhone phone, DriverCall dc, GsmCdmaCallTracker ct, int index) { in GsmCdmaConnection() argument
136 mAddress = dc.number; in GsmCdmaConnection()
139 mIsIncoming = dc.isMT; in GsmCdmaConnection()
141 mCnapName = dc.name; in GsmCdmaConnection()
142 mCnapNamePresentation = dc.namePresentation; in GsmCdmaConnection()
143 mNumberPresentation = dc.numberPresentation; in GsmCdmaConnection()
144 mUusInfo = dc.uusInfo; in GsmCdmaConnection()
148 mParent = parentFromDCState(dc.state); in GsmCdmaConnection()
149 mParent.attach(this, dc); in GsmCdmaConnection()
153 setAudioQuality(getAudioQualityFromDC(dc.audioQuality)); in GsmCdmaConnection()
[all …]
DRadioResponse.java1898 DriverCall dc; in responseCurrentCalls() local
1901 dc = new DriverCall(); in responseCurrentCalls()
1904 dc.state = DriverCall.stateFromCLCC((int) (calls.get(i).state)); in responseCurrentCalls()
1905 dc.index = calls.get(i).index; in responseCurrentCalls()
1906 dc.TOA = calls.get(i).toa; in responseCurrentCalls()
1907 dc.isMpty = calls.get(i).isMpty; in responseCurrentCalls()
1908 dc.isMT = calls.get(i).isMT; in responseCurrentCalls()
1909 dc.als = calls.get(i).als; in responseCurrentCalls()
1910 dc.isVoice = calls.get(i).isVoice; in responseCurrentCalls()
1911 dc.isVoicePrivacy = calls.get(i).isVoicePrivacy; in responseCurrentCalls()
[all …]
DGsmCdmaCallTracker.java819 DriverCall dc = null; in handlePollCalls() local
823 dc = (DriverCall) polledCalls.get(curDC); in handlePollCalls()
825 if (dc.index == i+1) { in handlePollCalls()
828 dc = null; in handlePollCalls()
833 if (conn != null || dc != null) { in handlePollCalls()
838 conn+", dc=" + dc); in handlePollCalls()
840 if (conn == null && dc != null) { in handlePollCalls()
842 if (mPendingMO != null && mPendingMO.compareTo(dc)) { in handlePollCalls()
849 mPendingMO.update(dc); in handlePollCalls()
876 log("pendingMo=" + mPendingMO + ", dc=" + dc); in handlePollCalls()
[all …]
DGsmCdmaCall.java73 public void attach(Connection conn, DriverCall dc) { in attach() argument
76 mState = stateFromDCState (dc.state); in attach()
119 /*package*/ boolean update (GsmCdmaConnection conn, DriverCall dc) { in update() argument
123 newState = stateFromDCState(dc.state); in update()
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp137 sp<DummyConsumer> dc(new DummyConsumer); in TEST_F() local
138 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F()
174 sp<DummyConsumer> dc(new DummyConsumer); in TEST_F() local
175 mConsumer->consumerConnect(dc, false); in TEST_F()
210 sp<DummyConsumer> dc(new DummyConsumer); in TEST_F() local
211 mConsumer->consumerConnect(dc, false); in TEST_F()
254 sp<DummyConsumer> dc(new DummyConsumer); in TEST_F() local
255 mConsumer->consumerConnect(dc, false); in TEST_F()
301 sp<DummyConsumer> dc(new DummyConsumer); in TEST_F() local
302 mConsumer->consumerConnect(dc, false); in TEST_F()
[all …]

1234