Home
last modified time | relevance | path

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

1234

/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DNetworkSliceSelectionAssistanceInformationTest.java28 NetworkSliceInfo si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(null); in testNullNssai() local
29 assertNull(si); in testNullNssai()
41 NetworkSliceInfo si; in testNssaiWithInvalidLength() local
43 si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(nssai0); in testNssaiWithInvalidLength()
44 assertNull(si); in testNssaiWithInvalidLength()
46 si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(nssai3); in testNssaiWithInvalidLength()
47 assertNull(si); in testNssaiWithInvalidLength()
49 si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(nssai6); in testNssaiWithInvalidLength()
50 assertNull(si); in testNssaiWithInvalidLength()
52 si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(nssai10); in testNssaiWithInvalidLength()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageUpdatedTask.java195 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
201 if ((si.iconResource != null) in execute()
202 && packageSet.contains(si.iconResource.packageName)) { in execute()
204 BitmapInfo iconInfo = li.createIconBitmap(si.iconResource); in execute()
207 si.bitmap = iconInfo; in execute()
212 ComponentName cn = si.getTargetComponent(); in execute()
213 if (cn != null && matcher.matches(si, cn)) { in execute()
216 if (si.hasStatusFlag(WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI)) { in execute()
217 forceKeepShortcuts.add(si.id); in execute()
223 if (si.isPromise() && isNewApkAvailable) { in execute()
[all …]
DCacheDataUpdatedTask.java53 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
54 ComponentName cn = si.getTargetComponent(); in execute()
55 if (si.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION in execute()
56 && isValidShortcut(si) && cn != null in execute()
58 iconCache.getTitleAndIcon(si, si.usingLowResIcon()); in execute()
59 updatedShortcuts.add(si); in execute()
68 public boolean isValidShortcut(WorkspaceItemInfo si) { in isValidShortcut() argument
73 return si.hasPromiseIconUi(); in isValidShortcut()
DUserLockStateChangedTask.java76 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
77 if (si.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in execute()
79 ShortcutKey key = ShortcutKey.fromItemInfo(si); in execute()
87 si.runtimeStatusFlags &= ~FLAG_DISABLED_LOCKED_USER; in execute()
88 si.updateFromDeepShortcutInfo(shortcut, context); in execute()
89 app.getIconCache().getShortcutIcon(si, shortcut); in execute()
91 si.runtimeStatusFlags |= FLAG_DISABLED_LOCKED_USER; in execute()
93 updatedWorkspaceItemInfos.add(si); in execute()
DItemInstallQueue.java286 final WorkspaceItemInfo si = new WorkspaceItemInfo(); in getItemInfo() local
287 si.user = user; in getItemInfo()
288 si.itemType = ITEM_TYPE_APPLICATION; in getItemInfo()
294 si.intent = makeLaunchIntent(new ComponentName(packageName, "")) in getItemInfo()
296 si.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in getItemInfo()
299 si.intent = makeLaunchIntent(lai); in getItemInfo()
302 .getTitleAndIcon(si, () -> lai, usePackageIcon, false); in getItemInfo()
303 return Pair.create(si, null); in getItemInfo()
367 List<ShortcutInfo> si = ShortcutKey.fromIntent(intent, user) in decode() local
370 if (si.isEmpty()) { in decode()
[all …]
DPackageInstallStateChangedTask.java73 dataModel.forAllWorkspaceItemInfos(mInstallInfo.user, si -> { in execute()
74 if (si.hasPromiseIconUi() in execute()
75 && mInstallInfo.packageName.equals(si.getTargetPackage())) { in execute()
78 si.setProgressLevel(installProgress, PackageInstallInfo.STATUS_INSTALLING); in execute()
81 si.runtimeStatusFlags &= ~ItemInfoWithIcon.FLAG_INSTALL_SESSION_ACTIVE; in execute()
83 updates.add(si); in execute()
DPackageIncrementalDownloadUpdatedTask.java67 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
68 if (mPackageName.equals(si.getTargetPackage())) { in execute()
69 si.runtimeStatusFlags &= ~ItemInfoWithIcon.FLAG_INSTALL_SESSION_ACTIVE; in execute()
70 si.setProgressLevel(downloadInfo); in execute()
71 updatedWorkspaceItems.add(si); in execute()
DShortcutsChangedTask.java61 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
62 if ((si.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) in execute()
63 && mPackageName.equals(si.getIntent().getPackage())) { in execute()
64 matchingWorkspaceItems.add(si); in execute()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DRecentConversationsPreferenceControllerTest.java155 ShortcutInfo si = mock(ShortcutInfo.class); in getSummary_withGroup() local
156 when(si.getLabel()).thenReturn("person"); in getSummary_withGroup()
170 ShortcutInfo si = mock(ShortcutInfo.class); in getSummary_noGroup() local
171 when(si.getLabel()).thenReturn("person"); in getSummary_noGroup()
183 ShortcutInfo si = mock(ShortcutInfo.class); in getTitle_withShortcut() local
184 when(si.getLabel()).thenReturn("person"); in getTitle_withShortcut()
185 ConversationChannel ccw = new ConversationChannel(si, 6, in getTitle_withShortcut()
190 assertThat(mController.getTitle(ccw).toString()).isEqualTo(si.getLabel()); in getTitle_withShortcut()
195 ShortcutInfo si = mock(ShortcutInfo.class); in testGetSubSettingLauncher() local
196 when(si.getId()).thenReturn("person"); in testGetSubSettingLauncher()
[all …]
DAddToHomeScreenPreferenceControllerTest.java80 ShortcutInfo si = mock(ShortcutInfo.class); in testIsAvailable() local
82 mNc, null, null, si, null, null); in testIsAvailable() local
88 ShortcutInfo si = mock(ShortcutInfo.class); in testIsAvailable_filteredIn() local
90 mNc, null, null, si, null, in testIsAvailable_filteredIn() local
98 ShortcutInfo si = mock(ShortcutInfo.class); in testIsAvailable_filteredOut() local
100 mNc, null, null, si, null, new ArrayList<>()); in testIsAvailable_filteredOut() local
106 ShortcutInfo si = mock(ShortcutInfo.class); in testHandlePreferenceTreeClick() local
107 mController.onResume(mock(NotificationBackend.AppRow.class), null, null, null, si, null, in testHandlePreferenceTreeClick() local
114 verify(mBackend).requestPinShortcut(any(), eq(si)); in testHandlePreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java502 ServiceItem si = mServices.get(service.service); in updateService() local
503 if (si == null) { in updateService()
505 si = new ServiceItem(mUserId); in updateService()
506 si.mRunningService = service; in updateService()
508 si.mServiceInfo = ActivityThread.getPackageManager().getServiceInfo( in updateService()
512 if (si.mServiceInfo == null) { in updateService()
519 si.mDisplayLabel = makeLabel(pm, in updateService()
520 si.mRunningService.service.getClassName(), si.mServiceInfo); in updateService()
522 si.mPackageInfo = si.mServiceInfo.applicationInfo; in updateService()
523 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/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerTest.java269 NsdServiceInfo si = new NsdServiceInfo(); in testNDSManager() local
270 si.setServiceType(SERVICE_TYPE); in testNDSManager()
271 si.setServiceName(mServiceName); in testNDSManager()
281 si.setAttribute(null, (String) null); in testNDSManager()
288 si.setAttribute("", (String) null); in testNDSManager()
295 si.setAttribute(String256, (String) null); in testNDSManager()
302 si.setAttribute("key", String256.substring(3)); in testNDSManager()
309 si.setAttribute("key", String256.substring(4)); in testNDSManager()
316 si.setAttribute(new String(new byte[]{0x19}), (String) null); in testNDSManager()
323 si.setAttribute("=", (String) null); in testNDSManager()
[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/
DIconCache.java200 public void getShortcutIcon(ItemInfoWithIcon info, ShortcutInfo si) { in getShortcutIcon() argument
201 getShortcutIcon(info, si, true, mIsUsingFallbackOrNonDefaultIconCheck); in getShortcutIcon()
207 public void getUnbadgedShortcutIcon(ItemInfoWithIcon info, ShortcutInfo si) { in getUnbadgedShortcutIcon() argument
208 getShortcutIcon(info, si, false, mIsUsingFallbackOrNonDefaultIconCheck); in getUnbadgedShortcutIcon()
215 public <T extends ItemInfoWithIcon> void getShortcutIcon(T info, ShortcutInfo si, in getShortcutIcon() argument
217 getShortcutIcon(info, si, true /* use badged */, fallbackIconCheck); in getShortcutIcon()
220 private synchronized <T extends ItemInfoWithIcon> void getShortcutIcon(T info, ShortcutInfo si, in getShortcutIcon() argument
224 bitmapInfo = cacheLocked(ShortcutKey.fromInfo(si).componentName, si.getUserHandle(), in getShortcutIcon()
225 () -> si, mShortcutCachingLogic, false, false).bitmap; in getShortcutIcon()
228 bitmapInfo = mShortcutCachingLogic.loadIcon(mContext, si); in getShortcutIcon()
[all …]
/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/quickstep/src/com/android/launcher3/model/
DPredictionUpdateTask.java72 ShortcutInfo si = target.getShortcutInfo(); in execute() local
73 if (si != null) { in execute()
74 usersForChangedShortcuts.add(si.getUserHandle()); in execute()
75 itemInfo = new WorkspaceItemInfo(si, context); in execute()
76 app.getIconCache().getShortcutIcon(itemInfo, si); in execute()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java59 public static Intent makeIntent(ShortcutInfo si) { in makeIntent() argument
62 .setComponent(si.getActivity()) in makeIntent()
63 .setPackage(si.getPackage()) in makeIntent()
65 .putExtra(EXTRA_SHORTCUT_ID, si.getId()); in makeIntent()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DPinRequestHelper.java81 ShortcutInfo si = request.getShortcutInfo(); in createWorkspaceItemFromPinItemRequest() local
82 WorkspaceItemInfo info = new WorkspaceItemInfo(si, context); in createWorkspaceItemFromPinItemRequest()
85 info.bitmap = new ShortcutCachingLogic().loadIcon(context, si); in createWorkspaceItemFromPinItemRequest()
86 LauncherAppState.getInstance(context).getModel().updateAndBindWorkspaceItem(info, si); in createWorkspaceItemFromPinItemRequest()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupPopulator.java162 final WorkspaceItemInfo si = new WorkspaceItemInfo(shortcut, launcher); in createUpdateRunnable()
163 cache.getUnbadgedShortcutIcon(si, shortcut); in createUpdateRunnable() argument
164 si.rank = i; in createUpdateRunnable()
165 si.container = CONTAINER_SHORTCUTS; in createUpdateRunnable()
168 uiHandler.post(() -> view.applyShortcutInfo(si, shortcut, container)); in createUpdateRunnable()
/packages/apps/Settings/src/com/android/settings/notification/app/
DAppConversationListPreferenceController.java155 ShortcutInfo si = conversation.getShortcutInfo(); in populateConversationPreference() local
157 pref.setTitle(si != null in populateConversationPreference()
158 ? si.getLabel() in populateConversationPreference()
164 if (si != null) { in populateConversationPreference()
165 pref.setIcon(mBackend.getConversationDrawable(mContext, si, mAppRow.pkg, mAppRow.uid, in populateConversationPreference()
/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/services/Iwlan/src/com/google/android/iwlan/epdg/
DTunnelLinkProperties.java54 public Builder setSliceInfo(NetworkSliceInfo si) { in setSliceInfo() argument
55 return setSliceInfo(Optional.ofNullable(si)); in setSliceInfo()
58 abstract Builder setSliceInfo(Optional<NetworkSliceInfo> si); in setSliceInfo() argument
/packages/apps/Settings/src/com/android/settings/applications/assist/
DVoiceInputHelper.java116 ServiceInfo si = resolveInfo.serviceInfo; in buildUi() local
120 try (XmlResourceParser parser = si.loadXmlMetaData(mContext.getPackageManager(), in buildUi()
124 " meta-data for " + si.packageName); in buildUi()
128 si.applicationInfo); in buildUi()

1234