Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageUpdatedTask.java186 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in execute() local
191 if ((si.iconResource != null) in execute()
192 && packageSet.contains(si.iconResource.packageName)) { in execute()
194 BitmapInfo iconInfo = li.createIconBitmap(si.iconResource); in execute()
197 si.applyFrom(iconInfo); in execute()
202 ComponentName cn = si.getTargetComponent(); in execute()
203 if (cn != null && matcher.matches(si, cn)) { in execute()
206 if (si.hasStatusFlag(WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI)) { in execute()
207 removedShortcuts.put(si.id, false); in execute()
213 if (si.isPromise() && isNewApkAvailable) { in execute()
[all …]
DCacheDataUpdatedTask.java62 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in execute() local
63 ComponentName cn = si.getTargetComponent(); in execute()
64 if (si.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION in execute()
65 && isValidShortcut(si) && cn != null in execute()
67 iconCache.getTitleAndIcon(si, si.usingLowResIcon()); in execute()
68 updatedShortcuts.add(si); in execute()
86 public boolean isValidShortcut(WorkspaceItemInfo si) { in isValidShortcut() argument
91 return si.hasPromiseIconUi(); in isValidShortcut()
DUserLockStateChangedTask.java82 WorkspaceItemInfo si = (WorkspaceItemInfo) itemInfo; in execute() local
84 ShortcutKey key = ShortcutKey.fromItemInfo(si); in execute()
92 si.runtimeStatusFlags &= ~FLAG_DISABLED_LOCKED_USER; in execute()
93 si.updateFromDeepShortcutInfo(shortcut, context); in execute()
97 si.applyFrom(li.createShortcutIcon(shortcut, true, () -> si)); in execute()
100 si.runtimeStatusFlags |= FLAG_DISABLED_LOCKED_USER; in execute()
102 updatedWorkspaceItemInfos.add(si); in execute()
DShortcutsChangedTask.java67 WorkspaceItemInfo si = (WorkspaceItemInfo) itemInfo; in execute() local
68 if (si.getIntent().getPackage().equals(mPackageName) && si.user.equals(mUser)) { in execute()
69 keyToShortcutInfo.addToList(ShortcutKey.fromItemInfo(si), si); in execute() local
70 allIds.add(si.getDeepShortcutId()); in execute()
DPackageInstallStateChangedTask.java110 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in execute() local
111 ComponentName cn = si.getTargetComponent(); in execute()
112 if (si.hasPromiseIconUi() && (cn != null) in execute()
114 si.setInstallProgress(mInstallInfo.progress); in execute()
117 si.status &= ~WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE; in execute()
119 updates.add(si); in execute()
DLoaderTask.java539 SessionInfo si = installingPkgs.get(targetPkg); in loadWorkspace() local
540 if (si == null) { in loadWorkspace()
543 info.setInstallProgress((int) (si.getProgress() * 100)); in loadWorkspace()
633 SessionInfo si = in loadWorkspace() local
635 Integer installProgress = si == null in loadWorkspace()
637 : (int) (si.getProgress() * 100); in loadWorkspace()
785 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in setIgnorePackages() local
786 if (si.isPromise() && si.getTargetComponent() != null) { in setIgnorePackages()
787 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/
DInstallShortcutReceiver.java486 final WorkspaceItemInfo si = appInfo.makeWorkspaceItem(); in getItemInfo() local
488 app.getIconCache().getTitleAndIcon(si, activityInfo, false /* useLowResIcon */); in getItemInfo()
492 si, activityInfo, false /* useLowResIcon */); in getItemInfo()
493 return si; in getItemInfo()
496 return Pair.create((ItemInfo) si, (Object) activityInfo); in getItemInfo()
498 WorkspaceItemInfo si = new WorkspaceItemInfo(shortcutInfo, mContext); in getItemInfo() local
500 si.applyFrom(li.createShortcutIcon(shortcutInfo)); in getItemInfo()
502 return Pair.create((ItemInfo) si, (Object) shortcutInfo); in getItemInfo()
516 … WorkspaceItemInfo si = createWorkspaceItemInfo(data, LauncherAppState.getInstance(mContext)); in getItemInfo() local
517 return Pair.create((ItemInfo) si, null); in getItemInfo()
[all …]
/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/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/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/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.java71 ServiceInfo si = mTvInputInfo.getServiceInfo(); in getExtras() local
82 + " tag for " + si.name); in getExtras()
113 ServiceInfo si = mTvInputInfo.getServiceInfo(); in getXmlResourceParser() local
115 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/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/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/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()

123