Home
last modified time | relevance | path

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

1234

/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()
/frameworks/av/media/utils/
DMediaUtilsDelayedLibrary.cpp24 android::CallStack cs{}; in getCallStackStringForTid() local
25 cs.update(0 /* ignoreDepth */, tid); in getCallStackStringForTid()
26 return cs.toString().c_str(); in getCallStackStringForTid()
/frameworks/av/camera/
DCameraBase.cpp171 const sp<::android::hardware::ICameraService> cs = getCameraService(); in connect() local
174 if (cs != nullptr) { in connect()
178 ret = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, clientUid, in connect()
187 (cs == nullptr) ? "Service not available" : ret.toString8().string()); in connect()
260 const sp<::android::hardware::ICameraService> cs = getCameraService(); in getNumberOfCameras() local
262 if (!cs.get()) { in getNumberOfCameras()
267 binder::Status res = cs->getNumberOfCameras( in getNumberOfCameras()
283 const sp<::android::hardware::ICameraService> cs = getCameraService(); in getCameraInfo() local
284 if (cs == 0) return UNKNOWN_ERROR; in getCameraInfo()
285 binder::Status res = cs->getCameraInfo(cameraId, overrideToPortrait, cameraInfo); in getCameraInfo()
/frameworks/base/telephony/java/android/telephony/gba/
DUaSecurityProtocolIdentifier.java253 int cs = in.readInt();
254 if (org < 0 || protocol < 0 || cs < 0) {
265 if (cs > 0) {
266 builder.setTlsCipherSuite(cs);
415 public Builder setTlsCipherSuite(@TlsCipherSuite int cs) { in setTlsCipherSuite() argument
419 if (!TlsParams.isTlsCipherSuiteSupported(cs)) { in setTlsCipherSuite()
422 mSp.mTlsCipherSuite = cs; in setTlsCipherSuite()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DConversationInfoTest.java52 ConversationStatus cs = new ConversationStatus.Builder("id", ACTIVITY_ANNIVERSARY).build(); in testBuild() local
73 .addOrUpdateStatus(cs) in testBuild()
95 assertThat(conversationInfo.getStatuses()).contains(cs); in testBuild()
128 ConversationStatus cs = new ConversationStatus.Builder("id", ACTIVITY_ANNIVERSARY).build(); in testBuildFromAnotherConversationInfo() local
147 .addOrUpdateStatus(cs) in testBuildFromAnotherConversationInfo()
171 assertThat(destination.getStatuses()).contains(cs); in testBuildFromAnotherConversationInfo()
177 ConversationStatus cs = new ConversationStatus.Builder("id", ACTIVITY_ANNIVERSARY).build(); in testBuildFromAnotherConversation_identicalConversation() local
196 .addOrUpdateStatus(cs) in testBuildFromAnotherConversation_identicalConversation()
217 assertThat(destination.getStatuses()).contains(cs); in testBuildFromAnotherConversation_identicalConversation()
226 ConversationStatus cs = new ConversationStatus.Builder("id", ACTIVITY_ANNIVERSARY).build(); in testBuildFromBackupPayload() local
[all …]
/frameworks/base/libs/hwui/hwui/
DBlurDrawLooper.cpp35 sk_sp<BlurDrawLooper> BlurDrawLooper::Make(SkColor4f color, SkColorSpace* cs, float blurSigma, in Make() argument
37 if (cs) { in Make()
39 tmp.setColor(color, cs); // converts color to sRGB in Make()
/frameworks/base/core/java/android/service/controls/
DControlsProviderService.java222 final IControlsSubscriber cs = (IControlsSubscriber) msg.obj;
223 final SubscriberProxy proxy = new SubscriberProxy(true, mToken, cs);
230 final IControlsSubscriber cs = (IControlsSubscriber) msg.obj;
231 final SubscriberProxy proxy = new SubscriberProxy(true, mToken, cs);
293 SubscriberProxy(boolean enforceStateless, IBinder token, IControlsSubscriber cs) {
296 mCs = cs;
300 IControlsSubscriber cs) {
301 this(enforceStateless, token, cs);
/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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DClockDrawableWrapper.java346 ClockIconDrawable.ClockConstantState cs = new ClockIconDrawable.ClockConstantState( in newIcon() local
348 FastBitmapDrawable d = cs.newDrawable(); in newIcon()
381 ClockIconDrawable(ClockConstantState cs) { in ClockIconDrawable() argument
382 super(cs.mBitmap, cs.mIconColor); in ClockIconDrawable()
383 mBoundsOffset = cs.mBoundsOffset; in ClockIconDrawable()
384 mAnimInfo = cs.mAnimInfo; in ClockIconDrawable()
386 mBG = cs.mBG; in ClockIconDrawable()
387 mBgFilter = cs.mBgFilter; in ClockIconDrawable()
388 mBgPaint.setColorFilter(cs.mBgFilter); in ClockIconDrawable()
389 mThemedFgColor = cs.mThemedFgColor; in ClockIconDrawable()
/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/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/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_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/base/libs/WindowManager/Shell/tests/flicker/
DREADME.md5 - [Introduction to Flicker Test Library](http://cs/android/platform_testing/libraries/flicker/)
6 - [Flicker Test in frameworks/base](http://cs/android/frameworks/base/tests/FlickerTests/)
/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/services/core/java/com/android/server/inputmethod/
DInputMethodManagerService.java1936 final ClientState cs = mClients.get(clientToBeReset.asBinder()); in switchUserOnHandlerLocked() local
1937 if (cs == null) { in switchUserOnHandlerLocked()
1942 cs.client.scheduleStartInputIfNecessary(mInFullscreenMode); in switchUserOnHandlerLocked()
2459 ClientState cs = mClients.remove(client.asBinder()); in removeClient() local
2460 if (cs != null) { in removeClient()
2461 client.asBinder().unlinkToDeath(cs.clientDeathRecipient, 0); in removeClient()
2462 clearClientSessionLocked(cs); in removeClient()
2463 clearClientSessionForAccessibilityLocked(cs); in removeClient()
2468 if (info.mParentClient == cs) { in removeClient()
2473 if (mCurClient == cs) { in removeClient()
[all …]
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp268 sk_sp<SkColorSpace> cs; in ABitmap_compress() local
273 cs = nullptr; in ABitmap_compress()
275 cs = uirenderer::DataSpaceToColorSpace((android_dataspace) dataSpace); in ABitmap_compress()
278 if (!cs || dataSpace == ADATASPACE_UNKNOWN) { in ABitmap_compress()
291 SkImageInfo::Make(info->width, info->height, colorType, alphaType, std::move(cs)); in ABitmap_compress()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java927 ColorSpace cs = source.getColorSpace(); in createBitmap() local
930 bitmap = createBitmap(null, neww, newh, newConfig, source.hasAlpha(), cs); in createBitmap()
944 if (cs == null) { in createBitmap()
945 cs = ColorSpace.get(ColorSpace.Named.SRGB); in createBitmap()
951 transformed || source.hasAlpha(), cs); in createBitmap()
1880 ColorSpace cs = Color.colorSpace(color); in eraseColor() local
1881 nativeErase(mNativePtr, cs.getNativeInstance(), color); in eraseColor()
1905 private static float clamp(float value, @NonNull ColorSpace cs, int index) { in clamp() argument
1906 return Math.max(Math.min(value, cs.getMaxValue(index)), cs.getMinValue(index)); in clamp()
1928 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/base/services/people/java/com/android/server/people/data/
DDataManager.java377 final ConversationStore cs = packageData.getConversationStore(); in pruneExpiredConversationStatuses()
388 updateConversationStoreThenNotifyListeners(cs, builder.build(), in pruneExpiredConversationStatuses()
420 ConversationStore cs = getConversationStoreOrThrow(packageName, userId); in addOrUpdateStatus() local
421 ConversationInfo convToModify = getConversationInfoOrThrow(cs, conversationId); in addOrUpdateStatus()
424 updateConversationStoreThenNotifyListeners(cs, builder.build(), packageName, userId); in addOrUpdateStatus()
435 ConversationStore cs = getConversationStoreOrThrow(packageName, userId); in clearStatus() local
436 ConversationInfo convToModify = getConversationInfoOrThrow(cs, conversationId); in clearStatus()
439 updateConversationStoreThenNotifyListeners(cs, builder.build(), packageName, userId); in clearStatus()
443 ConversationStore cs = getConversationStoreOrThrow(packageName, userId); in clearStatuses() local
444 ConversationInfo convToModify = getConversationInfoOrThrow(cs, conversationId); in clearStatuses()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DAccessibilityNodeInfoDumper.java306 private static String safeCharSeqToString(CharSequence cs) { in safeCharSeqToString() argument
307 if (cs == null) in safeCharSeqToString()
310 return stripInvalidXMLChars(cs); in safeCharSeqToString()
314 private static String stripInvalidXMLChars(CharSequence cs) { in stripInvalidXMLChars() argument
326 for (int i = 0; i < cs.length(); i++) { in stripInvalidXMLChars()
327 ch = cs.charAt(i); in stripInvalidXMLChars()
/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()

1234