Home
last modified time | relevance | path

Searched refs:A (Results 1 – 25 of 106) sorted by relevance

12345

/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities_linalg.cpp31 void db_CholeskyDecomp6x6(double A[36],double d[6]) in db_CholeskyDecomp6x6()
37 s=A[0]; in db_CholeskyDecomp6x6()
40 A[6]=A[1]*temp; in db_CholeskyDecomp6x6()
41 A[12]=A[2]*temp; in db_CholeskyDecomp6x6()
42 A[18]=A[3]*temp; in db_CholeskyDecomp6x6()
43 A[24]=A[4]*temp; in db_CholeskyDecomp6x6()
44 A[30]=A[5]*temp; in db_CholeskyDecomp6x6()
46 s=A[7]-A[6]*A[6]; in db_CholeskyDecomp6x6()
49 A[13]=(A[8]-A[6]*A[12])*temp; in db_CholeskyDecomp6x6()
50 A[19]=(A[9]-A[6]*A[18])*temp; in db_CholeskyDecomp6x6()
[all …]
Ddb_utilities.h289 inline double db_ScalarProduct4(const double A[4],const double B[4]) in db_ScalarProduct4()
291 return(A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+A[3]*B[3]); in db_ScalarProduct4()
296 inline double db_ScalarProduct7(const double A[7],const double B[7]) in db_ScalarProduct7()
298 return(A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+ in db_ScalarProduct7()
299 A[3]*B[3]+A[4]*B[4]+A[5]*B[5]+ in db_ScalarProduct7()
300 A[6]*B[6]); in db_ScalarProduct7()
305 inline double db_ScalarProduct9(const double A[9],const double B[9]) in db_ScalarProduct9()
307 return(A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+ in db_ScalarProduct9()
308 A[3]*B[3]+A[4]*B[4]+A[5]*B[5]+ in db_ScalarProduct9()
309 A[6]*B[6]+A[7]*B[7]+A[8]*B[8]); in db_ScalarProduct9()
[all …]
Ddb_utilities_poly.h219 inline void db_CharacteristicPolynomial4x4(double p[5],const double A[16]) in db_CharacteristicPolynomial4x4()
230 two01[0]=A[0]*A[5]-A[1]*A[4]; in db_CharacteristicPolynomial4x4()
231 two01[1]= -(A[0]+A[5]); in db_CharacteristicPolynomial4x4()
234 two02[0]=A[0]*A[6]-A[2]*A[4]; in db_CharacteristicPolynomial4x4()
235 two02[1]= -A[6]; in db_CharacteristicPolynomial4x4()
237 two03[0]=A[0]*A[7]-A[3]*A[4]; in db_CharacteristicPolynomial4x4()
238 two03[1]= -A[7]; in db_CharacteristicPolynomial4x4()
240 two12[0]=A[1]*A[6]-A[2]*A[5]; in db_CharacteristicPolynomial4x4()
241 two12[1]=A[2]; in db_CharacteristicPolynomial4x4()
243 two13[0]=A[1]*A[7]-A[3]*A[5]; in db_CharacteristicPolynomial4x4()
[all …]
Ddb_utilities_linalg.h36 inline void db_MultiplyScalar6(double A[6],double mult) in db_MultiplyScalar6()
38 (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar6()
39 (*A++) *= mult; in db_MultiplyScalar6()
44 inline void db_MultiplyScalar7(double A[7],double mult) in db_MultiplyScalar7()
46 (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar7()
47 (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar7()
52 inline void db_MultiplyScalar9(double A[9],double mult) in db_MultiplyScalar9()
54 (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar9()
55 (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar9()
83 DB_API void db_CholeskyDecomp6x6(double A[36],double d[6]);
[all …]
Ddb_utilities_camera.h57 void inline db_Identity2x2(double A[4]) in db_Identity2x2()
59 A[0]=1;A[1]=0; in db_Identity2x2()
60 A[2]=0;A[3]=1; in db_Identity2x2()
65 void inline db_Identity3x3(double A[9]) in db_Identity3x3()
67 A[0]=1;A[1]=0;A[2]=0; in db_Identity3x3()
68 A[3]=0;A[4]=1;A[5]=0; in db_Identity3x3()
69 A[6]=0;A[7]=0;A[8]=1; in db_Identity3x3()
Ddb_utilities_poly.cpp33 double si_r_srq,A; in db_SolveCubic() local
75 A= -db_sign(r)*db_CubRoot(db_absd(r)+sqrt(r2_min_q3)); in db_SolveCubic()
77 if(A!=0.0) roots[0]=A+q/A-bp_through3; in db_SolveCubic()
Ddb_utilities_indexing.h41 inline void db_SymmetricExtendUpperToLower(double **A,int rows,int cols) in db_SymmetricExtendUpperToLower() argument
44 for(i=1;i<rows;i++) for(j=0;j<i;j++) A[i][j]=A[j][i]; in db_SymmetricExtendUpperToLower()
60 inline void db_MultiplyMatricesAB(double **C,const double * const *A,const double * const *B,int ar… in db_MultiplyMatricesAB() argument
68 for(k=0;k<acols;k++) acc+=A[i][k]*B[k][j]; in db_MultiplyMatricesAB()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_linalg.cpp31 void db_CholeskyDecomp6x6(double A[36],double d[6]) in db_CholeskyDecomp6x6()
37 s=A[0]; in db_CholeskyDecomp6x6()
40 A[6]=A[1]*temp; in db_CholeskyDecomp6x6()
41 A[12]=A[2]*temp; in db_CholeskyDecomp6x6()
42 A[18]=A[3]*temp; in db_CholeskyDecomp6x6()
43 A[24]=A[4]*temp; in db_CholeskyDecomp6x6()
44 A[30]=A[5]*temp; in db_CholeskyDecomp6x6()
46 s=A[7]-A[6]*A[6]; in db_CholeskyDecomp6x6()
49 A[13]=(A[8]-A[6]*A[12])*temp; in db_CholeskyDecomp6x6()
50 A[19]=(A[9]-A[6]*A[18])*temp; in db_CholeskyDecomp6x6()
[all …]
Ddb_utilities.h289 inline double db_ScalarProduct4(const double A[4],const double B[4]) in db_ScalarProduct4()
291 return(A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+A[3]*B[3]); in db_ScalarProduct4()
296 inline double db_ScalarProduct7(const double A[7],const double B[7]) in db_ScalarProduct7()
298 return(A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+ in db_ScalarProduct7()
299 A[3]*B[3]+A[4]*B[4]+A[5]*B[5]+ in db_ScalarProduct7()
300 A[6]*B[6]); in db_ScalarProduct7()
305 inline double db_ScalarProduct9(const double A[9],const double B[9]) in db_ScalarProduct9()
307 return(A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+ in db_ScalarProduct9()
308 A[3]*B[3]+A[4]*B[4]+A[5]*B[5]+ in db_ScalarProduct9()
309 A[6]*B[6]+A[7]*B[7]+A[8]*B[8]); in db_ScalarProduct9()
[all …]
Ddb_utilities_poly.h219 inline void db_CharacteristicPolynomial4x4(double p[5],const double A[16]) in db_CharacteristicPolynomial4x4()
230 two01[0]=A[0]*A[5]-A[1]*A[4]; in db_CharacteristicPolynomial4x4()
231 two01[1]= -(A[0]+A[5]); in db_CharacteristicPolynomial4x4()
234 two02[0]=A[0]*A[6]-A[2]*A[4]; in db_CharacteristicPolynomial4x4()
235 two02[1]= -A[6]; in db_CharacteristicPolynomial4x4()
237 two03[0]=A[0]*A[7]-A[3]*A[4]; in db_CharacteristicPolynomial4x4()
238 two03[1]= -A[7]; in db_CharacteristicPolynomial4x4()
240 two12[0]=A[1]*A[6]-A[2]*A[5]; in db_CharacteristicPolynomial4x4()
241 two12[1]=A[2]; in db_CharacteristicPolynomial4x4()
243 two13[0]=A[1]*A[7]-A[3]*A[5]; in db_CharacteristicPolynomial4x4()
[all …]
Ddb_utilities_linalg.h36 inline void db_MultiplyScalar6(double A[6],double mult) in db_MultiplyScalar6()
38 (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar6()
39 (*A++) *= mult; in db_MultiplyScalar6()
44 inline void db_MultiplyScalar7(double A[7],double mult) in db_MultiplyScalar7()
46 (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar7()
47 (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar7()
52 inline void db_MultiplyScalar9(double A[9],double mult) in db_MultiplyScalar9()
54 (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar9()
55 (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; (*A++) *= mult; in db_MultiplyScalar9()
83 DB_API void db_CholeskyDecomp6x6(double A[36],double d[6]);
[all …]
Ddb_utilities_camera.h57 void inline db_Identity2x2(double A[4]) in db_Identity2x2()
59 A[0]=1;A[1]=0; in db_Identity2x2()
60 A[2]=0;A[3]=1; in db_Identity2x2()
65 void inline db_Identity3x3(double A[9]) in db_Identity3x3()
67 A[0]=1;A[1]=0;A[2]=0; in db_Identity3x3()
68 A[3]=0;A[4]=1;A[5]=0; in db_Identity3x3()
69 A[6]=0;A[7]=0;A[8]=1; in db_Identity3x3()
Ddb_utilities_poly.cpp33 double si_r_srq,A; in db_SolveCubic() local
75 A= -db_sign(r)*db_CubRoot(db_absd(r)+sqrt(r2_min_q3)); in db_SolveCubic()
77 if(A!=0.0) roots[0]=A+q/A-bp_through3; in db_SolveCubic()
Ddb_utilities_indexing.h41 inline void db_SymmetricExtendUpperToLower(double **A,int rows,int cols) in db_SymmetricExtendUpperToLower() argument
44 for(i=1;i<rows;i++) for(j=0;j<i;j++) A[i][j]=A[j][i]; in db_SymmetricExtendUpperToLower()
60 inline void db_MultiplyMatricesAB(double **C,const double * const *A,const double * const *B,int ar… in db_MultiplyMatricesAB() argument
68 for(k=0;k<acols;k++) acc+=A[i][k]*B[k][j]; in db_MultiplyMatricesAB()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DConsumers.java28 public static <A extends QuietlyCloseable> void consumeCloseable(Consumer<A> consumer, in consumeCloseable()
29 A value) { in consumeCloseable()
38 public static <A> void consumeAsync(Handler handler, in consumeAsync()
39 final Consumer<A> consumer, final A value) { in consumeAsync()
51 public static <A extends QuietlyCloseable> void consumeCloseableAsync(Handler handler, in consumeCloseableAsync()
52 final Consumer<A> consumer, final A value) { in consumeCloseableAsync()
64 public static <A> Consumer<A> createAsyncConsumer( in createAsyncConsumer()
65 final Handler handler, final Consumer<A> consumer) { in createAsyncConsumer()
66 return new Consumer<A>() { in createAsyncConsumer()
67 public boolean consume(A value) { in createAsyncConsumer()
[all …]
DCachedLater.java30 public abstract class CachedLater<A> implements NowOrLater<A> {
37 private A mValue;
42 private List<Consumer<? super A>> mWaitingConsumers;
54 protected void store(A value) { in store()
56 List<Consumer<? super A>> waitingConsumers; in store()
65 for (Consumer<? super A> consumer : waitingConsumers) { in store()
79 public void getLater(Consumer<? super A> consumer) { in getLater()
82 A value; in getLater()
88 mWaitingConsumers = new ArrayList<Consumer<? super A>>(); in getLater()
130 public synchronized A getNow() { in getNow()
DBarrierConsumer.java28 public class BarrierConsumer<A> implements Consumer<A> {
36 private ArrayList<A> mValues;
45 mValues = new ArrayList<A>(expectedCount); in BarrierConsumer()
54 public ArrayList<A> getValues() { in getValues()
64 ArrayList<A> values = mValues; in getValues()
72 public boolean consume(A value) { in consume()
DNowOrLaterWrapper.java21 public abstract class NowOrLaterWrapper<A, B> implements NowOrLater<B> {
23 private final NowOrLater<A> mWrapped;
25 public NowOrLaterWrapper(NowOrLater<A> wrapped) { in NowOrLaterWrapper()
30 mWrapped.getLater(new Consumer<A>(){ in getLater()
31 public boolean consume(A value) { in getLater()
49 public abstract B get(A value); in get()
DUtil.java38 public static <A> Set<A> setOfFirstN(List<A> list, int n) { in setOfFirstN()
40 HashSet<A> set = new HashSet<A>(end); in setOfFirstN()
DSQLiteAsyncQuery.java26 public abstract class SQLiteAsyncQuery<A> {
34 protected abstract A performQuery(SQLiteDatabase db); in performQuery()
39 public void run(SQLiteDatabase db, Consumer<A> consumer) { in run()
40 A result = performQuery(db); in run()
DNoOpConsumer.java24 public class NoOpConsumer<A> implements Consumer<A> {
25 public boolean consume(A result) { in consume()
/packages/apps/Browser/src/com/android/browser/
DSystemAllowGeolocationOrigins.java142 private <A> Set<A> setMinus(Set<A> x, Set<A> y) { in setMinus()
143 HashSet<A> z = new HashSet<A>(x.size()); in setMinus()
144 for (A a : x) { in setMinus()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DConsumerTrap.java26 public class ConsumerTrap<A> implements Consumer<A> {
28 private volatile A mValue;
30 public boolean consume(A value) { in consume()
35 public A getValue() { in getValue()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDelayingSuggestionsAdapter.java31 public class DelayingSuggestionsAdapter<A> implements SuggestionsAdapter<A> {
40 private final SuggestionsAdapterBase<A> mDelayedAdapter;
42 public DelayingSuggestionsAdapter(SuggestionsAdapterBase<A> delayed) { in DelayingSuggestionsAdapter()
129 public A getListAdapter() { in getListAdapter()
DSuggestionsListView.java24 public interface SuggestionsListView<A> {
49 void setSuggestionsAdapter(SuggestionsAdapter<A> adapter); in setSuggestionsAdapter()
54 SuggestionsAdapter<A> getSuggestionsAdapter(); in getSuggestionsAdapter()

12345