blob: 0cb90657480e322aa3097e7c444697a066671a4b [file] [log] [blame]
Neil Fuller328532a2017-03-16 18:32:21 +00001/*
2 * Copyright (C) 2017 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
17package com.android.server.timezone;
18
19/**
20 * An easy-to-mock interface around intent sending / receiving for use by {@link PackageTracker};
21 * it is not possible to test various cases with the real one because of the need to simulate
22 * receiving and broadcasting intents.
23 */
24interface IntentHelper {
25
26 void initialize(String updateAppPackageName, String dataAppPackageName, Listener listener);
27
28 void sendTriggerUpdateCheck(CheckToken checkToken);
29
30 void enableReliabilityTriggering();
31
32 void disableReliabilityTriggering();
33
34 interface Listener {
35 void triggerUpdateIfNeeded(boolean packageUpdated);
36 }
37}