Lines Matching refs:mService

72     final WindowManagerService mService;
94 mService = service;
102 mShowingAlertWindowNotificationAllowed = mService.mShowAlertWindowNotifications;
120 synchronized (mService.mWindowMap) {
121 if (mService.mInputMethodManager == null && mService.mHaveInputMethods) {
124 mService.mInputMethodManager = IInputMethodManager.Stub.asInterface(b);
131 if (mService.mInputMethodManager != null) {
132 mService.mInputMethodManager.addClient(client, inputContext,
141 if (mService.mInputMethodManager != null) {
142 mService.mInputMethodManager.removeClient(client);
169 if (mService.mInputMethodManager != null) {
170 mService.mInputMethodManager.removeClient(mClient);
174 synchronized(mService.mWindowMap) {
193 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId,
207 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId,
212 mService.removeWindow(this, window);
217 mService.setWillReplaceWindows(appToken, childrenOnly);
228 int res = mService.relayoutWindow(this, window, seq, attrs,
239 return mService.outOfMemoryWindow(this, window);
243 mService.setTransparentRegionWindow(this, window, region);
248 mService.setInsetsWindow(this, window, touchableInsets, contentInsets,
253 mService.getWindowDisplayFrame(this, window, outDisplayFrame);
259 mService.finishDrawingWindow(this, window);
263 synchronized(mService.mWindowMap) {
264 mService.mInTouchMode = mode;
269 synchronized(mService.mWindowMap) {
270 return mService.mInTouchMode;
276 synchronized(mService.mWindowMap) {
279 return mService.mPolicy.performHapticFeedbackLw(
280 mService.windowForClientLocked(this, window, true),
291 return mService.prepareDragSurface(window, mSurfaceSession, flags,
302 synchronized (mService.mWindowMap) {
303 if (mService.mDragState == null) {
308 if (dragToken != mService.mDragState.mToken) {
313 WindowState callingWin = mService.windowForClientLocked(null, window, false);
323 mService.mH.removeMessages(H.DRAG_START_TIMEOUT, window.asBinder());
336 mService.mDragState.register(display);
337 if (!mService.mInputManager.transferTouchFocus(callingWin.mInputChannel,
338 mService.mDragState.getInputChannel())) {
340 mService.mDragState.unregister();
341 mService.mDragState.reset();
342 mService.mDragState = null;
346 mService.mDragState.mDisplayContent = displayContent;
347 mService.mDragState.mData = data;
348 mService.mDragState.broadcastDragStartedLw(touchX, touchY);
349 mService.mDragState.overridePointerIconLw(touchSource);
352 mService.mDragState.mThumbOffsetX = thumbCenterX;
353 mService.mDragState.mThumbOffsetY = thumbCenterY;
356 final SurfaceControl surfaceControl = mService.mDragState.mSurfaceControl;
359 mService.openSurfaceTransaction();
363 surfaceControl.setLayer(mService.mDragState.getDragLayerLw());
367 mService.closeSurfaceTransaction();
372 mService.mDragState.notifyLocationLw(touchX, touchY);
384 return mService.startMovingTask(window, startX, startY);
396 synchronized (mService.mWindowMap) {
399 if (mService.mDragState == null) {
406 if (mService.mDragState.mToken != token) {
415 mService.mH.removeMessages(H.DRAG_END_TIMEOUT, window.asBinder());
416 WindowState callingWin = mService.windowForClientLocked(null, window, false);
422 mService.mDragState.mDragResult = consumed;
423 mService.mDragState.endDragLw();
435 synchronized (mService.mWindowMap) {
438 if (mService.mDragState == null) {
443 if (mService.mDragState.mToken != dragToken) {
450 mService.mDragState.mDragResult = false;
451 mService.mDragState.cancelDragLw();
471 synchronized(mService.mWindowMap) {
474 mService.mRoot.mWallpaperController.setWindowWallpaperPosition(
475 mService.windowForClientLocked(this, window, true),
484 synchronized (mService.mWindowMap) {
485 mService.mRoot.mWallpaperController.wallpaperOffsetsComplete(window);
490 synchronized(mService.mWindowMap) {
493 mService.mRoot.mWallpaperController.setWindowWallpaperDisplayOffset(
494 mService.windowForClientLocked(this, window, true), x, y);
503 synchronized(mService.mWindowMap) {
506 return mService.mRoot.mWallpaperController.sendWindowWallpaperCommand(
507 mService.windowForClientLocked(this, window, true),
516 synchronized (mService.mWindowMap) {
517 mService.mRoot.mWallpaperController.wallpaperCommandComplete(window);
522 synchronized(mService.mWindowMap) {
525 mService.onRectangleOnScreenRequested(token, rectangle);
533 return mService.getWindowId(window);
540 mService.pokeDrawLock(this, window);
550 mService.updatePointerIcon(window);
565 mService.mSessions.add(this);
566 if (mLastReportedAnimatorScale != mService.getCurrentAnimatorScale()) {
567 mService.dispatchNewAnimatorScaleLocked(this);
601 mAlertWindowNotification = new AlertWindowNotification(mService, mPackageName);
642 mService.mSessions.remove(this);
664 mService.mH.obtainMessage(H.SET_HAS_OVERLAY_UI, mPid, hasOverlayUi ? 1 : 0).sendToTarget();