Home
last modified time | relevance | path

Searched refs:mAppWidgetManager (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetManagerHelper.java56 final AppWidgetManager mAppWidgetManager; field in WidgetManagerHelper
61 mAppWidgetManager = AppWidgetManager.getInstance(context); in WidgetManagerHelper()
76 AppWidgetProviderInfo info = mAppWidgetManager.getAppWidgetInfo(appWidgetId); in getLauncherAppWidgetInfo()
101 return mAppWidgetManager.getInstalledProvidersForPackage( in getAllProviders()
125 return mAppWidgetManager.bindAppWidgetIdIfAllowed( in bindAppWidgetIdIfAllowed()
148 return WIDGETS_ENABLED && mAppWidgetManager.getAppWidgetOptions(appWidgetId) in isAppWidgetRestored()
165 return mAppWidgetManager.getWidgetPreview(info.provider, info.getProfile(), widgetCategory); in loadGeneratedPreview()
/packages/apps/Settings/src/com/android/settings/
DAllowBindAppWidgetActivity.java53 private AppWidgetManager mAppWidgetManager; field in AllowBindAppWidgetActivity
63 final boolean bound = mAppWidgetManager.bindAppWidgetIdIfAllowed(mAppWidgetId, in onClick()
76 if (alwaysAllowBind != mAppWidgetManager.hasBindAppWidgetPermission( in onClick()
78 mAppWidgetManager.setBindAppWidgetPermission(mCallingPackage, in onClick()
126 mAppWidgetManager = AppWidgetManager.getInstance(this); in onCreate()
150 mAlwaysUse.setChecked(mAppWidgetManager.hasBindAppWidgetPermission(mCallingPackage, in onCreate()
158 for (AppWidgetProviderInfo providerInfo : mAppWidgetManager.getInstalledProviders()) { in getWidgetLabel()
DAppWidgetPickActivity.java59 private AppWidgetManager mAppWidgetManager; field in AppWidgetPickActivity
65 mAppWidgetManager = AppWidgetManager.getInstance(this); in onCreate()
67 (this, mAppWidgetManager, this); in onCreate()
161 mAppWidgetManager.bindAppWidgetId(mAppWidgetId, intent.getComponent(), options); in onClick()
DAppWidgetLoader.java38 private AppWidgetManager mAppWidgetManager; field in AppWidgetLoader
48 mAppWidgetManager = appWidgetManager; in AppWidgetLoader()
180 mAppWidgetManager.getInstalledProviders(categoryFilter); in putInstalledAppWidgets()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DAppWidgetManagerPermissionTest.java31 private AppWidgetManager mAppWidgetManager = null; field in AppWidgetManagerPermissionTest
36 mAppWidgetManager = AppWidgetManager.getInstance(getContext()); in setUp()
52 assertNotNull(mAppWidgetManager); in testBindAppWidget()
55 final boolean bound = mAppWidgetManager.bindAppWidgetIdIfAllowed(1, in testBindAppWidget()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DTaplAddConfigWidgetTest.java61 private AppWidgetManager mAppWidgetManager; field in TaplAddConfigWidgetTest
70 mAppWidgetManager = AppWidgetManager.getInstance(mTargetContext); in setUp()
102 assertNotNull(mAppWidgetManager.getAppWidgetInfo(mWidgetId)); in runTest()
107 assertNotNull(mAppWidgetManager.getAppWidgetInfo(mWidgetId)); in runTest()
110 Wait.atMost("", () -> mAppWidgetManager.getAppWidgetInfo(mWidgetId) == null, in runTest()
/packages/apps/Settings/src/com/android/settings/applications/
DClearDefaultsPreference.java54 private AppWidgetManager mAppWidgetManager; field in ClearDefaultsPreference
68 mAppWidgetManager = AppWidgetManager.getInstance(context); in ClearDefaultsPreference()
128 mAppWidgetManager.setBindAppWidgetPermission(mPackageName, false); in onBindViewHolder()
140 mAppWidgetManager.hasBindAppWidgetPermission(mAppEntry.info.packageName); in updateUI()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetFactory.java60 protected final AppWidgetManager mAppWidgetManager; field in BaseWidgetFactory
68 mAppWidgetManager = AppWidgetManager.getInstance(context); in BaseWidgetFactory()
213 mAppWidgetManager.partiallyUpdateAppWidget(mAppWidgetId, remoteViews);
DWidgetConversationListService.java136 final Bundle options = mAppWidgetManager.getAppWidgetOptions(mAppWidgetId); in getViewAt()
DWidgetConversationService.java220 final Bundle options = mAppWidgetManager.getAppWidgetOptions(mAppWidgetId); in getViewAt()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java116 private WidgetManagerHelper mAppWidgetManager; field in AddItemActivity
298 mAppWidgetManager = new WidgetManagerHelper(this); in setupWidget()
357 boolean success = mAppWidgetManager.bindAppWidgetIdIfAllowed( in onPlaceAutomaticallyClick()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java339 private WidgetManagerHelper mAppWidgetManager; field in Launcher
526 mAppWidgetManager = new WidgetManagerHelper(this); in onCreate()
863 LauncherAppWidgetProviderInfo provider = mAppWidgetManager
1498 appWidgetInfo = mAppWidgetManager.getLauncherAppWidgetInfo(appWidgetId,
1962 boolean success = mAppWidgetManager.bindAppWidgetIdIfAllowed(