Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 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.systemui; |
| 18 | |
dooyoung.hwang | b647984 | 2016-08-31 14:15:22 +0900 | [diff] [blame] | 19 | import android.app.ActivityThread; |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 20 | import android.app.Application; |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 21 | import android.content.BroadcastReceiver; |
| 22 | import android.content.Context; |
| 23 | import android.content.Intent; |
| 24 | import android.content.IntentFilter; |
dooyoung.hwang | b647984 | 2016-08-31 14:15:22 +0900 | [diff] [blame] | 25 | import android.content.pm.ApplicationInfo; |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 26 | import android.content.res.Configuration; |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 27 | import android.os.Process; |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 28 | import android.os.SystemProperties; |
Fyodor Kupolov | f359135 | 2017-06-23 18:20:40 -0700 | [diff] [blame] | 29 | import android.os.Trace; |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 30 | import android.os.UserHandle; |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 31 | import android.util.Log; |
Beverly | 70dcd00 | 2018-03-29 17:09:16 -0400 | [diff] [blame] | 32 | import android.util.TimingsTraceLog; |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 33 | |
Dave Mankoff | f473681 | 2019-10-18 17:25:50 -0400 | [diff] [blame] | 34 | import com.android.systemui.dagger.ContextComponentHelper; |
Fabian Kozynski | 1cb4aae | 2019-11-25 14:27:00 -0500 | [diff] [blame] | 35 | import com.android.systemui.dagger.SystemUIRootComponent; |
Ned Burns | c7cfa69 | 2020-02-12 21:38:50 -0500 | [diff] [blame] | 36 | import com.android.systemui.dump.DumpManager; |
Dan Sandler | 8e032e1 | 2017-01-25 13:41:38 -0500 | [diff] [blame] | 37 | import com.android.systemui.util.NotificationChannels; |
Jorim Jaggi | 61f39a7 | 2015-10-29 16:54:18 +0100 | [diff] [blame] | 38 | |
Dave Mankoff | a5d8a39 | 2019-10-10 12:21:09 -0400 | [diff] [blame] | 39 | import java.lang.reflect.Constructor; |
| 40 | import java.lang.reflect.InvocationTargetException; |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 41 | |
| 42 | /** |
| 43 | * Application class for SystemUI. |
| 44 | */ |
Dave Mankoff | 95754e7 | 2019-11-14 11:39:18 -0500 | [diff] [blame] | 45 | public class SystemUIApplication extends Application implements |
Dave Mankoff | e229469 | 2019-08-14 11:53:13 -0400 | [diff] [blame] | 46 | SystemUIAppComponentFactory.ContextInitializer { |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 47 | |
Dan Sandler | dc2ddd7 | 2018-01-24 16:09:53 -0500 | [diff] [blame] | 48 | public static final String TAG = "SystemUIService"; |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 49 | private static final boolean DEBUG = false; |
| 50 | |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 51 | private ContextComponentHelper mComponentHelper; |
Fabian Kozynski | 1cb4aae | 2019-11-25 14:27:00 -0500 | [diff] [blame] | 52 | private BootCompleteCacheImpl mBootCompleteCache; |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 53 | |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 54 | /** |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 55 | * Hold a reference on the stuff we start. |
| 56 | */ |
yoshiki iguchi | 61b3708 | 2017-11-29 16:46:32 +0900 | [diff] [blame] | 57 | private SystemUI[] mServices; |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 58 | private boolean mServicesStarted; |
Dave Mankoff | a4a7136 | 2019-08-27 14:40:05 -0400 | [diff] [blame] | 59 | private SystemUIAppComponentFactory.ContextAvailableCallback mContextAvailableCallback; |
Dave Mankoff | 71fca1a | 2019-12-19 14:16:32 -0500 | [diff] [blame] | 60 | private SystemUIRootComponent mRootComponent; |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 61 | |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 62 | public SystemUIApplication() { |
| 63 | super(); |
| 64 | Log.v(TAG, "SystemUIApplication constructed."); |
| 65 | } |
| 66 | |
Adrian Roos | 070a0b6 | 2014-04-10 23:25:03 +0200 | [diff] [blame] | 67 | @Override |
| 68 | public void onCreate() { |
| 69 | super.onCreate(); |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 70 | Log.v(TAG, "SystemUIApplication created."); |
Dave Mankoff | 2ea5a83 | 2019-07-03 13:26:55 -0400 | [diff] [blame] | 71 | // This line is used to setup Dagger's dependency injection and should be kept at the |
| 72 | // top of this method. |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 73 | TimingsTraceLog log = new TimingsTraceLog("SystemUIBootTiming", |
| 74 | Trace.TRACE_TAG_APP); |
| 75 | log.traceBegin("DependencyInjection"); |
Dave Mankoff | 2ea5a83 | 2019-07-03 13:26:55 -0400 | [diff] [blame] | 76 | mContextAvailableCallback.onContextAvailable(this); |
Dave Mankoff | 71fca1a | 2019-12-19 14:16:32 -0500 | [diff] [blame] | 77 | mRootComponent = SystemUIFactory.getInstance().getRootComponent(); |
| 78 | mComponentHelper = mRootComponent.getContextComponentHelper(); |
| 79 | mBootCompleteCache = mRootComponent.provideBootCacheImpl(); |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 80 | log.traceEnd(); |
Dave Mankoff | 2ea5a83 | 2019-07-03 13:26:55 -0400 | [diff] [blame] | 81 | |
Adrian Roos | 070a0b6 | 2014-04-10 23:25:03 +0200 | [diff] [blame] | 82 | // Set the application theme that is inherited by all services. Note that setting the |
| 83 | // application theme in the manifest does only work for activities. Keep this in sync with |
| 84 | // the theme set there. |
Lucas Dupin | e17ce52 | 2017-07-17 15:45:06 -0700 | [diff] [blame] | 85 | setTheme(R.style.Theme_SystemUI); |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 86 | |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 87 | if (Process.myUserHandle().equals(UserHandle.SYSTEM)) { |
Beverly | 6ea063e | 2018-04-19 10:27:06 -0400 | [diff] [blame] | 88 | IntentFilter bootCompletedFilter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED); |
| 89 | bootCompletedFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 90 | registerReceiver(new BroadcastReceiver() { |
| 91 | @Override |
| 92 | public void onReceive(Context context, Intent intent) { |
Fabian Kozynski | 1cb4aae | 2019-11-25 14:27:00 -0500 | [diff] [blame] | 93 | if (mBootCompleteCache.isBootComplete()) return; |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 94 | |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 95 | if (DEBUG) Log.v(TAG, "BOOT_COMPLETED received"); |
| 96 | unregisterReceiver(this); |
Fabian Kozynski | 1cb4aae | 2019-11-25 14:27:00 -0500 | [diff] [blame] | 97 | mBootCompleteCache.setBootComplete(); |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 98 | if (mServicesStarted) { |
| 99 | final int N = mServices.length; |
| 100 | for (int i = 0; i < N; i++) { |
| 101 | mServices[i].onBootCompleted(); |
| 102 | } |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 103 | } |
| 104 | } |
Beverly | 6ea063e | 2018-04-19 10:27:06 -0400 | [diff] [blame] | 105 | }, bootCompletedFilter); |
| 106 | |
| 107 | IntentFilter localeChangedFilter = new IntentFilter(Intent.ACTION_LOCALE_CHANGED); |
| 108 | registerReceiver(new BroadcastReceiver() { |
| 109 | @Override |
| 110 | public void onReceive(Context context, Intent intent) { |
| 111 | if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) { |
Fabian Kozynski | 1cb4aae | 2019-11-25 14:27:00 -0500 | [diff] [blame] | 112 | if (!mBootCompleteCache.isBootComplete()) return; |
Beverly | 6ea063e | 2018-04-19 10:27:06 -0400 | [diff] [blame] | 113 | // Update names of SystemUi notification channels |
| 114 | NotificationChannels.createAll(context); |
| 115 | } |
| 116 | } |
| 117 | }, localeChangedFilter); |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 118 | } else { |
dooyoung.hwang | b647984 | 2016-08-31 14:15:22 +0900 | [diff] [blame] | 119 | // We don't need to startServices for sub-process that is doing some tasks. |
| 120 | // (screenshots, sweetsweetdesserts or tuner ..) |
| 121 | String processName = ActivityThread.currentProcessName(); |
| 122 | ApplicationInfo info = getApplicationInfo(); |
| 123 | if (processName != null && processName.startsWith(info.processName + ":")) { |
| 124 | return; |
| 125 | } |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 126 | // For a secondary user, boot-completed will never be called because it has already |
| 127 | // been broadcasted on startup for the primary SystemUI process. Instead, for |
| 128 | // components which require the SystemUI component to be initialized per-user, we |
| 129 | // start those components now for the current non-system user. |
yoshiki iguchi | 61b3708 | 2017-11-29 16:46:32 +0900 | [diff] [blame] | 130 | startSecondaryUserServicesIfNeeded(); |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 131 | } |
Adrian Roos | 070a0b6 | 2014-04-10 23:25:03 +0200 | [diff] [blame] | 132 | } |
| 133 | |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 134 | /** |
| 135 | * Makes sure that all the SystemUI services are running. If they are already running, this is a |
| 136 | * no-op. This is needed to conditinally start all the services, as we only need to have it in |
| 137 | * the main process. |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 138 | * <p>This method must only be called from the main thread.</p> |
| 139 | */ |
Jason Monk | be3235a | 2017-04-05 09:29:53 -0400 | [diff] [blame] | 140 | |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 141 | public void startServicesIfNeeded() { |
Heemin Seog | 8277c31 | 2020-04-27 10:12:14 -0700 | [diff] [blame] | 142 | String[] names = SystemUIFactory.getInstance().getSystemUIServiceComponents(getResources()); |
Heemin Seog | 7d88476 | 2019-11-08 10:09:10 -0800 | [diff] [blame] | 143 | startServicesIfNeeded(/* metricsPrefix= */ "StartServices", names); |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 144 | } |
| 145 | |
Winson | 3c2c34b | 2016-04-04 17:47:41 -0700 | [diff] [blame] | 146 | /** |
| 147 | * Ensures that all the Secondary user SystemUI services are running. If they are already |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 148 | * running, this is a no-op. This is needed to conditionally start all the services, as we only |
Winson | 3c2c34b | 2016-04-04 17:47:41 -0700 | [diff] [blame] | 149 | * need to have it in the main process. |
Winson | 3c2c34b | 2016-04-04 17:47:41 -0700 | [diff] [blame] | 150 | * <p>This method must only be called from the main thread.</p> |
| 151 | */ |
| 152 | void startSecondaryUserServicesIfNeeded() { |
Heemin Seog | 8277c31 | 2020-04-27 10:12:14 -0700 | [diff] [blame] | 153 | String[] names = SystemUIFactory.getInstance().getSystemUIServiceComponentsPerUser( |
| 154 | getResources()); |
Heemin Seog | 7d88476 | 2019-11-08 10:09:10 -0800 | [diff] [blame] | 155 | startServicesIfNeeded(/* metricsPrefix= */ "StartSecondaryServices", names); |
Winson | 3c2c34b | 2016-04-04 17:47:41 -0700 | [diff] [blame] | 156 | } |
| 157 | |
Heemin Seog | 7d88476 | 2019-11-08 10:09:10 -0800 | [diff] [blame] | 158 | private void startServicesIfNeeded(String metricsPrefix, String[] services) { |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 159 | if (mServicesStarted) { |
| 160 | return; |
| 161 | } |
yoshiki iguchi | 61b3708 | 2017-11-29 16:46:32 +0900 | [diff] [blame] | 162 | mServices = new SystemUI[services.length]; |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 163 | |
Fabian Kozynski | 1cb4aae | 2019-11-25 14:27:00 -0500 | [diff] [blame] | 164 | if (!mBootCompleteCache.isBootComplete()) { |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 165 | // check to see if maybe it was already completed long before we began |
| 166 | // see ActivityManagerService.finishBooting() |
| 167 | if ("1".equals(SystemProperties.get("sys.boot_completed"))) { |
Fabian Kozynski | 1cb4aae | 2019-11-25 14:27:00 -0500 | [diff] [blame] | 168 | mBootCompleteCache.setBootComplete(); |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 169 | if (DEBUG) { |
| 170 | Log.v(TAG, "BOOT_COMPLETED was already sent"); |
| 171 | } |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 172 | } |
| 173 | } |
| 174 | |
Ned Burns | c7cfa69 | 2020-02-12 21:38:50 -0500 | [diff] [blame] | 175 | final DumpManager dumpManager = mRootComponent.createDumpManager(); |
| 176 | |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 177 | Log.v(TAG, "Starting SystemUI services for user " + |
| 178 | Process.myUserHandle().getIdentifier() + "."); |
Fyodor Kupolov | 6e3461b | 2017-08-10 17:00:43 -0700 | [diff] [blame] | 179 | TimingsTraceLog log = new TimingsTraceLog("SystemUIBootTiming", |
Fyodor Kupolov | f359135 | 2017-06-23 18:20:40 -0700 | [diff] [blame] | 180 | Trace.TRACE_TAG_APP); |
Heemin Seog | 7d88476 | 2019-11-08 10:09:10 -0800 | [diff] [blame] | 181 | log.traceBegin(metricsPrefix); |
Winson | fe67aba | 2015-09-22 14:04:46 -0700 | [diff] [blame] | 182 | final int N = services.length; |
Jason Monk | 421a941 | 2017-02-06 09:15:21 -0800 | [diff] [blame] | 183 | for (int i = 0; i < N; i++) { |
yoshiki iguchi | 61b3708 | 2017-11-29 16:46:32 +0900 | [diff] [blame] | 184 | String clsName = services[i]; |
| 185 | if (DEBUG) Log.d(TAG, "loading: " + clsName); |
Heemin Seog | 7d88476 | 2019-11-08 10:09:10 -0800 | [diff] [blame] | 186 | log.traceBegin(metricsPrefix + clsName); |
Fyodor Kupolov | f359135 | 2017-06-23 18:20:40 -0700 | [diff] [blame] | 187 | long ti = System.currentTimeMillis(); |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 188 | try { |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 189 | SystemUI obj = mComponentHelper.resolveSystemUI(clsName); |
| 190 | if (obj == null) { |
Dave Mankoff | a5d8a39 | 2019-10-10 12:21:09 -0400 | [diff] [blame] | 191 | Constructor constructor = Class.forName(clsName).getConstructor(Context.class); |
| 192 | obj = (SystemUI) constructor.newInstance(this); |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 193 | } |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 194 | mServices[i] = obj; |
Dave Mankoff | a5d8a39 | 2019-10-10 12:21:09 -0400 | [diff] [blame] | 195 | } catch (ClassNotFoundException |
| 196 | | NoSuchMethodException |
| 197 | | IllegalAccessException |
| 198 | | InstantiationException |
| 199 | | InvocationTargetException ex) { |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 200 | throw new RuntimeException(ex); |
| 201 | } |
Muyuan Li | 94ce94e | 2016-02-24 16:20:54 -0800 | [diff] [blame] | 202 | |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 203 | if (DEBUG) Log.d(TAG, "running: " + mServices[i]); |
| 204 | mServices[i].start(); |
Fyodor Kupolov | f359135 | 2017-06-23 18:20:40 -0700 | [diff] [blame] | 205 | log.traceEnd(); |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 206 | |
Fyodor Kupolov | f359135 | 2017-06-23 18:20:40 -0700 | [diff] [blame] | 207 | // Warn if initialization of component takes too long |
| 208 | ti = System.currentTimeMillis() - ti; |
| 209 | if (ti > 1000) { |
Dave Mankoff | aa8b7ae | 2019-09-04 18:03:21 -0400 | [diff] [blame] | 210 | Log.w(TAG, "Initialization of " + clsName + " took " + ti + " ms"); |
Fyodor Kupolov | f359135 | 2017-06-23 18:20:40 -0700 | [diff] [blame] | 211 | } |
Fabian Kozynski | 1cb4aae | 2019-11-25 14:27:00 -0500 | [diff] [blame] | 212 | if (mBootCompleteCache.isBootComplete()) { |
Dan Sandler | dc5f16b | 2014-04-22 11:51:42 -0400 | [diff] [blame] | 213 | mServices[i].onBootCompleted(); |
| 214 | } |
Ned Burns | c7cfa69 | 2020-02-12 21:38:50 -0500 | [diff] [blame] | 215 | |
| 216 | dumpManager.registerDumpable(mServices[i].getClass().getName(), mServices[i]); |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 217 | } |
Dave Mankoff | 71fca1a | 2019-12-19 14:16:32 -0500 | [diff] [blame] | 218 | mRootComponent.getInitController().executePostInitTasks(); |
Fyodor Kupolov | f359135 | 2017-06-23 18:20:40 -0700 | [diff] [blame] | 219 | log.traceEnd(); |
Jason Monk | 86bc331 | 2016-08-16 13:17:56 -0400 | [diff] [blame] | 220 | |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 221 | mServicesStarted = true; |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 222 | } |
| 223 | |
| 224 | @Override |
| 225 | public void onConfigurationChanged(Configuration newConfig) { |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 226 | if (mServicesStarted) { |
Dave Mankoff | 71fca1a | 2019-12-19 14:16:32 -0500 | [diff] [blame] | 227 | mRootComponent.getConfigurationController().onConfigurationChanged(newConfig); |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 228 | int len = mServices.length; |
| 229 | for (int i = 0; i < len; i++) { |
Winson | 94a1485 | 2015-09-23 12:44:33 -0700 | [diff] [blame] | 230 | if (mServices[i] != null) { |
| 231 | mServices[i].onConfigurationChanged(newConfig); |
| 232 | } |
Jorim Jaggi | 3beffdf | 2014-04-03 17:37:37 +0200 | [diff] [blame] | 233 | } |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 234 | } |
| 235 | } |
| 236 | |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 237 | public SystemUI[] getServices() { |
| 238 | return mServices; |
| 239 | } |
Dave Mankoff | 2ea5a83 | 2019-07-03 13:26:55 -0400 | [diff] [blame] | 240 | |
Dave Mankoff | a4a7136 | 2019-08-27 14:40:05 -0400 | [diff] [blame] | 241 | @Override |
| 242 | public void setContextAvailableCallback( |
| 243 | SystemUIAppComponentFactory.ContextAvailableCallback callback) { |
Dave Mankoff | 2ea5a83 | 2019-07-03 13:26:55 -0400 | [diff] [blame] | 244 | mContextAvailableCallback = callback; |
| 245 | } |
| 246 | |
Jorim Jaggi | cff0acb | 2014-03-31 16:35:15 +0200 | [diff] [blame] | 247 | } |