1240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov/* 2240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * Copyright (C) 2017 The Android Open Source Project 3240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * 4240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * Licensed under the Apache License, Version 2.0 (the "License"); 5240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * you may not use this file except in compliance with the License. 6240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * You may obtain a copy of the License at 7240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * 8240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * http://www.apache.org/licenses/LICENSE-2.0 9240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * 10240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * Unless required by applicable law or agreed to in writing, software 11240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * distributed under the License is distributed on an "AS IS" BASIS, 12240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * See the License for the specific language governing permissions and 14240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * limitations under the License. 15240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov */ 16240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov 17240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganovpackage android.appwidget; 18240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov 19240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganovimport android.annotation.NonNull; 20240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganovimport android.annotation.Nullable; 21240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganovimport android.util.ArraySet; 22240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov 23240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganovimport java.util.Set; 24240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov 25240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov/** 26240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * App widget manager local system service interface. 27240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * 28240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * @hide Only for use within the system server. 29240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov */ 30240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganovpublic abstract class AppWidgetManagerInternal { 31240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov 32240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov /** 33240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * Gets the packages from which the uid hosts widgets. 34240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * 35240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * @param uid The potential host UID. 36240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov * @return Whether the UID hosts widgets from the package. 37240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov */ 38240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov public abstract @Nullable ArraySet<String> getHostedWidgetPackages(int uid); 39240aed987c66fe7ee1a1c4d862c3d57ac03b14b3Svet Ganov} 40