1 /* 2 * Copyright (C) 2022 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 17 package com.android.cts.mocka11yime; 18 19 import static java.lang.annotation.RetentionPolicy.SOURCE; 20 21 import android.content.ComponentName; 22 23 import androidx.annotation.StringDef; 24 25 import java.lang.annotation.Retention; 26 27 final class MockA11yImeConstants { 28 static final String SETTINGS_PROVIDER_AUTHORITY = "com.android.cts.mocka11yime.provider"; 29 static final ComponentName COMPONENT_NAME = new ComponentName( 30 "com.android.cts.mocka11yime", "com.android.cts.mocka11yime.MockA11yIme"); 31 32 @Retention(SOURCE) 33 @StringDef(value = { 34 BundleKey.EVENT_CALLBACK_INTENT_ACTION_NAME, 35 BundleKey.SETTINGS, 36 }) 37 public @interface BundleKey { 38 String EVENT_CALLBACK_INTENT_ACTION_NAME = "eventCallbackActionName"; 39 String SETTINGS = "settings"; 40 } 41 42 @Retention(SOURCE) 43 @StringDef(value = { 44 ContentProviderCommand.DELETE, 45 ContentProviderCommand.WRITE, 46 }) 47 public @interface ContentProviderCommand { 48 String DELETE = "delete"; 49 String WRITE = "write"; 50 } 51 } 52