Home | History | Annotate | Download | only in common
      1 /*
      2  * Copyright (C) 2018 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 android.content.syncmanager.cts.common;
     17 
     18 import android.accounts.Account;
     19 import android.content.ComponentName;
     20 
     21 public class Values {
     22     public static final String APP1_PACKAGE = "android.content.syncmanager.cts.app1";
     23     public static final String APP2_PACKAGE = "android.content.syncmanager.cts.app2";
     24 
     25     public static final Account ACCOUNT_1_A = new Account("accountA", APP1_PACKAGE);
     26 
     27     public static final String APP1_AUTHORITY = "android.content.syncmanager.cts.app.provider1";
     28     public static final String APP2_AUTHORITY = "android.content.syncmanager.cts.app.provider2";
     29 
     30     public static final String COMM_RECEIVER = "android.content.syncmanager.cts.app.CommReceiver";
     31 
     32     public static final ComponentName APP1_RECEIVER = getCommReceiver(APP1_PACKAGE);
     33     public static final ComponentName APP2_RECEIVER = getCommReceiver(APP2_PACKAGE);
     34 
     35     public static ComponentName getCommReceiver(String packageName) {
     36         return new ComponentName(packageName, COMM_RECEIVER);
     37     }
     38 }
     39