/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest2.java | 149 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 …]
|
D | ShortcutManagerTest1.java | 438 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity() 440 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity() 448 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity() 450 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity() 452 .forShortcutWithId("si2", si -> { in testPublishWithNoActivity() 454 "abc"), si.getActivity()); in testPublishWithNoActivity() 463 .forShortcutWithId("si1", si -> { in testPublishWithNoActivity() 465 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity() 467 .forShortcutWithId("si3", si -> { in testPublishWithNoActivity() 469 MAIN_ACTIVITY_CLASS), si.getActivity()); in testPublishWithNoActivity() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_get_side_info.cpp | 115 mp3SideInfo *si, in pvmp3_get_side_info() argument 129 si->main_data_begin = (tmp << 18) >> 23; /* 9 */ in pvmp3_get_side_info() 130 si->private_bits = (tmp << 27) >> 27; /* 5 */ in pvmp3_get_side_info() 135 si->main_data_begin = (tmp << 20) >> 23; /* 9 */ in pvmp3_get_side_info() 136 si->private_bits = (tmp << 29) >> 29; /* 3 */ in pvmp3_get_side_info() 143 si->ch[ch].scfsi[0] = (tmp << 28) >> 31; /* 1 */ in pvmp3_get_side_info() 144 si->ch[ch].scfsi[1] = (tmp << 29) >> 31; /* 1 */ in pvmp3_get_side_info() 145 si->ch[ch].scfsi[2] = (tmp << 30) >> 31; /* 1 */ in pvmp3_get_side_info() 146 si->ch[ch].scfsi[3] = tmp & 1; /* 1 */ in pvmp3_get_side_info() 153 … 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 | 190 ShortcutInfo si = mShortcuts.valueAt(i); in onRestored() local 191 si.clearFlags(ShortcutInfo.FLAG_SHADOW); in onRestored() 193 si.setDisabledReason(restoreBlockReason); in onRestored() 195 si.addFlags(ShortcutInfo.FLAG_DISABLED); in onRestored() 212 ShortcutInfo si = findShortcutById(id); in isShortcutExistsAndInvisibleToPublisher() local 213 return si != null && !si.isVisibleToPublisher(); in isShortcutExistsAndInvisibleToPublisher() 217 ShortcutInfo si = findShortcutById(id); in isShortcutExistsAndVisibleToPublisher() local 218 return si != null && si.isVisibleToPublisher(); in isShortcutExistsAndVisibleToPublisher() 318 final ShortcutInfo si = mShortcuts.valueAt(i); in removeOrphans() local 320 if (si.isAlive()) continue; in removeOrphans() [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | ScriptIntrinsicLUT.java | 56 ScriptIntrinsicLUT si = new ScriptIntrinsicLUT(id, rs); in create() 57 si.setIncSupp(mUseIncSupp); in create() 58 si.mTables = Allocation.createSized(rs, Element.U8(rs), 1024); in create() 60 si.mCache[ct] = (byte)ct; in create() 61 si.mCache[ct + 256] = (byte)ct; in create() 62 si.mCache[ct + 512] = (byte)ct; in create() 63 si.mCache[ct + 768] = (byte)ct; in create() 65 si.setVar(0, si.mTables); in create() 66 return si; in create()
|
D | ScriptIntrinsicBlur.java | 61 ScriptIntrinsicBlur si = new ScriptIntrinsicBlur(id, rs); in create() 62 si.setIncSupp(mUseIncSupp); in create() 63 si.setRadius(5.f); in create() 65 return si; in create()
|
D | ScriptIntrinsicConvolve3x3.java | 71 ScriptIntrinsicConvolve3x3 si = new ScriptIntrinsicConvolve3x3(id, rs); in create() 72 si.setIncSupp(mUseIncSupp); in create() 73 si.setCoefficients(f); in create() 74 return si; in create()
|
/frameworks/base/media/java/android/media/ |
D | ImageReader.java | 427 SurfaceImage si = new SurfaceImage(mFormat); in acquireNextImageNoThrowISE() local 428 return acquireNextSurfaceImage(si) == ACQUIRE_SUCCESS ? si : null; in acquireNextImageNoThrowISE() 445 private int acquireNextSurfaceImage(SurfaceImage si) { in acquireNextSurfaceImage() argument 450 status = nativeImageSetup(si); in acquireNextSurfaceImage() 455 si.mIsImageValid = true; in acquireNextSurfaceImage() 466 mAcquiredImages.add(si); in acquireNextSurfaceImage() 503 SurfaceImage si = new SurfaceImage(mFormat); in acquireNextImage() local 504 int status = acquireNextSurfaceImage(si); in acquireNextImage() 508 return si; in acquireNextImage() 529 SurfaceImage si = (SurfaceImage) i; in releaseImage() local [all …]
|
/frameworks/native/services/sensorservice/ |
D | SensorList.cpp | 30 int handle, SensorInterface* si, bool isForDebug, bool isVirtual) { in add() argument 32 if (handle == si->getSensor().getHandle() && in add() 35 mHandleMap.emplace(handle, Entry(si, isForDebug, isVirtual)); in add() 54 handle, [] (const Entry& e) -> String8 {return e.si->getSensor().getName();}, in getName() 60 handle, [] (const Entry& e) -> sp<SensorInterface> {return e.si;}, nullptr); in getInterface() 74 if (!e.isForDebug && !e.si->getSensor().isDynamicSensor()) { in getUserSensors() 75 sensors.add(e.si->getSensor()); in getUserSensors() 87 if (!e.si->getSensor().isDynamicSensor()) { in getUserDebugSensors() 88 sensors.add(e.si->getSensor()); in getUserDebugSensors() 100 if (!e.isForDebug && e.si->getSensor().isDynamicSensor()) { in getDynamicSensors() [all …]
|
D | SensorEventConnection.cpp | 115 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in addSensor() local 116 if (si == nullptr || in addSensor() 117 !canAccessSensor(si->getSensor(), "Tried adding", mOpPackageName) || in addSensor() 147 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in hasOneShotSensors() local 148 if (si != nullptr && si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in hasOneShotSensors() 191 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in updateLooperRegistrationLocked() local 192 if (si != nullptr && si->getSensor().isWakeUpSensor()) { in updateLooperRegistrationLocked() 480 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in sendPendingFlushEventsLocked() local 481 if (si == nullptr) { in sendPendingFlushEventsLocked() 488 bool wakeUpSensor = si->getSensor().isWakeUpSensor(); in sendPendingFlushEventsLocked() [all …]
|
/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/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/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
D | ShortcutManagerTestUtils.java | 394 ret.removeIf(si -> !p.test(si)); in filter() 400 return filter(list, si -> in filterByActivity() 401 (si.getActivity().equals(activity) in filterByActivity() 402 && (si.isDeclaredInManifest() || si.isDynamic()))); in filterByActivity() 406 return filter(list, si -> si.getLastChangedTimestamp() >= time); in changedSince() 582 public static void assertDynamicOnly(ShortcutInfo si) { in assertDynamicOnly() argument 583 assertTrue(si.isDynamic()); in assertDynamicOnly() 584 assertFalse(si.isPinned()); in assertDynamicOnly() 587 public static void assertPinnedOnly(ShortcutInfo si) { in assertPinnedOnly() argument 588 assertFalse(si.isDynamic()); in assertPinnedOnly() [all …]
|
/frameworks/base/core/java/android/service/voice/ |
D | VoiceInteractionServiceInfo.java | 63 ServiceInfo si = AppGlobals.getPackageManager().getServiceInfo(comp, in getServiceInfoOrThrow() local 69 if (si != null) { in getServiceInfoOrThrow() 70 return si; in getServiceInfoOrThrow() 77 public VoiceInteractionServiceInfo(PackageManager pm, ServiceInfo si) { in VoiceInteractionServiceInfo() argument 78 if (si == null) { in VoiceInteractionServiceInfo() 82 if (!Manifest.permission.BIND_VOICE_INTERACTION.equals(si.permission)) { in VoiceInteractionServiceInfo() 90 parser = si.loadXmlMetaData(pm, VoiceInteractionService.SERVICE_META_DATA); in VoiceInteractionServiceInfo() 93 + " meta-data for " + si.packageName; in VoiceInteractionServiceInfo() 97 Resources res = pm.getResourcesForApplication(si.applicationInfo); in VoiceInteractionServiceInfo() 152 mServiceInfo = si; in VoiceInteractionServiceInfo()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodInfo.java | 122 final ServiceInfo si = service.serviceInfo; in computeId() local 123 return new ComponentName(si.packageName, si.name).flattenToShortString(); in computeId() 151 ServiceInfo si = service.serviceInfo; in InputMethodInfo() local 165 parser = si.loadXmlMetaData(pm, InputMethod.SERVICE_META_DATA); in InputMethodInfo() 171 Resources res = pm.getResourcesForApplication(si.applicationInfo); in InputMethodInfo() 240 "Unable to create context for: " + si.packageName); in InputMethodInfo() 310 final ServiceInfo si = ri.serviceInfo; in InputMethodInfo() local 312 mId = new ComponentName(si.packageName, si.name).flattenToShortString(); in InputMethodInfo() 325 ServiceInfo si = new ServiceInfo(); in buildDummyResolveInfo() local 329 si.applicationInfo = ai; in buildDummyResolveInfo() [all …]
|
/frameworks/base/core/java/android/service/autofill/ |
D | AutofillServiceInfo.java | 62 ServiceInfo si = AppGlobals.getPackageManager().getServiceInfo( in getServiceInfoOrThrow() local 66 if (si != null) { in getServiceInfoOrThrow() 67 return si; in getServiceInfoOrThrow() 88 public AutofillServiceInfo(Context context, ServiceInfo si) { in AutofillServiceInfo() argument 90 if (!Manifest.permission.BIND_AUTOFILL_SERVICE.equals(si.permission)) { in AutofillServiceInfo() 91 if (Manifest.permission.BIND_AUTOFILL.equals(si.permission)) { in AutofillServiceInfo() 93 Log.w(TAG, "AutofillService from '" + si.packageName + "' uses unsupported " in AutofillServiceInfo() 97 .setPackageName(si.packageName)); in AutofillServiceInfo() 99 Log.w(TAG, "AutofillService from '" + si.packageName in AutofillServiceInfo() 107 mServiceInfo = si; in AutofillServiceInfo() [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/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/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 …]
|
D | rsCpuScriptGroup2.h | 24 CPUClosure(const Closure* closure, RsdCpuScriptImpl* si, ExpandFuncTy func) : in CPUClosure() argument 25 mClosure(closure), mSi(si), mFunc(func) {} in CPUClosure() 27 CPUClosure(const Closure* closure, RsdCpuScriptImpl* si) : in CPUClosure() argument 28 mClosure(closure), mSi(si), mFunc(nullptr) {} in CPUClosure()
|
/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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/ |
D | InputMethodAndSubtypeUtilCompatTest.java | 239 final ServiceInfo si = new ServiceInfo(); in createDummyIme() local 244 si.applicationInfo = ai; in createDummyIme() 245 si.enabled = true; in createDummyIme() 246 si.packageName = "com.example.android.dummyime"; in createDummyIme() 247 si.name = "Dummy IME"; in createDummyIme() 248 si.exported = true; in createDummyIme() 249 si.nonLocalizedLabel = "Dummy IME"; in createDummyIme() 250 ri.serviceInfo = si; in createDummyIme()
|
D | InputMethodAndSubtypeUtilTest.java | 232 final ServiceInfo si = new ServiceInfo(); in createDummyIme() local 236 si.applicationInfo = ai; in createDummyIme() 237 si.enabled = true; in createDummyIme() 238 si.packageName = "com.example.android.dummyime"; in createDummyIme() 239 si.name = "Dummy IME"; in createDummyIme() 240 si.exported = true; in createDummyIme() 241 si.nonLocalizedLabel = "Dummy IME"; in createDummyIme() 242 ri.serviceInfo = si; in createDummyIme()
|
/frameworks/base/services/core/java/com/android/server/appbinding/ |
D | AppBindingUtils.java | 73 final ServiceInfo si = list.get(0).serviceInfo; in findService() local 75 if (!servicePermission.equals(si.permission)) { in findService() 77 + si.getComponentName().flattenToShortString() in findService() 83 return si; in findService()
|