Home
last modified time | relevance | path

Searched refs:cv (Results 1 – 25 of 59) 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 …]
DContactsContract.java3098 ContentValues cv = new ContentValues(); in getEntityAndIncrementCursor() local
3099 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_NAME); in getEntityAndIncrementCursor()
3100 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_TYPE); in getEntityAndIncrementCursor()
3101 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, DATA_SET); in getEntityAndIncrementCursor()
3102 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, _ID); in getEntityAndIncrementCursor()
3103 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY); in getEntityAndIncrementCursor()
3104 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, VERSION); in getEntityAndIncrementCursor()
3105 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SOURCE_ID); in getEntityAndIncrementCursor()
3106 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SYNC1); in getEntityAndIncrementCursor()
3107 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SYNC2); in getEntityAndIncrementCursor()
[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/layoutlib/create/tests/com/android/tools/layoutlib/create/
DClassHasNativeVisitorTest.java35 MockClassHasNativeVisitor cv = new MockClassHasNativeVisitor(); in testHasNative() local
40 cr.accept(cv, 0 /* flags */); in testHasNative()
41 assertArrayEquals(new String[] { "native_method" }, cv.getMethodsFound()); in testHasNative()
42 assertTrue(cv.hasNativeMethods()); in testHasNative()
47 MockClassHasNativeVisitor cv = new MockClassHasNativeVisitor(); in testHasNoNative() local
52 cr.accept(cv, 0 /* flags */); in testHasNoNative()
53 assertArrayEquals(new String[0], cv.getMethodsFound()); in testHasNoNative()
54 assertFalse(cv.hasNativeMethods()); in testHasNoNative()
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/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, 52, 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()
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/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/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/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/libs/net/common/devicetests/com/android/testutils/
DHandlerUtils.kt32 val cv = ConditionVariable(false) in HandlerThread() constant
33 post(cv::open) in HandlerThread()
34 if (!cv.block(timeoutMs)) { in HandlerThread()
43 val cv = ConditionVariable() in waitForIdleSerialExecutor() constant
44 executor.execute(cv::open) in waitForIdleSerialExecutor()
45 if (!cv.block(timeoutMs)) { in waitForIdleSerialExecutor()
/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/native/libs/ui/tests/
DBufferHubEventFd_test.cpp302 std::condition_variable cv; in TEST_F() local
317 cv.notify_one(); in TEST_F()
320 cv.notify_one(); in TEST_F()
330 EXPECT_TRUE(cv.wait_for(lock, kTimeoutMs, [&] { return countEvent1 == 1; })); in TEST_F()
333 EXPECT_TRUE(cv.wait_for(lock, kTimeoutMs, [&] { return countEvent1 == 2; })); in TEST_F()
336 EXPECT_TRUE(cv.wait_for(lock, kTimeoutMs, [&] { return countEvent2 == 1; })); in TEST_F()
344 EXPECT_TRUE(cv.wait_for(lock, kTimeoutMs, [&] { return countEvent1 == 3; })); in TEST_F()
347 EXPECT_TRUE(cv.wait_for(lock, kTimeoutMs, [&] { return countEvent2 == 2; })); in TEST_F()
373 std::condition_variable cv; in TEST_F() local
384 cv.notify_one(); in TEST_F()
[all …]
/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