Home
last modified time | relevance | path

Searched refs:si (Results 1 – 25 of 63) sorted by relevance

123

/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageUpdatedTask.java183 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in execute() local
188 if ((si.iconResource != null) in execute()
189 && packageSet.contains(si.iconResource.packageName)) { in execute()
191 BitmapInfo iconInfo = li.createIconBitmap(si.iconResource); in execute()
194 si.applyFrom(iconInfo); in execute()
199 ComponentName cn = si.getTargetComponent(); in execute()
200 if (cn != null && matcher.matches(si, cn)) { in execute()
203 if (si.hasStatusFlag(WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI)) { in execute()
204 removedShortcuts.put(si.id, false); in execute()
210 if (si.isPromise() && isNewApkAvailable) { in execute()
[all …]
DCacheDataUpdatedTask.java58 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in execute() local
59 ComponentName cn = si.getTargetComponent(); in execute()
60 if (si.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION in execute()
61 && isValidShortcut(si) && cn != null in execute()
63 iconCache.getTitleAndIcon(si, si.usingLowResIcon()); in execute()
64 updatedShortcuts.add(si); in execute()
74 public boolean isValidShortcut(WorkspaceItemInfo si) { in isValidShortcut() argument
79 return si.hasPromiseIconUi(); in isValidShortcut()
DUserLockStateChangedTask.java80 WorkspaceItemInfo si = (WorkspaceItemInfo) itemInfo; in execute() local
82 ShortcutKey key = ShortcutKey.fromItemInfo(si); in execute()
90 si.runtimeStatusFlags &= ~FLAG_DISABLED_LOCKED_USER; in execute()
91 si.updateFromDeepShortcutInfo(shortcut, context); in execute()
95 si.applyFrom(li.createShortcutIcon(shortcut, true, () -> si)); in execute()
98 si.runtimeStatusFlags |= FLAG_DISABLED_LOCKED_USER; in execute()
100 updatedWorkspaceItemInfos.add(si); in execute()
DPackageInstallStateChangedTask.java77 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in execute() local
78 ComponentName cn = si.getTargetComponent(); in execute()
79 if (si.hasPromiseIconUi() && (cn != null) in execute()
81 si.setInstallProgress(mInstallInfo.progress); in execute()
84 si.status &= ~WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE; in execute()
86 updates.add(si); in execute()
DShortcutsChangedTask.java66 WorkspaceItemInfo si = (WorkspaceItemInfo) itemInfo; in execute() local
67 if (mPackageName.equals(si.getIntent().getPackage()) && si.user.equals(mUser)) { in execute()
68 keyToShortcutInfo.addToList(ShortcutKey.fromItemInfo(si), si); in execute() local
69 allIds.add(si.getDeepShortcutId()); in execute()
DLoaderTask.java548 SessionInfo si = installingPkgs.get(tempPackageKey); in loadWorkspace() local
549 if (si == null) { in loadWorkspace()
552 info.setInstallProgress((int) (si.getProgress() * 100)); in loadWorkspace()
651 SessionInfo si = in loadWorkspace() local
653 Integer installProgress = si == null in loadWorkspace()
655 : (int) (si.getProgress() * 100); in loadWorkspace()
804 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in setIgnorePackages() local
805 if (si.isPromise() && si.getTargetComponent() != null) { in setIgnorePackages()
806 packagesToIgnore.add(si.getTargetComponent().getPackageName()); in setIgnorePackages()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningState.java496 ServiceItem si = mServices.get(service.service); in updateService() local
497 if (si == null) { in updateService()
499 si = new ServiceItem(mUserId); in updateService()
500 si.mRunningService = service; in updateService()
502 si.mServiceInfo = ActivityThread.getPackageManager().getServiceInfo( in updateService()
506 if (si.mServiceInfo == null) { in updateService()
513 si.mDisplayLabel = makeLabel(pm, in updateService()
514 si.mRunningService.service.getClassName(), si.mServiceInfo); in updateService()
516 si.mPackageInfo = si.mServiceInfo.applicationInfo; in updateService()
517 mServices.put(service.service, si); in updateService()
[all …]
DRunningServiceDetails.java96 RunningState.ServiceItem si = mServiceItem; in stopActiveService() local
98 if ((si.mServiceInfo.applicationInfo.flags&ApplicationInfo.FLAG_SYSTEM) != 0) { in stopActiveService()
99 showConfirmStopDialog(si.mRunningService.service); in stopActiveService()
103 getActivity().stopService(new Intent().setComponent(si.mRunningService.service)); in stopActiveService()
247 void addServiceDetailsView(RunningState.ServiceItem si, RunningState.MergedItem mi, in addServiceDetailsView() argument
259 RunningState.BaseItem bi = si != null ? si : mi; in addServiceDetailsView()
266 detail.mServiceItem = si; in addServiceDetailsView()
274 if (si != null && si.mRunningService.clientLabel != 0) { in addServiceDetailsView()
276 si.mRunningService.service); in addServiceDetailsView()
290 if (si != null && si.mServiceInfo.descriptionRes != 0) { in addServiceDetailsView()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java496 ServiceItem si = mServices.get(service.service); in updateService() local
497 if (si == null) { in updateService()
499 si = new ServiceItem(mUserId); in updateService()
500 si.mRunningService = service; in updateService()
502 si.mServiceInfo = ActivityThread.getPackageManager().getServiceInfo( in updateService()
506 if (si.mServiceInfo == null) { in updateService()
513 si.mDisplayLabel = makeLabel(pm, in updateService()
514 si.mRunningService.service.getClassName(), si.mServiceInfo); in updateService()
516 si.mPackageInfo = si.mServiceInfo.applicationInfo; in updateService()
517 mServices.put(service.service, si); in updateService()
[all …]
DRunningServiceDetails.java96 RunningState.ServiceItem si = mServiceItem; in stopActiveService() local
98 if ((si.mServiceInfo.applicationInfo.flags&ApplicationInfo.FLAG_SYSTEM) != 0) { in stopActiveService()
99 showConfirmStopDialog(si.mRunningService.service); in stopActiveService()
103 getActivity().stopService(new Intent().setComponent(si.mRunningService.service)); in stopActiveService()
247 void addServiceDetailsView(RunningState.ServiceItem si, RunningState.MergedItem mi, in addServiceDetailsView() argument
259 RunningState.BaseItem bi = si != null ? si : mi; in addServiceDetailsView()
266 detail.mServiceItem = si; in addServiceDetailsView()
274 if (si != null && si.mRunningService.clientLabel != 0) { in addServiceDetailsView()
276 si.mRunningService.service); in addServiceDetailsView()
290 if (si != null && si.mServiceInfo.descriptionRes != 0) { in addServiceDetailsView()
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp371 int m,sij,si,sj,sL,sk; in rcssort() local
379 si = lowelt; sj = highelt; in rcssort()
381 sij = (sj+si) >> 1; in rcssort()
384 if ( (this->*comparison)( si,sij ) > 0 ) { in rcssort()
385 (this->*swap)( si,sij ); in rcssort()
389 if ( (this->*comparison)( si,sij ) > 0 ) { in rcssort()
390 (this->*swap)( si,sij ); in rcssort()
396 sk = si; sL = sj; in rcssort()
410 if ( sL-si > sj-sk ) { in rcssort()
411 if ( sL-si < QQ ) { in rcssort()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowVoiceInteractionServiceInfo.java38 public void __constructor__(PackageManager pm, ServiceInfo si) { in __constructor__() argument
39 mServiceInfo = si; in __constructor__()
42 public static void setSupportsAssist(ServiceInfo si, boolean supports) { in setSupportsAssist() argument
43 sSupportsAssistMap.put(si, supports); in setSupportsAssist()
46 public static void setRecognitionService(ServiceInfo si, String recognitionService) { in setRecognitionService() argument
47 sRecognitionServiceMap.put(si, recognitionService); in setRecognitionService()
50 public static void setSettingsActivity(ServiceInfo si, String settingsActivity) { in setSettingsActivity() argument
51 sSettingsActivityMap.put(si, settingsActivity); in setSettingsActivity()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIcons.java189 private String getBadgePackage(ShortcutInfo si) { in getBadgePackage() argument
191 if (whitelistedPkg.equals(si.getPackage()) in getBadgePackage()
192 && si.getExtras() != null in getBadgePackage()
193 && si.getExtras().containsKey(EXTRA_BADGEPKG)) { in getBadgePackage()
194 return si.getExtras().getString(EXTRA_BADGEPKG); in getBadgePackage()
196 return si.getPackage(); in getBadgePackage()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java112 final ServiceInfo si = imi.getServiceInfo(); in getInputMethodIcon() local
113 final ApplicationInfo ai = si != null ? si.applicationInfo : null; in getInputMethodIcon()
115 if (si == null || ai == null || packageName == null) { in getInputMethodIcon()
120 Drawable drawable = loadDrawable(packageManager, packageName, si.logo, ai); in getInputMethodIcon()
124 drawable = loadDrawable(packageManager, packageName, si.icon, ai); in getInputMethodIcon()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DAvailableVirtualKeyboardFragment.java113 final ServiceInfo si = imi.getServiceInfo(); in getInputMethodIcon() local
114 final ApplicationInfo ai = si != null ? si.applicationInfo : null; in getInputMethodIcon()
116 if (si == null || ai == null || packageName == null) { in getInputMethodIcon()
121 Drawable drawable = loadDrawable(packageManager, packageName, si.logo, ai); in getInputMethodIcon()
125 drawable = loadDrawable(packageManager, packageName, si.icon, ai); in getInputMethodIcon()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java46 public static Intent makeIntent(ShortcutInfo si) { in makeIntent() argument
49 .setComponent(si.getActivity()) in makeIntent()
50 .setPackage(si.getPackage()) in makeIntent()
52 .putExtra(EXTRA_SHORTCUT_ID, si.getId()); in makeIntent()
/packages/apps/TV/common/src/com/android/tv/common/compat/
DTvInputInfoCompat.java75 ServiceInfo si = mTvInputInfo.getServiceInfo(); in getExtras() local
86 + " tag for " + si.name); in getExtras()
117 ServiceInfo si = mTvInputInfo.getServiceInfo(); in getXmlResourceParser() local
119 return si.loadXmlMetaData(pm, TvInputService.SERVICE_META_DATA); in getXmlResourceParser()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVO.java138 ShortcutInfo si = request.getShortcutInfo(); in createWorkspaceItemFromPinItemRequest() local
139 WorkspaceItemInfo info = new WorkspaceItemInfo(si, context); in createWorkspaceItemFromPinItemRequest()
142 info.applyFrom(li.createShortcutIcon(si, false /* badged */)); in createWorkspaceItemFromPinItemRequest()
145 .updateAndBindWorkspaceItem(info, si); in createWorkspaceItemFromPinItemRequest()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupPopulator.java150 final WorkspaceItemInfo si = new WorkspaceItemInfo(shortcut, launcher); in createUpdateRunnable()
153 si.applyFrom(li.createShortcutIcon(shortcut, false /* badged */)); in createUpdateRunnable()
155 si.rank = i; in createUpdateRunnable()
158 uiHandler.post(() -> view.applyShortcutInfo(si, shortcut, container)); in createUpdateRunnable()
/packages/inputmethods/LatinIME/native/jni/src/
Ddefines.h53 int si = 0; in intArrayToCharArray() local
55 while (si < sourceSize && di < destLimit && 0 != source[si]) { in intArrayToCharArray()
56 const uint32_t codePoint = static_cast<uint32_t>(source[si++]); in intArrayToCharArray()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerSession.java60 final SuggestionsInfo si = ssi.getSuggestionsInfoAt(i); in fixWronglyInvalidatedWordWithSingleQuote() local
61 final int flags = si.getSuggestionsAttributes(); in fixWronglyInvalidatedWordWithSingleQuote()
94 newSi.setCookieAndSequence(si.getCookie(), si.getSequence()); in fixWronglyInvalidatedWordWithSingleQuote()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/
DVoiceInputHelper.java160 ServiceInfo si = resolveInfo.serviceInfo; in buildUi() local
164 parser = si.loadXmlMetaData(mContext.getPackageManager(), in buildUi()
168 " meta-data for " + si.packageName); in buildUi()
172 si.applicationInfo); in buildUi()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DVoiceInputHelper.java160 ServiceInfo si = resolveInfo.serviceInfo; in buildUi() local
164 parser = si.loadXmlMetaData(mContext.getPackageManager(), in buildUi()
168 " meta-data for " + si.packageName); in buildUi()
172 si.applicationInfo); in buildUi()
/packages/apps/TV/tests/common/src/com/android/tv/testing/utils/
DUtils.java84 ServiceInfo si = info.getServiceInfo(); in getInputIdFromComponentName() local
85 if (new ComponentName(si.packageName, si.name).equals(name)) { in getInputIdFromComponentName()
/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java486 WorkspaceItemInfo si = createWorkspaceItemInfo(data, user, in getItemInfo() local
488 si.itemType = LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; in getItemInfo()
489 si.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in getItemInfo()
490 return Pair.create(si, null); in getItemInfo()
537 List<ShortcutInfo> si = sm.queryForFullDetails( in decode() local
542 if (si.isEmpty()) { in decode()
545 return new PendingInstallShortcutInfo(si.get(0), context); in decode()

123