Home
last modified time | relevance | path

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

12345

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java149 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields()
152 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
158 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields()
161 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
165 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields()
169 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
174 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields()
178 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
183 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields()
186 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields()
[all …]
DShortcutManagerTest1.java598 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity()
600 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity()
608 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity()
610 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity()
612 .forShortcutWithId("si2", si -> { in testPublishWithNoActivity()
614 "abc"), si.getActivity()); in testPublishWithNoActivity()
623 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity()
625 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity()
627 .forShortcutWithId("si3", si -> { in testPublishWithNoActivity()
629 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity()
[all …]
/frameworks/av/media/codecs/mp3dec/src/
Dpvmp3_get_side_info.cpp116 mp3SideInfo *si, in pvmp3_get_side_info() argument
135 si->main_data_begin = (tmp << 18) >> 23; /* 9 */ in pvmp3_get_side_info()
136 si->private_bits = (tmp << 27) >> 27; /* 5 */ in pvmp3_get_side_info()
146 si->main_data_begin = (tmp << 20) >> 23; /* 9 */ in pvmp3_get_side_info()
147 si->private_bits = (tmp << 29) >> 29; /* 3 */ in pvmp3_get_side_info()
159 si->ch[ch].scfsi[0] = (tmp << 28) >> 31; /* 1 */ in pvmp3_get_side_info()
160 si->ch[ch].scfsi[1] = (tmp << 29) >> 31; /* 1 */ in pvmp3_get_side_info()
161 si->ch[ch].scfsi[2] = (tmp << 30) >> 31; /* 1 */ in pvmp3_get_side_info()
162 si->ch[ch].scfsi[3] = tmp & 1; /* 1 */ in pvmp3_get_side_info()
174si->ch[ch].gran[gr].part2_3_length = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info()
[all …]
Dpvmp3_mpeg2_get_scale_data.cpp127 void pvmp3_mpeg2_get_scale_data(mp3SideInfo *si, in pvmp3_mpeg2_get_scale_data() argument
141 granuleInfo *gr_info = &(si->ch[ch].gran[gr]); in pvmp3_mpeg2_get_scale_data()
177 si->ch[ch].gran[gr].preflag = 0; in pvmp3_mpeg2_get_scale_data()
187 si->ch[ch].gran[gr].preflag = 0; in pvmp3_mpeg2_get_scale_data()
198 si->ch[ch].gran[gr].preflag = 0; in pvmp3_mpeg2_get_scale_data()
208 si->ch[ch].gran[gr].preflag = 1; in pvmp3_mpeg2_get_scale_data()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenersTest.java169 ServiceInfo si = new ServiceInfo(); in testEnsureFilters_newServiceNoMetadata() local
170 si.packageName = "new2"; in testEnsureFilters_newServiceNoMetadata()
171 si.name = "comp2"; in testEnsureFilters_newServiceNoMetadata()
173 mListeners.ensureFilters(si, 0); in testEnsureFilters_newServiceNoMetadata()
196 ServiceInfo si = new ServiceInfo(); in testEnsureFilters_newServiceWithMetadata() local
197 si.packageName = "new"; in testEnsureFilters_newServiceWithMetadata()
198 si.name = "comp"; in testEnsureFilters_newServiceWithMetadata()
199 si.metaData = new Bundle(); in testEnsureFilters_newServiceWithMetadata()
200 si.metaData.putString(NotificationListenerService.META_DATA_DEFAULT_FILTER_TYPES, "1|2"); in testEnsureFilters_newServiceWithMetadata()
202 mListeners.ensureFilters(si, 0); in testEnsureFilters_newServiceWithMetadata()
[all …]
DShortcutHelperTest.java254 ShortcutInfo si = mock(ShortcutInfo.class); in testGetValidShortcutInfo_notLongLived() local
255 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_notLongLived()
256 when(si.getId()).thenReturn(SHORTCUT_ID); in testGetValidShortcutInfo_notLongLived()
257 when(si.getUserId()).thenReturn(UserHandle.USER_SYSTEM); in testGetValidShortcutInfo_notLongLived()
258 when(si.isLongLived()).thenReturn(false); in testGetValidShortcutInfo_notLongLived()
259 when(si.isEnabled()).thenReturn(true); in testGetValidShortcutInfo_notLongLived()
261 shortcuts.add(si); in testGetValidShortcutInfo_notLongLived()
272 ShortcutInfo si = mock(ShortcutInfo.class); in testGetValidShortcutInfo_notSharingShortcut() local
273 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_notSharingShortcut()
274 when(si.getId()).thenReturn(SHORTCUT_ID); in testGetValidShortcutInfo_notSharingShortcut()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackage.java248 forEachShortcutMutateIf(query, si -> { in onRestored()
250 && !si.hasFlags(ShortcutInfo.FLAG_SHADOW) in onRestored()
251 && si.getDisabledReason() == restoreBlockReason) { in onRestored()
254 si.clearFlags(ShortcutInfo.FLAG_SHADOW); in onRestored()
256 si.setDisabledReason(restoreBlockReason); in onRestored()
258 si.addFlags(ShortcutInfo.FLAG_DISABLED); in onRestored()
278 ShortcutInfo si = findShortcutById(id); in isShortcutExistsAndInvisibleToPublisher() local
279 return si != null && !si.isVisibleToPublisher(); in isShortcutExistsAndInvisibleToPublisher()
283 ShortcutInfo si = findShortcutById(id); in isShortcutExistsAndVisibleToPublisher() local
284 return si != null && si.isVisibleToPublisher(); in isShortcutExistsAndVisibleToPublisher()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicLUT.java61 ScriptIntrinsicLUT si = new ScriptIntrinsicLUT(id, rs); in create()
62 si.setIncSupp(mUseIncSupp); in create()
63 si.mTables = Allocation.createSized(rs, Element.U8(rs), 1024); in create()
65 si.mCache[ct] = (byte)ct; in create()
66 si.mCache[ct + 256] = (byte)ct; in create()
67 si.mCache[ct + 512] = (byte)ct; in create()
68 si.mCache[ct + 768] = (byte)ct; in create()
70 si.setVar(0, si.mTables); in create()
71 return si; in create()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java81 SearchableInfo si = searchables.getSearchableInfo(nonActivity); in testNonSearchable() local
82 assertNull(si); in testNonSearchable()
147 SearchableInfo si = searchablesList.get(ii); in checkSearchables() local
148 checkSearchable(si); in checkSearchables()
152 private void checkSearchable(SearchableInfo si) { in checkSearchable() argument
153 assertNotNull(si); in checkSearchable()
154 assertTrue(si.getLabelId() != 0); // This must be a useable string in checkSearchable()
155 assertNotEmpty(si.getSearchActivity().getClassName()); in checkSearchable()
156 assertNotEmpty(si.getSearchActivity().getPackageName()); in checkSearchable()
157 if (si.getSuggestAuthority() != null) { in checkSearchable()
[all …]
/frameworks/base/media/java/android/media/
DImageReader.java474 SurfaceImage si = new SurfaceImage(mFormat); in acquireNextImageNoThrowISE() local
475 return acquireNextSurfaceImage(si) == ACQUIRE_SUCCESS ? si : null; in acquireNextImageNoThrowISE()
492 private int acquireNextSurfaceImage(SurfaceImage si) { in acquireNextSurfaceImage() argument
497 status = nativeImageSetup(si); in acquireNextSurfaceImage()
502 si.mIsImageValid = true; in acquireNextSurfaceImage()
513 mAcquiredImages.add(si); in acquireNextSurfaceImage()
550 SurfaceImage si = new SurfaceImage(mFormat); in acquireNextImage() local
551 int status = acquireNextSurfaceImage(si); in acquireNextImage()
555 return si; in acquireNextImage()
576 SurfaceImage si = (SurfaceImage) i; in releaseImage() local
[all …]
/frameworks/base/core/java/android/service/contentcapture/
DContentCaptureServiceInfo.java63 ServiceInfo si = null; in getServiceInfoOrThrow() local
65 si = AppGlobals.getPackageManager().getServiceInfo(comp, flags, userId); in getServiceInfoOrThrow()
68 if (si == null) { in getServiceInfoOrThrow()
73 return si; in getServiceInfoOrThrow()
88 private ContentCaptureServiceInfo(@NonNull Context context, @NonNull ServiceInfo si) { in ContentCaptureServiceInfo() argument
90 if (!Manifest.permission.BIND_CONTENT_CAPTURE_SERVICE.equals(si.permission)) { in ContentCaptureServiceInfo()
91 Slog.w(TAG, "ContentCaptureService from '" + si.packageName in ContentCaptureServiceInfo()
98 mServiceInfo = si; in ContentCaptureServiceInfo()
101 final XmlResourceParser parser = si.loadXmlMetaData(context.getPackageManager(), in ContentCaptureServiceInfo()
112 si.applicationInfo); in ContentCaptureServiceInfo()
/frameworks/base/core/java/android/service/translation/
DTranslationServiceInfo.java69 ServiceInfo si = null; in getServiceInfoOrThrow() local
71 si = AppGlobals.getPackageManager().getServiceInfo(comp, flags, userId); in getServiceInfoOrThrow()
74 if (si == null) { in getServiceInfoOrThrow()
79 return si; in getServiceInfoOrThrow()
98 private TranslationServiceInfo(@NonNull Context context, @NonNull ServiceInfo si) { in TranslationServiceInfo() argument
100 if (!Manifest.permission.BIND_TRANSLATION_SERVICE.equals(si.permission)) { in TranslationServiceInfo()
101 Slog.w(TAG, "TranslationServiceInfo from '" + si.packageName in TranslationServiceInfo()
108 mServiceInfo = si; in TranslationServiceInfo()
112 final XmlResourceParser parser = si.loadXmlMetaData(context.getPackageManager(), in TranslationServiceInfo()
123 si.applicationInfo); in TranslationServiceInfo()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionServiceInfo.java71 ServiceInfo si = AppGlobals.getPackageManager().getServiceInfo(comp, in getServiceInfoOrThrow() local
76 if (si != null) { in getServiceInfoOrThrow()
77 return si; in getServiceInfoOrThrow()
92 public VoiceInteractionServiceInfo(@NonNull PackageManager pm, @NonNull ServiceInfo si) { in VoiceInteractionServiceInfo() argument
93 if (!Manifest.permission.BIND_VOICE_INTERACTION.equals(si.permission)) { in VoiceInteractionServiceInfo()
99 try (XmlResourceParser parser = si.loadXmlMetaData(pm, in VoiceInteractionServiceInfo()
103 + " meta-data for " + si.packageName; in VoiceInteractionServiceInfo()
107 Resources res = pm.getResourcesForApplication(si.applicationInfo); in VoiceInteractionServiceInfo()
154 mServiceInfo = si; in VoiceInteractionServiceInfo()
/frameworks/base/telephony/java/android/telephony/data/
DNetworkSlicingConfig.java54 for (android.hardware.radio.V1_6.SliceInfo si : sliceInfo) { in NetworkSlicingConfig()
55 mSliceInfo.add(sliceInfoBuilder(si)); in NetworkSlicingConfig()
59 private NetworkSliceInfo sliceInfoBuilder(android.hardware.radio.V1_6.SliceInfo si) { in sliceInfoBuilder() argument
61 .setSliceServiceType(si.sst) in sliceInfoBuilder()
62 .setMappedHplmnSliceServiceType(si.mappedHplmnSst); in sliceInfoBuilder()
63 if (si.sliceDifferentiator != NetworkSliceInfo.SLICE_DIFFERENTIATOR_NO_SLICE) { in sliceInfoBuilder()
65 .setSliceDifferentiator(si.sliceDifferentiator) in sliceInfoBuilder()
66 .setMappedHplmnSliceDifferentiator(si.mappedHplmnSD); in sliceInfoBuilder()
DRouteSelectionDescriptor.java135 for (android.hardware.radio.V1_6.SliceInfo si : sliceInfo) { in RouteSelectionDescriptor()
136 mSliceInfo.add(sliceInfoBuilder(si)); in RouteSelectionDescriptor()
142 private NetworkSliceInfo sliceInfoBuilder(android.hardware.radio.V1_6.SliceInfo si) { in sliceInfoBuilder() argument
144 .setSliceServiceType(si.sst) in sliceInfoBuilder()
145 .setMappedHplmnSliceServiceType(si.mappedHplmnSst); in sliceInfoBuilder()
146 if (si.sliceDifferentiator != NetworkSliceInfo.SLICE_DIFFERENTIATOR_NO_SLICE) { in sliceInfoBuilder()
148 .setSliceDifferentiator(si.sliceDifferentiator) in sliceInfoBuilder()
149 .setMappedHplmnSliceDifferentiator(si.mappedHplmnSD); in sliceInfoBuilder()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DRecognitionServiceInfo.java89 static RecognitionServiceInfo parseInfo(@NonNull PackageManager pm, @NonNull ServiceInfo si) { in parseInfo() argument
92 try (XmlResourceParser parser = si.loadXmlMetaData( in parseInfo()
97 + " meta-data for " + si.packageName; in parseInfo()
98 return new RecognitionServiceInfo(si, selectableAsDefault, parseError); in parseInfo()
100 Resources res = pm.getResourcesForApplication(si.applicationInfo); in parseInfo()
125 return new RecognitionServiceInfo(si, selectableAsDefault, parseError); in parseInfo()
129 @NonNull ServiceInfo si, boolean selectableAsDefault, @NonNull String parseError) { in RecognitionServiceInfo()
130 mServiceInfo = si; in RecognitionServiceInfo()
/frameworks/native/services/sensorservice/
DSensorList.cpp32 int handle, SensorInterface* si, bool isForDebug, bool isVirtual) { in add() argument
34 if (handle == si->getSensor().getHandle() && in add()
37 mHandleMap.emplace(handle, Entry(si, isForDebug, isVirtual)); in add()
56 handle, [] (const Entry& e) -> String8 {return e.si->getSensor().getName();}, in getName()
62 handle, [] (const Entry& e) -> String8 {return e.si->getSensor().getStringType();}, in getStringType()
68 handle, [] (const Entry& e) -> sp<SensorInterface> {return e.si;}, nullptr); in getInterface()
82 if (!e.isForDebug && !e.si->getSensor().isDynamicSensor()) { in getUserSensors()
83 sensors.add(e.si->getSensor()); in getUserSensors()
95 if (!e.si->getSensor().isDynamicSensor()) { in getUserDebugSensors()
96 sensors.add(e.si->getSensor()); in getUserDebugSensors()
[all …]
DSensorEventConnection.cpp164 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in addSensor() local
165 if (si == nullptr || in addSensor()
166 !canAccessSensor(si->getSensor(), "Add to SensorEventConnection: ", mOpPackageName) || in addSensor()
205 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in hasOneShotSensors() local
206 if (si != nullptr && si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in hasOneShotSensors()
248 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in updateLooperRegistrationLocked() local
249 if (si != nullptr && si->getSensor().isWakeUpSensor()) { in updateLooperRegistrationLocked()
558 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in sendPendingFlushEventsLocked() local
559 if (si == nullptr) { in sendPendingFlushEventsLocked()
566 bool wakeUpSensor = si->getSensor().isWakeUpSensor(); in sendPendingFlushEventsLocked()
[all …]
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java457 ret.removeIf(si -> !p.test(si)); in filter()
463 return filter(list, si -> in filterByActivity()
464 (si.getActivity().equals(activity) in filterByActivity()
465 && (si.isDeclaredInManifest() || si.isDynamic()))); in filterByActivity()
469 return filter(list, si -> si.getLastChangedTimestamp() >= time); in changedSince()
645 public static void assertDynamicOnly(ShortcutInfo si) { in assertDynamicOnly() argument
646 assertTrue(si.isDynamic()); in assertDynamicOnly()
647 assertFalse(si.isPinned()); in assertDynamicOnly()
650 public static void assertPinnedOnly(ShortcutInfo si) { in assertPinnedOnly() argument
651 assertFalse(si.isDynamic()); in assertPinnedOnly()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodInfo.java152 final ServiceInfo si = service.serviceInfo; in computeId() local
153 return new ComponentName(si.packageName, si.name).flattenToShortString(); in computeId()
181 ServiceInfo si = service.serviceInfo; in InputMethodInfo() local
198 parser = si.loadXmlMetaData(pm, InputMethod.SERVICE_META_DATA); in InputMethodInfo()
204 Resources res = pm.getResourcesForApplication(si.applicationInfo); in InputMethodInfo()
281 "Unable to create context for: " + si.packageName); in InputMethodInfo()
387 final ServiceInfo si = ri.serviceInfo; in InputMethodInfo() local
389 mId = new ComponentName(si.packageName, si.name).flattenToShortString(); in InputMethodInfo()
406 ServiceInfo si = new ServiceInfo(); in buildFakeResolveInfo() local
410 si.applicationInfo = ai; in buildFakeResolveInfo()
[all …]
/frameworks/rs/
DrsScriptIntrinsic.cpp87 ScriptIntrinsic *si = new ScriptIntrinsic(rsc); in rsi_ScriptIntrinsicCreate() local
88 if (!si->init(rsc, (RsScriptIntrinsicID)id, (Element *)ve)) { in rsi_ScriptIntrinsicCreate()
89 delete si; in rsi_ScriptIntrinsicCreate()
92 si->incUserRef(); in rsi_ScriptIntrinsicCreate()
93 return si; in rsi_ScriptIntrinsicCreate()
/frameworks/base/core/java/android/service/autofill/
DAutofillServiceInfo.java69 ServiceInfo si = AppGlobals.getPackageManager().getServiceInfo( in getServiceInfoOrThrow() local
73 if (si != null) { in getServiceInfoOrThrow()
74 return si; in getServiceInfoOrThrow()
99 public AutofillServiceInfo(Context context, ServiceInfo si) { in AutofillServiceInfo() argument
101 if (!Manifest.permission.BIND_AUTOFILL_SERVICE.equals(si.permission)) { in AutofillServiceInfo()
102 if (Manifest.permission.BIND_AUTOFILL.equals(si.permission)) { in AutofillServiceInfo()
104 Log.w(TAG, "AutofillService from '" + si.packageName + "' uses unsupported " in AutofillServiceInfo()
108 .setPackageName(si.packageName)); in AutofillServiceInfo()
110 Log.w(TAG, "AutofillService from '" + si.packageName in AutofillServiceInfo()
118 mServiceInfo = si; in AutofillServiceInfo()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DInputMethodSubtypeSwitchingControllerTest.java70 final ServiceInfo si = new ServiceInfo(); in addDummyImeSubtypeListItems() local
74 si.applicationInfo = ai; in addDummyImeSubtypeListItems()
75 si.enabled = true; in addDummyImeSubtypeListItems()
76 si.packageName = DUMMY_PACKAGE_NAME; in addDummyImeSubtypeListItems()
77 si.name = imeName; in addDummyImeSubtypeListItems()
78 si.exported = true; in addDummyImeSubtypeListItems()
79 si.nonLocalizedLabel = imeLabel; in addDummyImeSubtypeListItems()
80 ri.serviceInfo = si; in addDummyImeSubtypeListItems()
107 final ServiceInfo si = new ServiceInfo(); in createDummyItem() local
111 si.applicationInfo = ai; in createDummyItem()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInformationRecords.java183 public byte si; field in CdmaInformationRecords.CdmaNumberInfoRec
186 int si) { in CdmaNumberInfoRec() argument
192 this.si = (byte)si; in CdmaNumberInfoRec()
203 ", si: " + si + in toString()
220 int pi, int si, int reason) { in CdmaRedirectingNumberInfoRec() argument
222 number, numberType, numberPlan, pi, si); in CdmaRedirectingNumberInfoRec()
/frameworks/rs/cpu_ref/
DrsCpuScriptGroup.cpp209 RsdCpuScriptImpl *si = (RsdCpuScriptImpl *)mCtx->lookupScript(s); in execute() local
224 bool launchOK = si->forEachMtlsSetup(ains, inLen, outs[ct], nullptr, 0, nullptr, &mtls); in execute()
226 si->forEachKernelSetup(slot, &mtls); in execute()
227 si->preLaunch(slot, ains, inLen, outs[ct], mtls.fep.usr, in execute()
234 si->postLaunch(slot, ains, inLen, outs[ct], nullptr, 0, nullptr); in execute()
260 RsdCpuScriptImpl *si = (RsdCpuScriptImpl *)mCtx->lookupScript(s); in execute() local
262 si->forEachKernelSetup(kernels[ct]->mSlot, &mtls); in execute()
266 si->preLaunch(kernels[ct]->mSlot, ains, inLen, outs[ct], in execute()
276 RsdCpuScriptImpl *si = (RsdCpuScriptImpl *)mCtx->lookupScript(s); in execute() local
278 if (si->forEachMtlsSetup(ains, inLen, outs[0], nullptr, 0, nullptr, &mtls)) { in execute()
[all …]

12345