/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest2.java | 154 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields() 157 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 163 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields() 166 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 170 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields() 174 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 179 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields() 183 assertTrue(getManager().addDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() 188 ShortcutInfo si = new ShortcutInfo.Builder(getClientContext(), "id") in testShortcutInfoMissingMandatoryFields() 191 assertTrue(getManager().setDynamicShortcuts(list(si))); in testShortcutInfoMissingMandatoryFields() [all …]
|
D | ShortcutManagerTest1.java | 601 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity() 603 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity() 611 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity() 613 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity() 615 .forShortcutWithId("si2", si -> { in testPublishWithNoActivity() 617 "abc"), si.getActivity()); in testPublishWithNoActivity() 626 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity() 628 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity() 630 .forShortcutWithId("si3", si -> { in testPublishWithNoActivity() 632 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity() [all …]
|
/frameworks/av/media/codecs/mp3dec/src/ |
D | pvmp3_get_side_info.cpp | 116 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() 174 … si->ch[ch].gran[gr].part2_3_length = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info() [all …]
|
D | pvmp3_mpeg2_get_scale_data.cpp | 127 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/core/java/com/android/server/pm/ |
D | ShortcutPackage.java | 254 forEachShortcutMutate(si -> { in onRestored() 256 && !si.hasFlags(ShortcutInfo.FLAG_SHADOW) in onRestored() 257 && si.getDisabledReason() == restoreBlockReason) { in onRestored() 260 si.clearFlags(ShortcutInfo.FLAG_SHADOW); in onRestored() 262 si.setDisabledReason(restoreBlockReason); in onRestored() 264 si.addFlags(ShortcutInfo.FLAG_DISABLED); in onRestored() 284 ShortcutInfo si = findShortcutById(id); in isShortcutExistsAndInvisibleToPublisher() local 285 return si != null && !si.isVisibleToPublisher(); in isShortcutExistsAndInvisibleToPublisher() 289 ShortcutInfo si = findShortcutById(id); in isShortcutExistsAndVisibleToPublisher() local 290 return si != null && si.isVisibleToPublisher(); in isShortcutExistsAndVisibleToPublisher() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ShortcutHelperTest.java | 254 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 …]
|
D | NotificationListenersTest.java | 245 ServiceInfo si = new ServiceInfo(); in testEnsureFilters_newServiceNoMetadata() local 246 si.packageName = "new2"; in testEnsureFilters_newServiceNoMetadata() 247 si.name = "comp2"; in testEnsureFilters_newServiceNoMetadata() 249 mListeners.ensureFilters(si, 0); in testEnsureFilters_newServiceNoMetadata() 272 ServiceInfo si = new ServiceInfo(); in testEnsureFilters_newServiceWithMetadata() local 273 si.packageName = "new"; in testEnsureFilters_newServiceWithMetadata() 274 si.name = "comp"; in testEnsureFilters_newServiceWithMetadata() 275 si.metaData = new Bundle(); in testEnsureFilters_newServiceWithMetadata() 276 si.metaData.putString(NotificationListenerService.META_DATA_DEFAULT_FILTER_TYPES, "1|2"); in testEnsureFilters_newServiceWithMetadata() 278 mListeners.ensureFilters(si, 0); in testEnsureFilters_newServiceWithMetadata() [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | ScriptIntrinsicLUT.java | 61 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()
|
D | ScriptIntrinsicBlur.java | 64 ScriptIntrinsicBlur si = new ScriptIntrinsicBlur(id, rs); in create() 65 si.setIncSupp(mUseIncSupp); in create() 66 si.setRadius(5.f); in create() 68 return si; in create()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 81 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/core/java/android/service/translation/ |
D | TranslationServiceInfo.java | 69 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/contentcapture/ |
D | ContentCaptureServiceInfo.java | 63 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/media/java/android/media/ |
D | ImageReader.java | 540 SurfaceImage si; in acquireNextImageNoThrowISE() local 542 si = new SurfaceImage(mFormat); in acquireNextImageNoThrowISE() 544 si = new SurfaceImage(mHardwareBufferFormat, mDataSpace); in acquireNextImageNoThrowISE() 546 return acquireNextSurfaceImage(si) == ACQUIRE_SUCCESS ? si : null; in acquireNextImageNoThrowISE() 563 private int acquireNextSurfaceImage(SurfaceImage si) { in acquireNextSurfaceImage() argument 568 status = nativeImageSetup(si, mUseLegacyImageFormat); in acquireNextSurfaceImage() 573 si.mIsImageValid = true; in acquireNextSurfaceImage() 584 mAcquiredImages.add(si); in acquireNextSurfaceImage() 621 SurfaceImage si; in acquireNextImage() local 623 si = new SurfaceImage(mFormat); in acquireNextImage() [all …]
|
/frameworks/base/core/java/android/service/voice/ |
D | VoiceInteractionServiceInfo.java | 71 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/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | RecognitionServiceInfo.java | 89 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/ |
D | SensorList.cpp | 32 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 …]
|
D | SensorEventConnection.cpp | 163 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in addSensor() local 164 if (si == nullptr || in addSensor() 165 !mService->canAccessSensor(si->getSensor(), "Add to SensorEventConnection: ", 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/ |
D | ShortcutManagerTestUtils.java | 457 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/rs/ |
D | rsScriptIntrinsic.cpp | 87 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/view/inputmethod/ |
D | InputMethodInfo.java | 164 final ServiceInfo si = service.serviceInfo; in computeId() local 165 return new ComponentName(si.packageName, si.name).flattenToShortString(); in computeId() 193 ServiceInfo si = service.serviceInfo; in InputMethodInfo() local 211 parser = si.loadXmlMetaData(pm, InputMethod.SERVICE_META_DATA); in InputMethodInfo() 217 Resources res = pm.getResourcesForApplication(si.applicationInfo); in InputMethodInfo() 300 "Unable to create context for: " + si.packageName); in InputMethodInfo() 417 final ServiceInfo si = ri.serviceInfo; in InputMethodInfo() local 419 mId = new ComponentName(si.packageName, si.name).flattenToShortString(); in InputMethodInfo() 439 ServiceInfo si = new ServiceInfo(); in buildFakeResolveInfo() local 443 si.applicationInfo = ai; in buildFakeResolveInfo() [all …]
|
/frameworks/base/core/java/android/service/autofill/ |
D | AutofillServiceInfo.java | 69 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/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 70 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/ |
D | CdmaInformationRecords.java | 183 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/ |
D | rsCpuScriptGroup.cpp | 209 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 …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/ |
D | InputMethodAndSubtypeUtilTest.java | 232 final ServiceInfo si = new ServiceInfo(); in createFakeIme() local 236 si.applicationInfo = ai; in createFakeIme() 237 si.enabled = true; in createFakeIme() 238 si.packageName = "com.example.android.fakeime"; in createFakeIme() 239 si.name = "Fake IME"; in createFakeIme() 240 si.exported = true; in createFakeIme() 241 si.nonLocalizedLabel = "Fake IME"; in createFakeIme() 242 ri.serviceInfo = si; in createFakeIme()
|