Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.server.people.data;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.WorkerThread;
import android.net.Uri;
import android.util.ArrayMap;
import com.android.internal.annotations.GuardedBy;
import java.io.File;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ScheduledExecutorService;
import java.util.function.Predicate;
/** The store that stores and accesses the events data for a package. */
class EventStore {
/** The events that are queryable with a shortcut ID. */
static final int CATEGORY_SHORTCUT_BASED = 0;
/** The events that are queryable with a {@link android.content.LocusId}. */
static final int CATEGORY_LOCUS_ID_BASED = 1;
/** The phone call events that are queryable with a phone number. */
static final int CATEGORY_CALL = 2;
/** The SMS or MMS events that are queryable with a phone number. */
static final int CATEGORY_SMS = 3;
/** The events that are queryable with an {@link android.app.Activity} class name. */
static final int CATEGORY_CLASS_BASED = 4;
@IntDef(prefix = { "CATEGORY_" }, value = {
CATEGORY_SHORTCUT_BASED,
CATEGORY_LOCUS_ID_BASED,
CATEGORY_CALL,
CATEGORY_SMS,
CATEGORY_CLASS_BASED,
})
@Retention(RetentionPolicy.SOURCE)
@interface EventCategory {}
@GuardedBy("this")
private final List