1 /* 2 * Copyright (C) 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.calendar 17 18 import android.app.IntentService 19 import android.content.ContentProviderOperation 20 import android.content.ContentResolver 21 import android.content.ContentValues 22 import android.content.Context 23 import android.content.Intent 24 import android.content.OperationApplicationException 25 import android.database.Cursor 26 import android.net.Uri 27 import android.os.Handler 28 import android.os.Message 29 import android.os.RemoteException 30 import android.os.SystemClock 31 import android.util.Log 32 import java.util.ArrayList 33 import java.util.Arrays 34 import java.util.Iterator 35 import java.util.PriorityQueue 36 import java.util.concurrent.Delayed 37 import java.util.concurrent.TimeUnit 38 39 class AsyncQueryServiceHelper : IntentService { 40 constructor(name: String?) : super(name) {} 41 constructor() : super("AsyncQueryServiceHelper") {} 42 onHandleIntentnull43 protected override fun onHandleIntent(intent: Intent?) { 44 } 45 onStartnull46 override fun onStart(intent: Intent?, startId: Int) { 47 super.onStart(intent, startId) 48 } 49 onCreatenull50 override fun onCreate() { 51 super.onCreate() 52 } 53 onDestroynull54 override fun onDestroy() { 55 super.onDestroy() 56 } 57 58 companion object { 59 private const val TAG = "AsyncQuery" 60 } 61 }