Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 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 com.android.systemui.qs.external; |
| 17 | |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 18 | import static junit.framework.Assert.assertFalse; |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 19 | import static junit.framework.Assert.assertTrue; |
Jason Monk | e978928 | 2016-11-09 08:59:56 -0500 | [diff] [blame] | 20 | |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 21 | import static org.junit.Assert.assertEquals; |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 22 | import static org.mockito.Mockito.any; |
| 23 | import static org.mockito.Mockito.anyInt; |
| 24 | import static org.mockito.Mockito.anyString; |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 25 | import static org.mockito.Mockito.never; |
| 26 | import static org.mockito.Mockito.times; |
| 27 | import static org.mockito.Mockito.verify; |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 28 | import static org.mockito.Mockito.when; |
| 29 | |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 30 | import android.content.ComponentName; |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 31 | import android.content.Intent; |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 32 | import android.content.pm.PackageInfo; |
| 33 | import android.content.pm.ServiceInfo; |
| 34 | import android.net.Uri; |
| 35 | import android.os.Bundle; |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 36 | import android.os.Handler; |
| 37 | import android.os.HandlerThread; |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 38 | import android.os.UserHandle; |
Jason Monk | fe8f682 | 2015-12-21 15:12:01 -0500 | [diff] [blame] | 39 | import android.service.quicksettings.IQSService; |
| 40 | import android.service.quicksettings.IQSTileService; |
| 41 | import android.service.quicksettings.Tile; |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 42 | import android.service.quicksettings.TileService; |
Jason Monk | 0c6e099 | 2016-03-29 15:49:02 -0400 | [diff] [blame] | 43 | import android.test.suitebuilder.annotation.SmallTest; |
Jason Monk | e978928 | 2016-11-09 08:59:56 -0500 | [diff] [blame] | 44 | |
Brett Chabot | 84151d9 | 2019-02-27 15:37:59 -0800 | [diff] [blame] | 45 | import androidx.test.runner.AndroidJUnit4; |
| 46 | |
Jason Monk | e978928 | 2016-11-09 08:59:56 -0500 | [diff] [blame] | 47 | import com.android.systemui.SysuiTestCase; |
| 48 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 49 | import org.junit.After; |
| 50 | import org.junit.Before; |
| 51 | import org.junit.Test; |
| 52 | import org.junit.runner.RunWith; |
Jason Monk | a3453b8b | 2016-06-17 12:42:59 -0400 | [diff] [blame] | 53 | import org.mockito.Mockito; |
| 54 | |
Jason Monk | 0c6e099 | 2016-03-29 15:49:02 -0400 | [diff] [blame] | 55 | @SmallTest |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 56 | @RunWith(AndroidJUnit4.class) |
Jason Monk | e978928 | 2016-11-09 08:59:56 -0500 | [diff] [blame] | 57 | public class TileLifecycleManagerTest extends SysuiTestCase { |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 58 | private static final int TEST_FAIL_TIMEOUT = 5000; |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 59 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 60 | private final PackageManagerAdapter mMockPackageManagerAdapter = |
| 61 | Mockito.mock(PackageManagerAdapter.class); |
| 62 | private final IQSTileService.Stub mMockTileService = Mockito.mock(IQSTileService.Stub.class); |
| 63 | private ComponentName mTileServiceComponentName; |
| 64 | private Intent mTileServiceIntent; |
| 65 | private UserHandle mUser; |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 66 | private HandlerThread mThread; |
| 67 | private Handler mHandler; |
| 68 | private TileLifecycleManager mStateManager; |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 69 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 70 | @Before |
| 71 | public void setUp() throws Exception { |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 72 | setPackageEnabled(true); |
Jason Monk | e978928 | 2016-11-09 08:59:56 -0500 | [diff] [blame] | 73 | mTileServiceComponentName = new ComponentName(mContext, "FakeTileService.class"); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 74 | |
| 75 | // Stub.asInterface will just return itself. |
| 76 | when(mMockTileService.queryLocalInterface(anyString())).thenReturn(mMockTileService); |
| 77 | |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 78 | mContext.addMockService(mTileServiceComponentName, mMockTileService); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 79 | |
| 80 | |
| 81 | mTileServiceIntent = new Intent().setComponent(mTileServiceComponentName); |
| 82 | mUser = new UserHandle(UserHandle.myUserId()); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 83 | mThread = new HandlerThread("TestThread"); |
| 84 | mThread.start(); |
Jason Monk | 6dceace | 2018-05-15 20:24:07 -0400 | [diff] [blame] | 85 | mHandler = Handler.createAsync(mThread.getLooper()); |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 86 | mStateManager = new TileLifecycleManager(mHandler, mContext, |
Jason Monk | ee68fd8 | 2016-06-23 13:12:23 -0400 | [diff] [blame] | 87 | Mockito.mock(IQSService.class), new Tile(), |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 88 | mTileServiceIntent, |
| 89 | mUser, |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 90 | mMockPackageManagerAdapter); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 91 | } |
| 92 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 93 | @After |
| 94 | public void tearDown() throws Exception { |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 95 | mThread.quit(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 96 | } |
| 97 | |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 98 | private void setPackageEnabled(boolean enabled) throws Exception { |
| 99 | ServiceInfo defaultServiceInfo = null; |
| 100 | if (enabled) { |
| 101 | defaultServiceInfo = new ServiceInfo(); |
| 102 | defaultServiceInfo.metaData = new Bundle(); |
| 103 | defaultServiceInfo.metaData.putBoolean(TileService.META_DATA_ACTIVE_TILE, true); |
| 104 | } |
| 105 | when(mMockPackageManagerAdapter.getServiceInfo(any(), anyInt(), anyInt())) |
| 106 | .thenReturn(defaultServiceInfo); |
| 107 | when(mMockPackageManagerAdapter.getServiceInfo(any(), anyInt())) |
| 108 | .thenReturn(defaultServiceInfo); |
| 109 | PackageInfo defaultPackageInfo = new PackageInfo(); |
| 110 | when(mMockPackageManagerAdapter.getPackageInfoAsUser(anyString(), anyInt(), anyInt())) |
| 111 | .thenReturn(defaultPackageInfo); |
| 112 | } |
| 113 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 114 | private void verifyBind(int times) { |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 115 | assertEquals(times > 0, mContext.isBound(mTileServiceComponentName)); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 116 | } |
| 117 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 118 | @Test |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 119 | public void testBind() { |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 120 | mStateManager.setBindService(true); |
| 121 | verifyBind(1); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 122 | } |
| 123 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 124 | @Test |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 125 | public void testUnbind() { |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 126 | mStateManager.setBindService(true); |
| 127 | mStateManager.setBindService(false); |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 128 | assertFalse(mContext.isBound(mTileServiceComponentName)); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 129 | } |
| 130 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 131 | @Test |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 132 | public void testTileServiceCallbacks() throws Exception { |
| 133 | mStateManager.setBindService(true); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 134 | mStateManager.onTileAdded(); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 135 | verify(mMockTileService).onTileAdded(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 136 | mStateManager.onStartListening(); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 137 | verify(mMockTileService).onStartListening(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 138 | mStateManager.onClick(null); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 139 | verify(mMockTileService).onClick(null); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 140 | mStateManager.onStopListening(); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 141 | verify(mMockTileService).onStopListening(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 142 | mStateManager.onTileRemoved(); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 143 | verify(mMockTileService).onTileRemoved(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 144 | } |
| 145 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 146 | @Test |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 147 | public void testAddedBeforeBind() throws Exception { |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 148 | mStateManager.onTileAdded(); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 149 | mStateManager.setBindService(true); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 150 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 151 | verifyBind(1); |
| 152 | verify(mMockTileService).onTileAdded(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 153 | } |
| 154 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 155 | @Test |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 156 | public void testListeningBeforeBind() throws Exception { |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 157 | mStateManager.onTileAdded(); |
| 158 | mStateManager.onStartListening(); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 159 | mStateManager.setBindService(true); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 160 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 161 | verifyBind(1); |
| 162 | verify(mMockTileService).onTileAdded(); |
| 163 | verify(mMockTileService).onStartListening(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 164 | } |
| 165 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 166 | @Test |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 167 | public void testClickBeforeBind() throws Exception { |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 168 | mStateManager.onTileAdded(); |
| 169 | mStateManager.onStartListening(); |
| 170 | mStateManager.onClick(null); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 171 | mStateManager.setBindService(true); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 172 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 173 | verifyBind(1); |
| 174 | verify(mMockTileService).onTileAdded(); |
| 175 | verify(mMockTileService).onStartListening(); |
| 176 | verify(mMockTileService).onClick(null); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 177 | } |
| 178 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 179 | @Test |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 180 | public void testListeningNotListeningBeforeBind() throws Exception { |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 181 | mStateManager.onTileAdded(); |
| 182 | mStateManager.onStartListening(); |
| 183 | mStateManager.onStopListening(); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 184 | mStateManager.setBindService(true); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 185 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 186 | verifyBind(1); |
| 187 | mStateManager.setBindService(false); |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 188 | assertFalse(mContext.isBound(mTileServiceComponentName)); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 189 | verify(mMockTileService, never()).onStartListening(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 190 | } |
| 191 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 192 | @Test |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 193 | public void testNoClickOfNotListeningAnymore() throws Exception { |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 194 | mStateManager.onTileAdded(); |
| 195 | mStateManager.onStartListening(); |
| 196 | mStateManager.onClick(null); |
| 197 | mStateManager.onStopListening(); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 198 | mStateManager.setBindService(true); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 199 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 200 | verifyBind(1); |
| 201 | mStateManager.setBindService(false); |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 202 | assertFalse(mContext.isBound(mTileServiceComponentName)); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 203 | verify(mMockTileService, never()).onClick(null); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 204 | } |
| 205 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 206 | @Test |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 207 | public void testComponentEnabling() throws Exception { |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 208 | mStateManager.onTileAdded(); |
| 209 | mStateManager.onStartListening(); |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 210 | setPackageEnabled(false); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 211 | mStateManager.setBindService(true); |
| 212 | // Package not available, not yet created. |
| 213 | verifyBind(0); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 214 | |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 215 | // Package is re-enabled. |
| 216 | setPackageEnabled(true); |
| 217 | mStateManager.onReceive( |
Jason Monk | 3cfedd7 | 2016-12-09 09:31:37 -0500 | [diff] [blame] | 218 | mContext, |
Geoffrey Pitsch | af2076a | 2016-08-31 12:44:08 -0400 | [diff] [blame] | 219 | new Intent( |
| 220 | Intent.ACTION_PACKAGE_CHANGED, |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 221 | Uri.fromParts( |
| 222 | "package", mTileServiceComponentName.getPackageName(), null))); |
| 223 | verifyBind(1); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 224 | } |
| 225 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 226 | @Test |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 227 | public void testKillProcess() throws Exception { |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 228 | mStateManager.onStartListening(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 229 | mStateManager.setBindService(true); |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 230 | mStateManager.setBindRetryDelay(0); |
| 231 | mStateManager.onServiceDisconnected(mTileServiceComponentName); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 232 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 233 | // Guarantees mHandler has processed all messages. |
| 234 | assertTrue(mHandler.runWithScissors(()->{}, TEST_FAIL_TIMEOUT)); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 235 | |
Geoffrey Pitsch | ebee1a3 | 2016-09-09 13:04:12 -0400 | [diff] [blame] | 236 | // Two calls: one for the first bind, one for the restart. |
| 237 | verifyBind(2); |
| 238 | verify(mMockTileService, times(2)).onStartListening(); |
Jason Monk | d5a204f | 2015-12-21 08:50:01 -0500 | [diff] [blame] | 239 | } |
| 240 | } |