Home | History | Annotate | Download | only in surfaceflinger

Lines Matching defs:const

86 EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name);
93 static const bool runningWithoutSyncFramework = true;
95 static const bool runningWithoutSyncFramework = false;
118 static const int64_t vsyncPhaseOffsetNs = VSYNC_EVENT_PHASE_OFFSET_NS;
121 static const int64_t sfVsyncPhaseOffsetNs = SF_VSYNC_EVENT_PHASE_OFFSET_NS;
125 const String16 sHardwareTest("android.permission.HARDWARE_TEST");
126 const String16 sAccessSurfaceFlinger("android.permission.ACCESS_SURFACE_FLINGER");
127 const String16 sReadFramebuffer("android.permission.READ_FRAME_BUFFER");
128 const String16 sDump("android.permission.DUMP");
192 void SurfaceFlinger::binderDied(const wp<IBinder>& who)
214 sp<IBinder> SurfaceFlinger::createDisplay(const String8& displayName,
226 DisplayToken(const sp<SurfaceFlinger>& flinger)
242 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& display) {
251 const DisplayDeviceState& info(mCurrentState.displays.valueAt(idx));
287 const nsecs_t now = systemTime();
288 const nsecs_t duration = now - mBootTime;
293 const String16 name("window");
323 EGLint const* attrs,
330 EGLConfig* const configs = new EGLConfig[numConfigs];
364 bool operator < (const Attribute& other) const {
386 operator EGLint () const { return v.mList[attribute]; }
400 EGLint operator [] (EGLint attribute) const {
403 // cast-operator to (EGLint const*)
404 operator EGLint const* () const { return &mList.keyAt(0).v; }
475 virtual void setCallback(const sp<VSyncSource::Callback>& callback) {
500 const nsecs_t mPhaseOffset;
501 const bool mTraceVsync;
641 size_t SurfaceFlinger::getMaxTextureSize() const {
645 size_t SurfaceFlinger::getMaxViewportDims() const {
652 const sp<IGraphicBufferProducer>& bufferProducer) const {
658 status_t SurfaceFlinger::getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info) {
671 const HWComposer& hwc(getHwComposer());
677 static int getDensityFromProperty(char const* propName) {
709 sp<const DisplayDevice> hw(getDefaultDisplayDevice());
713 static const int TV_DENSITY = 213;
754 status_t SurfaceFlinger::postMessageAsync(const sp<MessageBase>& msg,
759 status_t SurfaceFlinger::postMessageSync(const sp<MessageBase>& msg,
794 const nsecs_t period =
911 const bool repaintEverything = mRepaintEverything;
913 const sp<DisplayDevice>& hw(mDisplays[dpy]);
916 const Region dirtyRegion(hw->getDirtyRegion(repaintEverything));
922 const int32_t height = hw->getHeight();
948 const LayerVector& layers(mDrawingState.layersSortedByZ);
949 const size_t count = layers.size();
962 const LayerVector& layers(mDrawingState.layersSortedByZ);
963 const size_t count = layers.size();
968 const HWComposer& hwc = getHwComposer();
980 const sp<const DisplayDevice> hw(getDefaultDisplayDevice());
1008 const LayerVector& layers(mDrawingState.layersSortedByZ);
1013 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1014 const Transform& tr(hw->getTransform());
1015 const Rect bounds(hw->getBounds());
1020 const size_t count = layers.size();
1022 const sp<Layer>& layer(layers[i]);
1023 const Layer::State& s(layer->getDrawingState());
1053 sp<const DisplayDevice> hw(mDisplays[dpy]);
1054 const int32_t id = hw->getHwcDisplayId();
1056 const Vector< sp<Layer> >& currentLayers(
1058 const size_t count = currentLayers.size();
1061 const HWComposer::LayerListIterator end = hwc.end(id);
1063 const sp<Layer>& layer(currentLayers[i]);
1076 sp<const DisplayDevice> hw(mDisplays[dpy]);
1077 const int32_t id = hw->getHwcDisplayId();
1079 const Vector< sp<Layer> >& currentLayers(
1081 const size_t count = currentLayers.size();
1083 const HWComposer::LayerListIterator end = hwc.end(id);
1089 const sp<Layer>& layer(currentLayers[i]);
1099 sp<const DisplayDevice> hw(mDisplays[dpy]);
1107 const bool repaintEverything = android_atomic_and(0, &mRepaintEverything);
1109 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1112 const Region dirtyRegion(hw->getDirtyRegion(repaintEverything));
1131 const nsecs_t now = systemTime();
1152 sp<const DisplayDevice> hw(mDisplays[dpy]);
1153 const Vector< sp<Layer> >& currentLayers(hw->getVisibleLayersSortedByZ());
1155 const size_t count = currentLayers.size();
1159 const HWComposer::LayerListIterator end = hwc.end(id);
1190 const nsecs_t now = systemTime();
1210 const LayerVector& currentLayers(mCurrentState.layersSortedByZ);
1211 const size_t count = currentLayers.size();
1220 const sp<Layer>& layer(currentLayers[i]);
1224 const uint32_t flags = layer->doTransaction(0);
1238 const KeyedVector< wp<IBinder>, DisplayDeviceState>& curr(mCurrentState.displays);
1239 const KeyedVector< wp<IBinder>, DisplayDeviceState>& draw(mDrawingState.displays);
1242 const size_t cc = curr.size();
1250 const ssize_t j = curr.indexOfKey(draw.keyAt(i));
1257 const sp<const DisplayDevice> defaultDisplay(getDefaultDisplayDevice());
1270 const DisplayDeviceState& state(curr[j]);
1271 const wp<IBinder>& display(curr.keyAt(j));
1287 const sp<DisplayDevice> disp(getDisplayDevice(display));
1307 const DisplayDeviceState& state(curr[i]);
1346 const wp<IBinder>& display(curr.keyAt(i));
1391 sp<const DisplayDevice> disp;
1397 const sp<Layer>& layer(currentLayers[i]);
1406 sp<const DisplayDevice> hw(mDisplays[dpy]);
1435 const LayerVector& layers(mDrawingState.layersSortedByZ);
1446 const size_t count = layers.size();
1448 const sp<Layer>& layer(layers[i]);
1454 const Layer::State& s(layer->getDrawingState());
1486 const LayerVector& currentLayers, uint32_t layerStack,
1499 const sp<Layer>& layer = currentLayers[i];
1502 const Layer::State& s(layer->getDrawingState());
1540 const bool translucent = !layer->isOpaque();
1546 const Transform tr(s.transform);
1562 const int32_t layerOrientation = s.transform.getOrientation();
1600 const Region newExposed = visibleRegion - coveredRegion;
1601 const Region oldVisibleRegion = layer->visibleRegion;
1602 const Region oldCoveredRegion = layer->coveredRegion;
1603 const Region oldExposed = oldVisibleRegion - oldCoveredRegion;
1625 const Region& dirty) {
1627 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1639 const LayerVector& layers(mDrawingState.layersSortedByZ);
1640 const size_t count = layers.size();
1642 const sp<Layer>& layer(layers[i]);
1643 const Region dirty(layer->latchBuffer(visibleRegions));
1644 const Layer::State& s(layer->getDrawingState());
1657 void SurfaceFlinger::doDisplayComposition(const sp<const DisplayDevice>& hw,
1658 const Region& inDirtyRegion)
1701 void SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& hw, const Region& dirty)
1704 const int32_t id = hw->getHwcDisplayId();
1707 const HWComposer::LayerListIterator end = hwc.end(id);
1718 const bool hasHwcComposition = hwc.hasHwcComposition(id);
1728 const Region bounds(hw->getBounds());
1733 const Region letterbox(bounds.subtract(hw->getScissor()));
1752 const Rect& bounds(hw->getBounds());
1753 const Rect& scissor(hw->getScissor());
1760 const uint32_t height = hw->getHeight();
1771 const Vector< sp<Layer> >& layers(hw->getVisibleLayersSortedByZ());
1772 const size_t count = layers.size();
1773 const Transform& tr = hw->getTransform();
1777 const sp<Layer>& layer(layers[i]);
1778 const Region clip(dirty.intersect(tr.transform(layer->visibleRegion)));
1782 const Layer::State& state(layer->getDrawingState());
1810 const sp<Layer>& layer(layers[i]);
1811 const Region clip(dirty.intersect(
1823 void SurfaceFlinger::drawWormhole(const sp<const DisplayDevice>& hw, const Region& region) const {
1824 const int32_t height = hw->getHeight();
1829 void SurfaceFlinger::addClientLayer(const sp<Client>& client,
1830 const sp<IBinder>& handle,
1831 const sp<IGraphicBufferProducer>& gbc,
1832 const sp<Layer>& lbc)
1843 status_t SurfaceFlinger::removeLayer(const sp<Layer>& layer) {
1872 const Vector<ComposerState>& state,
1873 const Vector<DisplayState>& displays,
1898 const DisplayState& s(displays[i]);
1904 const ComposerState& s(state[i]);
1949 uint32_t SurfaceFlinger::setDisplayStateLocked(const DisplayState& s)
1958 const uint32_t what = s.what;
1990 const sp<Client>& client,
1991 const layer_state_t& s)
1996 const uint32_t what = s.what;
2053 const String8& name,
2054 const sp<Client>& client,
2092 status_t SurfaceFlinger::createNormalLayer(const sp<Client>& client,
2093 const String8& name, uint32_t w, uint32_t h, uint32_t flags, PixelFormat& format,
2127 status_t SurfaceFlinger::createDimLayer(const sp<Client>& client,
2128 const String8& name, uint32_t w, uint32_t h, uint32_t flags,
2137 status_t SurfaceFlinger::onLayerRemoved(const sp<Client>& client, const sp<IBinder>& handle)
2150 status_t SurfaceFlinger::onLayerDestroyed(const wp<Layer>& layer)
2182 const nsecs_t period =
2202 void SurfaceFlinger::onScreenAcquired(const sp<const DisplayDevice>& hw) {
2227 void SurfaceFlinger::onScreenReleased(const sp<const DisplayDevice>& hw) {
2251 void SurfaceFlinger::unblank(const sp<IBinder>& display) {
2257 const sp<IBinder>& disp) : mFlinger(flinger), mDisplay(disp) { }
2259 const sp<DisplayDevice> hw(mFlinger.getDisplayDevice(mDisplay));
2274 const sp<IBinder>& display) {
2280 const sp<IBinder>& disp) : mFlinger(flinger), mDisplay(disp) { }
2282 const sp<DisplayDevice> hw(mFlinger.getDisplayDevice(mDisplay));
2299 status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
2304 const int pid = ipc->getCallingPid();
2305 const int uid = ipc->getCallingUid();
2318 const bool locked(retry >= 0);
2363 void SurfaceFlinger::listLayersLocked(const Vector<String16>& args, size_t& index,
2364 String8& result) const
2366 const LayerVector& currentLayers = mCurrentState.layersSortedByZ;
2367 const size_t count = currentLayers.size();
2369 const sp<Layer>& layer(currentLayers[i]);
2374 void SurfaceFlinger::dumpStatsLocked(const Vector<String16>& args, size_t& index,
2375 String8& result) const
2383 const nsecs_t period =
2390 const LayerVector& currentLayers = mCurrentState.layersSortedByZ;
2391 const size_t count = currentLayers.size();
2393 const sp<Layer>& layer(currentLayers[i]);
2401 void SurfaceFlinger::clearStatsLocked(const Vector<String16>& args, size_t& index,
2410 const LayerVector& currentLayers = mCurrentState.layersSortedByZ;
2411 const size_t count = currentLayers.size();
2413 const sp<Layer>& layer(currentLayers[i]);
2425 const LayerVector& drawingLayers = mDrawingState.layersSortedByZ;
2426 const size_t count = drawingLayers.size();
2428 const sp<Layer>& layer(drawingLayers[i]);
2437 static const char* config =
2455 void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index,
2456 String8& result) const
2468 const nsecs_t now = systemTime();
2469 const nsecs_t inSwapBuffers(mDebugInSwapBuffers);
2470 const nsecs_t inTransaction(mDebugInTransaction);
2495 const LayerVector& currentLayers = mCurrentState.layersSortedByZ;
2496 const size_t count = currentLayers.size();
2501 const sp<Layer>& layer(currentLayers[i]);
2513 const sp<const DisplayDevice>& hw(mDisplays[dpy]);
2526 sp<const DisplayDevice> hw(getDefaultDisplayDevice());
2584 const GraphicBufferAllocator& alloc(GraphicBufferAllocator::get());
2588 const Vector< sp<Layer> >&
2613 void (*DdmConnection_start)(const char* name);
2625 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags)
2637 const int pid = ipc->getCallingPid();
2638 const int uid = ipc->getCallingUid();
2651 const int pid = ipc->getCallingPid();
2652 const int uid = ipc->getCallingUid();
2668 const int pid = ipc->getCallingPid();
2669 const int uid = ipc->getCallingUid();
2721 sp<const DisplayDevice> hw(getDefaultDisplayDevice());
2775 Parcel const* data;
2788 const Parcel& data, Parcel* reply, uint32_t flags) {
2808 virtual void handleMessage(const Message& message) {
2819 GraphicProducerWrapper(const sp<IGraphicBufferProducer>& impl) :
2839 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display,
2840 const sp<IGraphicBufferProducer>& producer,
2855 sp<const DisplayDevice> hw(getDisplayDevice(display));
2871 const sp<IBinder>& display,
2872 const sp<IGraphicBufferProducer>& producer,
2881 status_t getResult() const {
2886 sp<const DisplayDevice> hw(flinger->getDisplayDevice(display));
2921 const sp<const DisplayDevice>& hw,
2930 const uint32_t hw_w = hw->getWidth();
2931 const uint32_t hw_h = hw->getHeight();
2932 const bool filtering = reqWidth != hw_w || reqWidth != hw_h;
2944 const LayerVector& layers( mDrawingState.layersSortedByZ );
2945 const size_t count = layers.size();
2947 const sp<Layer>& layer(layers[i]);
2948 const Layer::State& state(layer->getDrawingState());
2967 const sp<const DisplayDevice>& hw,
2968 const sp<IGraphicBufferProducer>& producer,
2975 const uint32_t hw_w = hw->getWidth();
2976 const uint32_t hw_h = hw->getHeight();
3075 void SurfaceFlinger::checkScreenshot(size_t w, size_t s, size_t h, void const* vaddr,
3076 const sp<const DisplayDevice>& hw, uint32_t minLayerZ, uint32_t maxLayerZ) {
3079 uint32_t const * p = (uint32_t const *)vaddr + y*s;
3087 const LayerVector& layers( mDrawingState.layersSortedByZ );
3088 const size_t count = layers.size();
3090 const sp<Layer>& layer(layers[i]);
3091 const Layer::State& state(layer->getDrawingState());
3092 const bool visible = (state.layerStack == hw->getLayerStack())
3108 SurfaceFlinger::LayerVector::LayerVector(const LayerVector& rhs)
3112 int SurfaceFlinger::LayerVector::do_compare(const void* lhs,
3113 const void* rhs) const
3116 const sp<Layer>& l(*reinterpret_cast<const sp<Layer>*>(lhs));
3117 const sp<Layer>& r(*reinterpret_cast<const sp<Layer>*>(rhs));