DisplayManager is responsible for managing what appears on the smart glasses display. It handles display requests from apps, implements throttling to prevent display flicker, manages boot screens, handles onboarding flows, and enforces display priorities between foreground and background apps.File: packages/cloud/src/services/layout/DisplayManager6.1.ts
requestBackgroundLock(packageName: string, durationMs: number = 10000): boolean { if (this.displayState.backgroundLock) { const now = Date.now(); // Check if existing lock is expired or inactive if (this.displayState.backgroundLock.expiresAt.getTime() > now && now - this.displayState.backgroundLock.lastActiveTime < this.LOCK_INACTIVE_TIMEOUT) { return false; // Active lock exists } } // Grant lock this.displayState.backgroundLock = { packageName, expiresAt: new Date(Date.now() + durationMs), lastActiveTime: Date.now() }; return true;}