Home
last modified time | relevance | path

Searched refs:cs (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/rs/driver/
DrsdBcc.cpp45 RsdCpuReference::CpuScript * cs = in rsdScriptInit() local
48 if (cs == nullptr) { in rsdScriptInit()
51 script->mHal.drv = cs; in rsdScriptInit()
52 cs->populateScript(script); in rsdScriptInit()
59 RsdCpuReference::CpuScript * cs = dc->mCpuRef->createIntrinsic(s, iid, e); in rsdInitIntrinsic() local
60 if (cs == nullptr) { in rsdInitIntrinsic()
63 s->mHal.drv = cs; in rsdInitIntrinsic()
64 cs->populateScript(s); in rsdInitIntrinsic()
98 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)s->mHal.drv; in rsdScriptInvokeForEachMulti() local
99 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti()
[all …]
/frameworks/base/core/java/android/text/style/
DCharacterStyle.java36 public static CharacterStyle wrap(CharacterStyle cs) { in wrap() argument
37 if (cs instanceof MetricAffectingSpan) { in wrap()
38 return new MetricAffectingSpan.Passthrough((MetricAffectingSpan) cs); in wrap()
40 return new Passthrough(cs); in wrap()
66 public Passthrough(CharacterStyle cs) { in Passthrough() argument
67 mStyle = cs; in Passthrough()
DMetricAffectingSpan.java62 Passthrough(@NonNull MetricAffectingSpan cs) { in Passthrough() argument
63 mStyle = cs; in Passthrough()
/frameworks/base/core/java/android/text/
DTextDirectionHeuristics.java153 public boolean isRtl(CharSequence cs, int start, int count) { in isRtl() argument
154 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) { in isRtl()
160 return doCheck(cs, start, count); in isRtl()
163 private boolean doCheck(CharSequence cs, int start, int count) { in doCheck() argument
164 switch(mAlgorithm.checkRtl(cs, start, count)) { in doCheck()
197 int checkRtl(CharSequence cs, int start, int count); in checkRtl() argument
207 public int checkRtl(CharSequence cs, int start, int count) { in checkRtl() argument
213 cp = Character.codePointAt(cs, i); in checkRtl()
242 public int checkRtl(CharSequence cs, int start, int count) { in checkRtl() argument
246 cp = Character.codePointAt(cs, i); in checkRtl()
DTextUtils.java744 public static void writeToParcel(@Nullable CharSequence cs, @NonNull Parcel p, in writeToParcel() argument
746 if (cs instanceof Spanned) { in writeToParcel()
748 p.writeString(cs.toString()); in writeToParcel()
750 Spanned sp = (Spanned) cs; in writeToParcel()
751 Object[] os = sp.getSpans(0, cs.length(), Object.class); in writeToParcel()
784 if (cs != null) { in writeToParcel()
785 p.writeString(cs.toString()); in writeToParcel()
956 public static void dumpSpans(CharSequence cs, Printer printer, String prefix) { in dumpSpans() argument
957 if (cs instanceof Spanned) { in dumpSpans()
958 Spanned sp = (Spanned) cs; in dumpSpans()
[all …]
DTextDirectionHeuristic.java45 boolean isRtl(CharSequence cs, int start, int count); in isRtl() argument
/frameworks/av/camera/
DCameraBase.cpp146 const sp<::android::hardware::ICameraService> cs = getCameraService(); in connect() local
149 if (cs != nullptr) { in connect()
151 ret = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, clientUid, in connect()
159 (cs == nullptr) ? "Service not available" : ret.toString8().string()); in connect()
232 const sp<::android::hardware::ICameraService> cs = getCameraService(); in getNumberOfCameras() local
234 if (!cs.get()) { in getNumberOfCameras()
239 binder::Status res = cs->getNumberOfCameras( in getNumberOfCameras()
254 const sp<::android::hardware::ICameraService> cs = getCameraService(); in getCameraInfo() local
255 if (cs == 0) return UNKNOWN_ERROR; in getCameraInfo()
256 binder::Status res = cs->getCameraInfo(cameraId, cameraInfo); in getCameraInfo()
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp181 std::array<std::unique_ptr<ConsumerBuffer>, kMaxConsumerCount> cs; in TEST_F() local
183 cs[i] = ConsumerBuffer::Import(p->CreateConsumer()); in TEST_F()
184 ASSERT_TRUE(cs[i].get() != nullptr); in TEST_F()
186 EXPECT_EQ(client_state_masks & cs[i]->client_state_mask(), 0U); in TEST_F()
187 client_state_masks |= cs[i]->client_state_mask(); in TEST_F()
197 client_state_masks &= ~cs[i]->client_state_mask(); in TEST_F()
198 cs[i] = nullptr; in TEST_F()
199 cs[i] = ConsumerBuffer::Import(p->CreateConsumer()); in TEST_F()
200 ASSERT_TRUE(cs[i].get() != nullptr); in TEST_F()
202 EXPECT_EQ(client_state_masks & cs[i]->client_state_mask(), 0U); in TEST_F()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DAccessibilityNodeInfoDumper.java210 private static String safeCharSeqToString(CharSequence cs) { in safeCharSeqToString() argument
211 if (cs == null) in safeCharSeqToString()
214 return stripInvalidXMLChars(cs); in safeCharSeqToString()
218 private static String stripInvalidXMLChars(CharSequence cs) { in stripInvalidXMLChars() argument
230 for (int i = 0; i < cs.length(); i++) { in stripInvalidXMLChars()
231 ch = cs.charAt(i); in stripInvalidXMLChars()
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dshadows_f.rscript111 short cs = hsv.y;
115 //chroma = ( cv * cs )/k1;
117 m = ((int)cv*(k1 - (int)cs ))/k1;
119 // chroma == 0 <-> cs == 0 --> m=cv
120 if (cs == 0) {
124 is=(int)cs;
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dshadows.rscript111 short cs = hsv.y;
115 //chroma = ( cv * cs )/k1;
117 m = ((int)cv*(k1 - (int)cs ))/k1;
119 // chroma == 0 <-> cs == 0 --> m=cv
120 if (cs == 0) {
124 is=(int)cs;
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dshadows.rscript111 short cs = hsv.y;
115 //chroma = ( cv * cs )/k1;
117 m = ((int)cv*(k1 - (int)cs ))/k1;
119 // chroma == 0 <-> cs == 0 --> m=cv
120 if (cs == 0) {
124 is=(int)cs;
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dshadows.rscript111 short cs = hsv.y;
115 //chroma = ( cv * cs )/k1;
117 m = ((int)cv*(k1 - (int)cs ))/k1;
119 // chroma == 0 <-> cs == 0 --> m=cv
120 if (cs == 0) {
124 is=(int)cs;
/frameworks/av/services/camera/libcameraservice/hidl/
DHidlCameraService.h71 static sp<HidlCameraService> getInstance(android::CameraService *cs);
74 HidlCameraService(android::CameraService *cs) : mAidlICameraService(cs) { }; in HidlCameraService()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodManagerService.java1924 ClientState cs = mClients.remove(client.asBinder()); in removeClient() local
1925 if (cs != null) { in removeClient()
1926 client.asBinder().unlinkToDeath(cs.clientDeathRecipient, 0); in removeClient()
1927 clearClientSessionLocked(cs); in removeClient()
1932 if (info.mParentClient == cs) { in removeClient()
1937 if (mCurClient == cs) { in removeClient()
1948 if (mCurFocusedWindowClient == cs) { in removeClient()
2065 InputBindResult startInputUncheckedLocked(@NonNull ClientState cs, IInputContext inputContext, in startInputUncheckedLocked() argument
2081 if (!InputMethodUtils.checkIfPackageBelongsToUid(mAppOpsManager, cs.uid, in startInputUncheckedLocked()
2084 + " uid=" + cs.uid + " package=" + attribute.packageName); in startInputUncheckedLocked()
[all …]
/frameworks/ex/common/java/com/android/common/
DRfc822Validator.java150 public CharSequence fixText(CharSequence cs) { in fixText() argument
152 if (TextUtils.getTrimmedLength(cs) == 0) return ""; in fixText()
154 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(cs); in fixText()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java929 ColorSpace cs = source.getColorSpace(); in createBitmap() local
932 bitmap = createBitmap(null, neww, newh, newConfig, source.hasAlpha(), cs); in createBitmap()
946 if (cs == null) { in createBitmap()
947 cs = ColorSpace.get(ColorSpace.Named.SRGB); in createBitmap()
953 transformed || source.hasAlpha(), cs); in createBitmap()
1842 ColorSpace cs = Color.colorSpace(color); in eraseColor() local
1843 nativeErase(mNativePtr, cs.getNativeInstance(), color); in eraseColor()
1867 private static float clamp(float value, @NonNull ColorSpace cs, int index) { in clamp() argument
1868 return Math.max(Math.min(value, cs.getMaxValue(index)), cs.getMinValue(index)); in clamp()
1890 final ColorSpace cs = getColorSpace(); in getColor() local
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextPerfUtils.java101 CharSequence cs = CharBuffer.wrap(buffer); in nextRandomParagraph() local
103 return cs; in nextRandomParagraph()
106 SpannableStringBuilder ssb = new SpannableStringBuilder(cs); in nextRandomParagraph()
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp249 auto cs = getCameraServiceLocked(); in supportsCamera2ApiLocked() local
251 cs->supportsCameraApi(String16(cameraId), in supportsCamera2ApiLocked()
488 sp<hardware::ICameraService> cs = CameraManagerGlobal::getInstance().getCameraService(); in getCameraCharacteristics() local
489 if (cs == nullptr) { in getCameraCharacteristics()
494 binder::Status serviceRet = cs->getCameraCharacteristics(String16(cameraIdStr), &rawMetadata); in getCameraCharacteristics()
531 sp<hardware::ICameraService> cs = CameraManagerGlobal::getInstance().getCameraService(); in openCamera() local
532 if (cs == nullptr) { in openCamera()
542 binder::Status serviceRet = cs->connectDevice( in openCamera()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/google/
DCloudPrintPlugin.java134 byte[] cs = caseInsensitiveAttributes.get(ATTRIBUTE_CS); in CloudPrintPlugin()
135 if (cs == null || !POSSIBLE_CONNECTION_STATES.contains( in CloudPrintPlugin()
136 new String(cs, StandardCharsets.UTF_8).toLowerCase())) { in CloudPrintPlugin()
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraManager.cpp335 auto cs = getCameraService(); in getCameraIdList() local
514 sp<ICameraService> cs = CameraManagerGlobal::getInstance().getCameraService(); in getCameraCharacteristics() local
515 if (cs == nullptr) { in getCameraCharacteristics()
522 cs->getCameraCharacteristics(cameraIdStr, in getCameraCharacteristics()
556 sp<ICameraService> cs = CameraManagerGlobal::getInstance().getCameraService(); in openCamera() local
557 if (cs == nullptr) { in openCamera()
569 auto serviceRet = cs->connectDevice( in openCamera()
/frameworks/base/core/java/android/app/
DSharedElementCallback.java191 ColorSpace cs = bitmap.getColorSpace(); in onCaptureSharedElementSnapshot() local
192 if (cs != null) { in onCaptureSharedElementSnapshot()
193 bundle.putInt(BUNDLE_SNAPSHOT_COLOR_SPACE, cs.getId()); in onCaptureSharedElementSnapshot()
/frameworks/base/core/jni/
Dandroid_graphics_ColorSpace.cpp75 static void unref_colorSpace(SkColorSpace* cs) { in unref_colorSpace() argument
76 SkSafeUnref(cs); in unref_colorSpace()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java635 final Drawable.ConstantState cs; in loadDrawable() local
637 cs = sPreloadedColorDrawables.get(key); in loadDrawable()
639 cs = sPreloadedDrawables[mConfiguration.getLayoutDirection()].get(key); in loadDrawable()
644 if (cs != null) { in loadDrawable()
655 dr = cs.newDrawable(wrapper); in loadDrawable()
716 final Drawable.ConstantState cs = dr.getConstantState(); in cacheDrawable() local
717 if (cs == null) { in cacheDrawable()
722 final int changingConfigs = cs.getChangingConfigurations(); in cacheDrawable()
725 sPreloadedColorDrawables.put(key, cs); in cacheDrawable()
733 sPreloadedDrawables[0].put(key, cs); in cacheDrawable()
[all …]
/frameworks/hardware/interfaces/cameraservice/vts/functional/
DVtsHalCameraServiceV2_0TargetTest.cpp235 cs = ICameraService::getService(GetParam()); in SetUp()
304 sp<ICameraService> cs = nullptr; member in android::VtsHalCameraServiceV2_0TargetTest
313 cs->addListener(listener, [&status, &cameraStatuses](Status s, auto& retStatuses) { in TEST_P()
324 remoteRet = cs->getCameraCharacteristics( in TEST_P()
334 remoteRet = cs->connectDevice(callbacks, it.cameraId, in TEST_P()
450 Return<Status> ret = cs->removeListener(listener); in TEST_P()

123