Home
last modified time | relevance | path

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

1234

/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DNetworkSliceSelectionAssistanceInformationTest.java27 NetworkSliceInfo si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(null); in testNullNssai() local
28 assertNull(si); in testNullNssai()
40 NetworkSliceInfo si; in testNssaiWithInvalidLength() local
42 si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(nssai0); in testNssaiWithInvalidLength()
43 assertNull(si); in testNssaiWithInvalidLength()
45 si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(nssai3); in testNssaiWithInvalidLength()
46 assertNull(si); in testNssaiWithInvalidLength()
48 si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(nssai6); in testNssaiWithInvalidLength()
49 assertNull(si); in testNssaiWithInvalidLength()
51 si = NetworkSliceSelectionAssistanceInformation.getSliceInfo(nssai10); in testNssaiWithInvalidLength()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageUpdatedTask.java220 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
225 ComponentName cn = si.getTargetComponent(); in execute()
226 if (cn != null && matcher.test(si)) { in execute()
229 if (si.hasStatusFlag(WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI)) { in execute()
230 forceKeepShortcuts.add(si.id); in execute()
236 if (si.isPromise() && isNewApkAvailable) { in execute()
239 if (si.itemType == Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in execute()
243 si.getDeepShortcutId()) in execute()
249 + " package=" + si.getTargetPackage()); in execute()
254 + " package=" + si.getTargetPackage() in execute()
[all …]
DCacheDataUpdatedTask.java61 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
62 ComponentName cn = si.getTargetComponent(); in execute()
63 if (si.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION in execute()
64 && isValidShortcut(si) && cn != null in execute()
66 iconCache.getTitleAndIcon(si, si.usingLowResIcon()); in execute()
67 updatedShortcuts.add(si); in execute()
76 public boolean isValidShortcut(@NonNull final WorkspaceItemInfo si) { in isValidShortcut() argument
81 return si.hasPromiseIconUi(); in isValidShortcut()
DUserLockStateChangedTask.java82 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
83 if (si.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in execute()
85 ShortcutKey key = ShortcutKey.fromItemInfo(si); in execute()
93 si.runtimeStatusFlags &= ~FLAG_DISABLED_LOCKED_USER; in execute()
94 si.updateFromDeepShortcutInfo(shortcut, context); in execute()
95 app.getIconCache().getShortcutIcon(si, shortcut); in execute()
97 si.runtimeStatusFlags |= FLAG_DISABLED_LOCKED_USER; in execute()
99 updatedWorkspaceItemInfos.add(si); in execute()
DPackageIncrementalDownloadUpdatedTask.java74 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
75 if (mPackageName.equals(si.getTargetPackage())) { in execute()
76 si.runtimeStatusFlags &= ~ItemInfoWithIcon.FLAG_INSTALL_SESSION_ACTIVE; in execute()
77 si.setProgressLevel(downloadInfo); in execute()
78 updatedWorkspaceItems.add(si); in execute()
DItemInstallQueue.java294 final WorkspaceItemInfo si = new WorkspaceItemInfo(); in getItemInfo() local
295 si.user = user; in getItemInfo()
301 si.intent = makeLaunchIntent(new ComponentName(packageName, "")) in getItemInfo()
303 si.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in getItemInfo()
306 si.intent = makeLaunchIntent(lai); in getItemInfo()
309 si.runtimeStatusFlags |= FLAG_ARCHIVED; in getItemInfo()
313 .getTitleAndIcon(si, () -> lai, usePackageIcon, false); in getItemInfo()
314 return Pair.create(si, null); in getItemInfo()
378 List<ShortcutInfo> si = ShortcutKey.fromIntent(intent, user) in decode() local
381 if (si.isEmpty()) { in decode()
[all …]
DPackageInstallStateChangedTask.java80 dataModel.forAllWorkspaceItemInfos(mInstallInfo.user, si -> { in execute()
81 if (si.hasPromiseIconUi() in execute()
82 && mInstallInfo.packageName.equals(si.getTargetPackage())) { in execute()
83 si.setProgressLevel(mInstallInfo); in execute()
84 updates.add(si); in execute()
DShortcutsChangedTask.java73 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
74 if ((si.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) in execute()
75 && mPackageName.equals(si.getIntent().getPackage())) { in execute()
76 matchingWorkspaceItems.add(si); in execute()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DRecentConversationsPreferenceControllerTest.java145 ShortcutInfo si = mock(ShortcutInfo.class); in getSummary_withGroup() local
146 when(si.getLabel()).thenReturn("person"); in getSummary_withGroup()
160 ShortcutInfo si = mock(ShortcutInfo.class); in getSummary_noGroup() local
161 when(si.getLabel()).thenReturn("person"); in getSummary_noGroup()
173 ShortcutInfo si = mock(ShortcutInfo.class); in getTitle_withShortcut() local
174 when(si.getLabel()).thenReturn("person"); in getTitle_withShortcut()
175 ConversationChannel ccw = new ConversationChannel(si, 6, in getTitle_withShortcut()
180 assertThat(mController.getTitle(ccw).toString()).isEqualTo(si.getLabel()); in getTitle_withShortcut()
185 ShortcutInfo si = mock(ShortcutInfo.class); in testGetSubSettingLauncher() local
186 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/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/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/modules/Bluetooth/system/bta/jv/
Dbta_jv_api.cc450 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle); in BTA_JvRfcommClose() local
455 si >= BTA_JV_MAX_RFC_SR_SESSION || !bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommClose()
529 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle); in BTA_JvRfcommGetPortHdl() local
531 if (hi < BTA_JV_MAX_RFC_CONN && si < BTA_JV_MAX_RFC_SR_SESSION && in BTA_JvRfcommGetPortHdl()
532 bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommGetPortHdl()
533 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
550 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle); in BTA_JvRfcommWrite() local
552 log::verbose("handle:{}, req_id:{}, hi:{}, si:{}", handle, req_id, hi, si); in BTA_JvRfcommWrite()
554 si >= BTA_JV_MAX_RFC_SR_SESSION || !bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in BTA_JvRfcommWrite()
562 &bta_jv_cb.port_cb[p_cb->rfc_hdl[si] - 1])); in BTA_JvRfcommWrite()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/credentials/
DCredentialManagerPreferenceControllerTest.java650 ServiceInfo si = new ServiceInfo(); in createCredentialProviderInfoWithSubtitle() local
651 si.packageName = packageName; in createCredentialProviderInfoWithSubtitle()
652 si.name = className; in createCredentialProviderInfoWithSubtitle()
653 si.nonLocalizedLabel = "test"; in createCredentialProviderInfoWithSubtitle()
655 si.applicationInfo = new ApplicationInfo(); in createCredentialProviderInfoWithSubtitle()
656 si.applicationInfo.packageName = packageName; in createCredentialProviderInfoWithSubtitle()
657 si.applicationInfo.nonLocalizedLabel = "test"; in createCredentialProviderInfoWithSubtitle()
659 return new CredentialProviderInfo.Builder(si) in createCredentialProviderInfoWithSubtitle()
673 ServiceInfo si = new ServiceInfo(); in createCredentialProviderInfoBuilder() local
674 si.packageName = packageName; in createCredentialProviderInfoBuilder()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupPopulator.java123 final WorkspaceItemInfo si = new WorkspaceItemInfo(shortcut, context); in createUpdateRunnable() local
124 cache.getShortcutIcon(si, shortcut); in createUpdateRunnable()
125 si.rank = i; in createUpdateRunnable()
126 si.container = CONTAINER_SHORTCUTS; in createUpdateRunnable()
129 uiHandler.post(() -> view.applyShortcutInfo(si, shortcut, container)); in createUpdateRunnable()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java59 public static Intent makeIntent(ShortcutInfo si) { in makeIntent() argument
60 return makeIntent(si.getId(), si.getPackage()).setComponent(si.getActivity()); in makeIntent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/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/pm/
DPinRequestHelper.java76 ShortcutInfo si = request.getShortcutInfo(); in createWorkspaceItemFromPinItemRequest() local
77 WorkspaceItemInfo info = new WorkspaceItemInfo(si, context); in createWorkspaceItemFromPinItemRequest()
80 info.bitmap = new ShortcutCachingLogic().loadIcon(context, si); in createWorkspaceItemFromPinItemRequest()
81 LauncherAppState.getInstance(context).getModel().updateAndBindWorkspaceItem(info, si); in createWorkspaceItemFromPinItemRequest()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/shortcuts/
DShortcutToChooserTargetConverterTest.kt159 val si = shortcuts[expectedOrder[i]].shortcutInfo in <lambda>() constant
161 assertEquals(si.id, ct.intentExtras.getString(Intent.EXTRA_SHORTCUT_ID)) in <lambda>()
162 assertEquals(si.label, ct.title) in <lambda>()
183 val si = cache[ct] in <lambda>() constant
184 assertNotNull("AppTarget is missing", si) in <lambda>()
/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/quickstep/src/com/android/launcher3/model/
DPredictionUpdateTask.java82 ShortcutInfo si = target.getShortcutInfo(); in execute() local
83 if (si != null) { in execute()
84 usersForChangedShortcuts.add(si.getUserHandle()); in execute()
85 itemInfo = new WorkspaceItemInfo(si, context); in execute()
86 app.getIconCache().getShortcutIcon(itemInfo, si); in execute()
/packages/apps/Settings/src/com/android/settings/notification/app/
DAppConversationListPreferenceController.java153 ShortcutInfo si = conversation.getShortcutInfo(); in populateConversationPreference() local
155 pref.setTitle(si != null in populateConversationPreference()
156 ? si.getLabel() in populateConversationPreference()
162 if (si != null) { in populateConversationPreference()
163 pref.setIcon(mBackend.getConversationDrawable(mContext, si, mAppRow.pkg, mAppRow.uid, in populateConversationPreference()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DPinShortcutRequestActivityInfo.java71 ShortcutInfo si, Supplier<PinItemRequest> requestSupplier, Context context) { in PinShortcutRequestActivityInfo() argument
72 super(new ComponentName(si.getPackage(), STUB_COMPONENT_CLASS), si.getUserHandle()); in PinShortcutRequestActivityInfo()
74 mInfo = si; in PinShortcutRequestActivityInfo()

1234