package com.nexlab.openclaw.node.service;

import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.BatteryManager;
import android.os.Build;
import android.os.IBinder;
import android.os.PowerManager;
import android.provider.Settings;
import android.util.Log;
import androidx.core.app.NotificationCompat;
import com.nexlab.openclaw.node.R;
import com.nexlab.openclaw.node.data.remote.NodeClient;
import com.nexlab.openclaw.node.data.repository.SettingsRepository;
import com.nexlab.openclaw.node.domain.model.*;
import com.nexlab.openclaw.node.ui.MainActivity;
import dagger.hilt.android.AndroidEntryPoint;
import kotlinx.coroutines.*;
import javax.inject.Inject;

@kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u0000\u00a6\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000e\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\b\u0010\u0014\u001a\u00020\u0015H\u0002J\b\u0010\u0016\u001a\u00020\u0017H\u0002J\b\u0010\u0018\u001a\u00020\u0015H\u0002J\b\u0010\u0019\u001a\u00020\u0006H\u0002J\u0010\u0010\u001a\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020\u001cH\u0002J\u0010\u0010\u001d\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020\u001eH\u0002J\u0010\u0010\u001f\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020 H\u0002J\u0010\u0010!\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020\"H\u0002J\u0010\u0010#\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020$H\u0002J\u0010\u0010%\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020&H\u0002J\u0010\u0010\'\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020(H\u0002J\u0010\u0010)\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020*H\u0002J\u0010\u0010+\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020,H\u0002J\u0010\u0010-\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u00020.H\u0002J\u0010\u0010/\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u000200H\u0002J\u0010\u00101\u001a\u00020\u00152\u0006\u0010\u001b\u001a\u000202H\u0002J\u0010\u00103\u001a\u0002042\u0006\u00105\u001a\u000206H\u0002J\u0014\u00107\u001a\u0004\u0018\u0001082\b\u00109\u001a\u0004\u0018\u00010:H\u0016J\b\u0010;\u001a\u00020\u0015H\u0016J\b\u0010<\u001a\u00020\u0015H\u0016J\"\u0010=\u001a\u00020\u00062\b\u00109\u001a\u0004\u0018\u00010:2\u0006\u0010>\u001a\u00020\u00062\u0006\u0010?\u001a\u00020\u0006H\u0016J\b\u0010@\u001a\u00020\u0015H\u0002J&\u0010A\u001a\u00020\u00152\u0006\u0010B\u001a\u00020\u00042\u0006\u0010C\u001a\u00020\u00042\u0006\u0010D\u001a\u00020\u0004H\u0082@\u00a2\u0006\u0002\u0010EJ\u000e\u0010F\u001a\u00020\u0015H\u0082@\u00a2\u0006\u0002\u0010GR\u000e\u0010\u0003\u001a\u00020\u0004X\u0082D\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082D\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\nX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001b\u0010\u000b\u001a\u00020\f8BX\u0082\u0084\u0002\u00a2\u0006\f\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u0011\u001a\b\u0018\u00010\u0012R\u00020\u0013X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006H"}, d2 = {"Lcom/nexlab/openclaw/node/service/NodeService;", "Landroid/app/Service;", "()V", "CHANNEL_ID", "", "NOTIFICATION_ID", "", "nodeClient", "Lcom/nexlab/openclaw/node/data/remote/NodeClient;", "scope", "Lkotlinx/coroutines/CoroutineScope;", "screenshotService", "Lcom/nexlab/openclaw/node/service/ScreenshotService;", "getScreenshotService", "()Lcom/nexlab/openclaw/node/service/ScreenshotService;", "screenshotService$delegate", "Lkotlin/Lazy;", "wakeLock", "Landroid/os/PowerManager$WakeLock;", "Landroid/os/PowerManager;", "acquireWakeLock", "", "createNotification", "Landroid/app/Notification;", "createNotificationChannel", "getBatteryLevel", "handleCommand", "command", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand;", "handleDeviceInfo", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$DeviceInfo;", "handleForegroundApp", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$GetForegroundApp;", "handleKeyEvent", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$KeyEvent;", "handleLaunchApp", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$LaunchApp;", "handleListApps", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$ListApps;", "handleLongPress", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$LongPress;", "handleNotificationListener", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$NotificationListener;", "handleScreenshot", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$Screenshot;", "handleShell", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$Shell;", "handleSwipe", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$Swipe;", "handleTap", "Lcom/nexlab/openclaw/node/domain/model/NodeCommand$Tap;", "isSystemApp", "", "appInfo", "Landroid/content/pm/ApplicationInfo;", "onBind", "Landroid/os/IBinder;", "intent", "Landroid/content/Intent;", "onCreate", "onDestroy", "onStartCommand", "flags", "startId", "releaseWakeLock", "startNode", "gatewayUrl", "nodeToken", "nodeId", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "stopNode", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "app_debug"})
public final class NodeService extends android.app.Service {
    @org.jetbrains.annotations.NotNull
    private final com.nexlab.openclaw.node.data.remote.NodeClient nodeClient = null;
    @org.jetbrains.annotations.NotNull
    private final java.lang.String CHANNEL_ID = "openclaw_node_channel";
    private final int NOTIFICATION_ID = 1;
    @org.jetbrains.annotations.Nullable
    private android.os.PowerManager.WakeLock wakeLock;
    @org.jetbrains.annotations.NotNull
    private final kotlinx.coroutines.CoroutineScope scope = null;
    @org.jetbrains.annotations.NotNull
    private final kotlin.Lazy screenshotService$delegate = null;
    
    public NodeService() {
        super();
    }
    
    private final com.nexlab.openclaw.node.service.ScreenshotService getScreenshotService() {
        return null;
    }
    
    @java.lang.Override
    @org.jetbrains.annotations.Nullable
    public android.os.IBinder onBind(@org.jetbrains.annotations.Nullable
    android.content.Intent intent) {
        return null;
    }
    
    @java.lang.Override
    public void onCreate() {
    }
    
    @java.lang.Override
    public int onStartCommand(@org.jetbrains.annotations.Nullable
    android.content.Intent intent, int flags, int startId) {
        return 0;
    }
    
    private final java.lang.Object startNode(java.lang.String gatewayUrl, java.lang.String nodeToken, java.lang.String nodeId, kotlin.coroutines.Continuation<? super kotlin.Unit> $completion) {
        return null;
    }
    
    private final java.lang.Object stopNode(kotlin.coroutines.Continuation<? super kotlin.Unit> $completion) {
        return null;
    }
    
    private final void handleCommand(com.nexlab.openclaw.node.domain.model.NodeCommand command) {
    }
    
    private final void handleScreenshot(com.nexlab.openclaw.node.domain.model.NodeCommand.Screenshot command) {
    }
    
    private final void handleTap(com.nexlab.openclaw.node.domain.model.NodeCommand.Tap command) {
    }
    
    private final void handleSwipe(com.nexlab.openclaw.node.domain.model.NodeCommand.Swipe command) {
    }
    
    private final void handleLongPress(com.nexlab.openclaw.node.domain.model.NodeCommand.LongPress command) {
    }
    
    private final void handleLaunchApp(com.nexlab.openclaw.node.domain.model.NodeCommand.LaunchApp command) {
    }
    
    private final void handleShell(com.nexlab.openclaw.node.domain.model.NodeCommand.Shell command) {
    }
    
    private final void handleDeviceInfo(com.nexlab.openclaw.node.domain.model.NodeCommand.DeviceInfo command) {
    }
    
    private final int getBatteryLevel() {
        return 0;
    }
    
    private final void handleListApps(com.nexlab.openclaw.node.domain.model.NodeCommand.ListApps command) {
    }
    
    private final boolean isSystemApp(android.content.pm.ApplicationInfo appInfo) {
        return false;
    }
    
    private final void handleForegroundApp(com.nexlab.openclaw.node.domain.model.NodeCommand.GetForegroundApp command) {
    }
    
    private final void handleNotificationListener(com.nexlab.openclaw.node.domain.model.NodeCommand.NotificationListener command) {
    }
    
    private final void handleKeyEvent(com.nexlab.openclaw.node.domain.model.NodeCommand.KeyEvent command) {
    }
    
    private final void createNotificationChannel() {
    }
    
    private final android.app.Notification createNotification() {
        return null;
    }
    
    private final void acquireWakeLock() {
    }
    
    private final void releaseWakeLock() {
    }
    
    @java.lang.Override
    public void onDestroy() {
    }
}