Home
last modified time | relevance | path

Searched refs:cv (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/core/java/android/provider/
DCalendarContract.java601 ContentValues cv = new ContentValues(); in getEntityAndIncrementCursor() local
602 cv.put(_ID, calendarId); in getEntityAndIncrementCursor()
604 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_NAME); in getEntityAndIncrementCursor()
605 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_TYPE); in getEntityAndIncrementCursor()
607 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, _SYNC_ID); in getEntityAndIncrementCursor()
608 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY); in getEntityAndIncrementCursor()
609 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, MUTATORS); in getEntityAndIncrementCursor()
611 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC1); in getEntityAndIncrementCursor()
612 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC2); in getEntityAndIncrementCursor()
613 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC3); in getEntityAndIncrementCursor()
[all …]
/frameworks/base/cmds/statsd/tests/utils/
DMultiConditionTrigger_test.cpp40 condition_variable cv; in TEST() local
44 MultiConditionTrigger trigger(conditionNames, [&lock, &cv, &triggerCalled] { in TEST()
49 cv.notify_all(); in TEST()
66 cv.wait(unique_lk, [&triggerCalled] { in TEST()
81 condition_variable cv; in TEST() local
84 MultiConditionTrigger trigger({}, [&lock, &cv, &triggerCalled] { in TEST()
89 cv.notify_all(); in TEST()
93 cv.wait(unique_lk, [&triggerCalled] { return triggerCalled; }); in TEST()
103 condition_variable cv; in TEST() local
106 MultiConditionTrigger trigger(conditionNames, [&lock, &cv, &triggerCalled] { in TEST()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/database/
DSQLiteDatabaseIoPerfTest.java81 ContentValues cv = new ContentValues(); in testDatabaseModifications() local
84 cv.put("_ID", i); in testDatabaseModifications()
85 cv.put("COL_A", i); in testDatabaseModifications()
86 cv.put("COL_B", "NewValue"); in testDatabaseModifications()
87 cv.put("COL_C", 1.0); in testDatabaseModifications()
88 assertEquals(i, mDatabase.insert("T1", null, cv)); in testDatabaseModifications()
90 cv = new ContentValues(); in testDatabaseModifications()
92 cv.put("COL_B", "UpdatedValue"); in testDatabaseModifications()
93 cv.put("COL_C", 1.1); in testDatabaseModifications()
95 assertEquals(1, mDatabase.update("T1", cv, "_ID=?", whereArg)); in testDatabaseModifications()
[all …]
DSQLiteDatabasePerfTest.java201 ContentValues cv = new ContentValues(); in testInsert() local
202 cv.put("_ID", DEFAULT_DATASET_SIZE); in testInsert()
203 cv.put("COL_B", "NewValue"); in testInsert()
204 cv.put("COL_C", 1.1); in testInsert()
207 assertEquals(DEFAULT_DATASET_SIZE, mDatabase.insert("T1", null, cv)); in testInsert()
237 ContentValues cv = new ContentValues(); in testUpdate() local
241 cv.put("COL_A", i); in testUpdate()
242 cv.put("COL_B", "UpdatedValue"); in testUpdate()
243 cv.put("COL_C", i); in testUpdate()
245 assertEquals(1, mDatabase.update("T1", cv, "_ID=?", argArray)); in testUpdate()
/frameworks/base/core/tests/coretests/src/android/content/
DContentValuesTest.java38 ContentValues cv = new ContentValues(); in testIsEmpty() local
39 assertTrue(cv.isEmpty()); in testIsEmpty()
40 assertEquals(0, cv.size()); in testIsEmpty()
42 cv.put("key", "value"); in testIsEmpty()
43 assertFalse(cv.isEmpty()); in testIsEmpty()
44 assertEquals(1, cv.size()); in testIsEmpty()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmGenerator.java334 ClassVisitor cv = cw;
337 cv = new ReplaceMethodCallsAdapter(cv, className);
340 cv = new RefactorClassAdapter(cv, mRefactorClasses);
342 cv = new RenameClassAdapter(cv, className, newName);
347 cv = new InjectMethodsAdapter(cv, mInjectedMethodsMap.get(binaryNewName));
349 cv = StubClassAdapter.builder(mLog, cv)
362 cv = new DelegateClassAdapter(mLog, cv, className, delegateMethods);
368 cv = new PromoteFieldClassAdapter(cv, promoteFields);
371 cv = new PromoteClassClassAdapter(cv, mPromotedClasses);
376 cv = new ChangeFileVersionAdapter(mLog, 55, cv);
[all …]
DInjectMethodsAdapter.java30 public InjectMethodsAdapter(ClassVisitor cv, InjectMethodRunnable runnable) { in InjectMethodsAdapter() argument
31 super(Main.ASM_VERSION, cv); in InjectMethodsAdapter()
DChangeFileVersionAdapter.java29 public ChangeFileVersionAdapter(Log logger, int maxVersion, ClassVisitor cv) { in ChangeFileVersionAdapter() argument
30 super(Main.ASM_VERSION, cv); in ChangeFileVersionAdapter()
DPromoteFieldClassAdapter.java36 public PromoteFieldClassAdapter(ClassVisitor cv, Set<String> fieldNames) { in PromoteFieldClassAdapter() argument
37 super(Main.ASM_VERSION, cv); in PromoteFieldClassAdapter()
DRefactorClassAdapter.java27 RefactorClassAdapter(ClassVisitor cv, Map<String, String> refactorClasses) { in RefactorClassAdapter() argument
28 super(cv, new RefactorRemapper(refactorClasses)); in RefactorClassAdapter()
DInjectMethodRunnables.java35 ClassVisitor cv = (ClassVisitor) classVisitor;
40 MethodVisitor mv = cv.visitMethod(ACC_PUBLIC, "getFrameworkClassLoader",
DRenameClassAdapter.java42 public RenameClassAdapter(ClassVisitor cv, String oldName, String newName) { in RenameClassAdapter() argument
43 super(cv); in RenameClassAdapter()
/frameworks/base/telephony/java/android/telephony/
DSmsCbMessage.java573 ContentValues cv = new ContentValues(16); in getContentValues() local
574 cv.put(CellBroadcasts.SLOT_INDEX, mSlotIndex); in getContentValues()
575 cv.put(CellBroadcasts.SUBSCRIPTION_ID, mSubId); in getContentValues()
576 cv.put(CellBroadcasts.GEOGRAPHICAL_SCOPE, mGeographicalScope); in getContentValues()
578 cv.put(CellBroadcasts.PLMN, mLocation.getPlmn()); in getContentValues()
581 cv.put(CellBroadcasts.LAC, mLocation.getLac()); in getContentValues()
584 cv.put(CellBroadcasts.CID, mLocation.getCid()); in getContentValues()
586 cv.put(CellBroadcasts.SERIAL_NUMBER, getSerialNumber()); in getContentValues()
587 cv.put(CellBroadcasts.SERVICE_CATEGORY, getServiceCategory()); in getContentValues()
588 cv.put(CellBroadcasts.LANGUAGE_CODE, getLanguageCode()); in getContentValues()
[all …]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dshadows.rscript110 short cv = hsv.x;
115 //chroma = ( cv * cs )/k1;
116 //m = cv - chroma;
117 m = ((int)cv*(k1 - (int)cs ))/k1;
119 // chroma == 0 <-> cs == 0 --> m=cv
121 rb = ( rg = ( rr =( cv >> ABITS) ));
125 iv=(int)cv;
134 // ( chroma + m ) --> cv ;
135 cv=(short) (cv >> ABITS);
138 rr = cv;
[all …]
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dshadows_f.rscript110 short cv = hsv.x;
115 //chroma = ( cv * cs )/k1;
116 //m = cv - chroma;
117 m = ((int)cv*(k1 - (int)cs ))/k1;
119 // chroma == 0 <-> cs == 0 --> m=cv
121 rb = ( rg = ( rr =( cv >> ABITS) ));
125 iv=(int)cv;
134 // ( chroma + m ) --> cv ;
135 cv=(short) (cv >> ABITS);
138 rr = cv;
[all …]
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dshadows.rscript110 short cv = hsv.x;
115 //chroma = ( cv * cs )/k1;
116 //m = cv - chroma;
117 m = ((int)cv*(k1 - (int)cs ))/k1;
119 // chroma == 0 <-> cs == 0 --> m=cv
121 rb = ( rg = ( rr =( cv >> ABITS) ));
125 iv=(int)cv;
134 // ( chroma + m ) --> cv ;
135 cv=(short) (cv >> ABITS);
138 rr = cv;
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dshadows.rscript110 short cv = hsv.x;
115 //chroma = ( cv * cs )/k1;
116 //m = cv - chroma;
117 m = ((int)cv*(k1 - (int)cs ))/k1;
119 // chroma == 0 <-> cs == 0 --> m=cv
121 rb = ( rg = ( rr =( cv >> ABITS) ));
125 iv=(int)cv;
134 // ( chroma + m ) --> cv ;
135 cv=(short) (cv >> ABITS);
138 rr = cv;
[all …]
/frameworks/av/media/libeffects/loudness/dsp/core/
Ddynamic_range_compression.cpp85 const float cv = rect * slope_; in Compress() local
87 if (cv <= state_) { in Compress()
88 state_ = alpha_attack_ * state_ + (1.0f - alpha_attack_) * cv; in Compress()
90 state_ = alpha_release_ * state_ + (1.0f - alpha_release_) * cv; in Compress()
114 const float cv = rect * slope_; in Compress() local
116 if (cv <= state_) { in Compress()
117 state_ = alpha_attack_ * state_ + (1.0f - alpha_attack_) * cv; in Compress()
119 state_ = alpha_release_ * state_ + (1.0f - alpha_release_) * cv; in Compress()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/
DGlobalResultsStore.java89 ContentValues cv = new ContentValues(); in storeRunResults() local
90 cv.put("name", testName); in storeRunResults()
91 cv.put("run_id", runId); in storeRunResults()
92 cv.put("iteration", iteration); in storeRunResults()
93 cv.put("timestamp", date); in storeRunResults()
94 cv.put("unknown_delay", in storeRunResults()
96 cv.put("input", in storeRunResults()
98 cv.put("animation", in storeRunResults()
100 cv.put("layout", in storeRunResults()
102 cv.put("draw", in storeRunResults()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseGeneralTest.java679 ContentValues cv; in testInsertHelper() local
693 cv = new ContentValues(); in testInsertHelper()
694 cv.put("s", "one"); in testInsertHelper()
695 row = ih.insert(cv); in testInsertHelper()
705 cv = new ContentValues(); in testInsertHelper()
706 cv.put("s", "two"); in testInsertHelper()
707 cv.put("t", "goodbye world"); in testInsertHelper()
708 row = ih.insert(cv); in testInsertHelper()
718 cv = new ContentValues(); in testInsertHelper()
719 cv.put("t", "goodbye world"); in testInsertHelper()
[all …]
/frameworks/base/cmds/statsd/src/external/
DStatsCallbackPuller.cpp54 shared_ptr<condition_variable> cv = make_shared<condition_variable>(); in PullInternal() local
61 [cv_mutex, cv, pullFinish, pullSuccess, sharedData]( in PullInternal()
82 cv->notify_one(); in PullInternal()
96 cv->wait_for(unique_lk, chrono::nanoseconds(mPullTimeoutNs), in PullInternal()
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/
DRefactorClassAdapterTest.java48 RefactorClassAdapter cv = new RefactorClassAdapter(outerCw, refactorMap); in testRefactorWithLambdas() local
50 cr.accept(cv, 0 /* flags */); in testRefactorWithLambdas()
53 cv = new RefactorClassAdapter(usageCw, refactorMap); in testRefactorWithLambdas()
55 cr.accept(cv, 0 /* flags */); in testRefactorWithLambdas()
DAsmGeneratorTest.java156 RecordingClassVisitor cv = new RecordingClassVisitor(); in testJavaClassRefactoring() local
160 cr.accept(cv, 0); in testJavaClassRefactoring()
162 assertTrue(cv.mVisitedClasses.contains( in testJavaClassRefactoring()
164 assertFalse(cv.mVisitedClasses.contains( in testJavaClassRefactoring()
201 RecordingClassVisitor cv = new RecordingClassVisitor(); in testClassRefactoring() local
204 cr.accept(cv, 0); in testClassRefactoring()
206 assertTrue(cv.mVisitedClasses.contains( in testClassRefactoring()
208 assertFalse(cv.mVisitedClasses.contains( in testClassRefactoring()
DDelegateClassAdapterTest.java91 DelegateClassAdapter cv = new DelegateClassAdapter( in testNoOp() local
95 cr.accept(cv, 0 /* flags */); in testNoOp()
148 DelegateClassAdapter cv = new DelegateClassAdapter( in testConstructorAfterDelegate() local
152 cr.accept(cv, 0 /* flags */); in testConstructorAfterDelegate()
180 DelegateClassAdapter cv = new DelegateClassAdapter( in testInnerConstructorAfterDelegate() local
184 cr.accept(cv, 0 /* flags */); in testInnerConstructorAfterDelegate()
215 DelegateClassAdapter cv = new DelegateClassAdapter( in testStaticInnerConstructorAfterDelegate() local
219 cr.accept(cv, 0 /* flags */); in testStaticInnerConstructorAfterDelegate()
246 DelegateClassAdapter cv = new DelegateClassAdapter( in testDelegateNative() local
250 cr.accept(cv, 0 /* flags */); in testDelegateNative()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DFakeSmsContentProvider.java98 ContentValues cv = new ContentValues(); in delete() local
99 cv.put("deleted", 1); in delete()
100 count = db.update(RAW_TABLE_NAME, cv, selection, selectionArgs); in delete()

123