Home
last modified time | relevance | path

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

12345

/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/os/
DCancellationSignalBeamer.java128 public CloseableToken beam(@Nullable CancellationSignal cs) { in beam() argument
129 if (cs == null) { in beam()
132 return new Token(this, cs); in beam()
195 public static IBinder beamFromScope(@NonNull CancellationSignal cs) { in beamFromScope() argument
198 var token = state.first.beam(cs); in beamFromScope()
303 CancellationSignal cs = mTokenMap.get(token); in unbeam() local
304 if (cs != null) { in unbeam()
305 return cs; in unbeam()
308 cs = new CancellationSignal(); in unbeam()
309 mTokenMap.put(token, cs); in unbeam()
[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/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/view/layout/blueprints/
DDefaultKeyguardBlueprintTest.kt73 val cs = ConstraintSet() in apply() constant
74 underTest.apply(cs) in apply()
75 verify(defaultIndicationAreaSection).apply(cs) in apply()
76 verify(defaultLockIconSection).apply(cs) in apply()
77 verify(defaultShortcutsSection).apply(cs) in apply()
78 verify(defaultAmbientIndicationAreaSection).apply(cs) in apply()
79 verify(defaultSettingsPopupMenuSection).apply(cs) in apply()
80 verify(defaultStatusViewSection).apply(cs) in apply()
81 verify(splitShadeGuidelines).apply(cs) in apply()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/view/layout/sections/
DDefaultLockIconSectionTest.kt55 val cs = ConstraintSet() in apply() constant
56 underTest.apply(cs) in apply()
58 val constraint = cs.getConstraint(R.id.lock_icon_view) in apply()
66 val cs = ConstraintSet() in testCenterLockIcon() constant
67 underTest.centerLockIcon(Point(5, 6), 1F, 5, cs) in testCenterLockIcon()
69 val constraint = cs.getConstraint(R.id.lock_icon_view) in testCenterLockIcon()
DDefaultIndicationAreaSectionTest.kt37 val cs = ConstraintSet() in apply() constant
38 underTest.apply(cs) in apply()
40 val constraint = cs.getConstraint(R.id.keyguard_indication_area) in apply()
/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.cpp37 sk_sp<BlurDrawLooper> BlurDrawLooper::Make(SkColor4f color, SkColorSpace* cs, float blurSigma, in Make() argument
39 if (cs) { in Make()
41 tmp.setColor(color, cs); // converts color to sRGB in Make()
/frameworks/base/core/java/android/service/controls/
DControlsProviderService.java218 final IControlsSubscriber cs = (IControlsSubscriber) msg.obj;
219 final SubscriberProxy proxy = new SubscriberProxy(true, mToken, cs);
226 final IControlsSubscriber cs = (IControlsSubscriber) msg.obj;
227 final SubscriberProxy proxy = new SubscriberProxy(true, mToken, cs);
289 SubscriberProxy(boolean enforceStateless, IBinder token, IControlsSubscriber cs) {
292 mCs = cs;
296 IControlsSubscriber cs) {
297 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/base/apct-tests/perftests/core/src/android/libcore/regression/
DStringBuilderPerfTest.java73 CharSequence cs = "chars"; in timeAppendCharSequence() local
78 sb.append(cs); in timeAppendCharSequence()
85 CharSequence cs = "chars"; in timeAppendSubCharSequence() local
90 sb.append(cs); in timeAppendSubCharSequence()
/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/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/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/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/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.java1900 final ClientState cs = mClients.get(clientToBeReset.asBinder()); in switchUserOnHandlerLocked() local
1901 if (cs == null) { in switchUserOnHandlerLocked()
1905 cs.mClient.scheduleStartInputIfNecessary(mInFullscreenMode); in switchUserOnHandlerLocked()
2306 ClientState cs = mClients.remove(client.asBinder()); in removeClient() local
2307 if (cs != null) { in removeClient()
2308 client.asBinder().unlinkToDeath(cs.mClientDeathRecipient, 0 /* flags */); in removeClient()
2309 clearClientSessionLocked(cs); in removeClient()
2310 clearClientSessionForAccessibilityLocked(cs); in removeClient()
2315 if (info.mParentClient == cs) { in removeClient()
2320 if (mCurClient == cs) { in removeClient()
[all …]
/frameworks/opt/car/services/builtInServices/src_imms/com/android/server/inputmethod/
DCarInputMethodManagerService.java1848 final ClientState cs = mClients.get(clientToBeReset.asBinder()); in switchUserOnHandlerLocked() local
1849 if (cs == null) { in switchUserOnHandlerLocked()
1853 cs.mClient.scheduleStartInputIfNecessary(mInFullscreenMode); in switchUserOnHandlerLocked()
2265 ClientState cs = mClients.remove(client.asBinder()); in removeClient() local
2266 if (cs != null) { in removeClient()
2267 client.asBinder().unlinkToDeath(cs.mClientDeathRecipient, 0 /* flags */); in removeClient()
2268 clearClientSessionLocked(cs); in removeClient()
2269 clearClientSessionForAccessibilityLocked(cs); in removeClient()
2274 if (info.mParentClient == cs) { in removeClient()
2279 if (mCurClient == cs) { in removeClient()
[all …]

12345