/development/ndk/platforms/android-21/samples/native-codec/jni/ |
D | native-codec-jni.cpp | 87 void doCodecWork(workerdata *d) { in doCodecWork() argument 90 if (!d->sawInputEOS) { in doCodecWork() 91 bufidx = AMediaCodec_dequeueInputBuffer(d->codec, 2000); in doCodecWork() 95 uint8_t *buf = AMediaCodec_getInputBuffer(d->codec, bufidx, &bufsize); in doCodecWork() 96 ssize_t sampleSize = AMediaExtractor_readSampleData(d->ex, buf, bufsize); in doCodecWork() 99 d->sawInputEOS = true; in doCodecWork() 102 int64_t presentationTimeUs = AMediaExtractor_getSampleTime(d->ex); in doCodecWork() 104 AMediaCodec_queueInputBuffer(d->codec, bufidx, 0, sampleSize, presentationTimeUs, in doCodecWork() 105 d->sawInputEOS ? AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM : 0); in doCodecWork() 106 AMediaExtractor_advance(d->ex); in doCodecWork() [all …]
|
/development/perftests/panorama/feature_stab/db_vlvm/ |
D | db_bundle.h | 38 inline void db_Compute_dx(double *dx,double **JtJ,double *min_Jtf,double lambda,double *d,int n) in db_Compute_dx() argument 44 for(i=0;i<n;i++) d[i]=JtJ[i][i]*opl; in db_Compute_dx() 46 db_CholeskyDecompSeparateDiagonal(JtJ,d,n); in db_Compute_dx() 47 db_CholeskyBacksub(dx,JtJ,d,n,min_Jtf); in db_Compute_dx() 56 double d[3],opl; in db_Compute_dx_3x3() local 59 d[0]=JtJ[0]*opl; in db_Compute_dx_3x3() 60 d[1]=JtJ[4]*opl; in db_Compute_dx_3x3() 61 d[2]=JtJ[8]*opl; in db_Compute_dx_3x3() 62 db_CholeskyDecomp3x3SeparateDiagonal(JtJ,d); in db_Compute_dx_3x3() 63 db_CholeskyBacksub3x3(dx,JtJ,d,min_Jtf); in db_Compute_dx_3x3()
|
D | db_utilities_poly.h | 79 DB_API void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d); 84 DB_API void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double … 89 DB_API void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,d… 96 inline void db_MultiplyPoly1_1(double *d,const double *a,const double *b) in db_MultiplyPoly1_1() argument 103 d[0]=a0*b0; in db_MultiplyPoly1_1() 104 d[1]=a0*b1+a1*b0; in db_MultiplyPoly1_1() 105 d[2]= a1*b1; in db_MultiplyPoly1_1() 108 inline void db_MultiplyPoly0_2(double *d,const double *a,const double *b) in db_MultiplyPoly0_2() argument 115 d[0]=a0*b0; in db_MultiplyPoly0_2() 116 d[1]=a0*b1; in db_MultiplyPoly0_2() [all …]
|
D | db_utilities_linalg.cpp | 31 void db_CholeskyDecomp6x6(double A[36],double d[6]) in db_CholeskyDecomp6x6() 38 d[0]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 39 temp=db_SafeReciprocal(d[0]); in db_CholeskyDecomp6x6() 47 d[1]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 48 temp=db_SafeReciprocal(d[1]); in db_CholeskyDecomp6x6() 55 d[2]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 56 temp=db_SafeReciprocal(d[2]); in db_CholeskyDecomp6x6() 62 d[3]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 63 temp=db_SafeReciprocal(d[3]); in db_CholeskyDecomp6x6() 68 d[4]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() [all …]
|
D | db_utilities_poly.cpp | 28 void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d) in db_SolveCubic() argument 40 if(a==0.0) db_SolveQuadratic(roots,nr_roots,b,c,d); in db_SolveCubic() 46 dp=d/a; in db_SolveCubic() 94 void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double e) in db_SolveQuartic() argument 111 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e); in db_SolveQuartic() 114 db_SolveCubic(roots,nr_roots,a,b,c,d); in db_SolveQuartic() 123 c1=d/a; in db_SolveQuartic() 166 void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,double e) in db_SolveQuarticForced() argument 183 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e); in db_SolveQuarticForced() 186 db_SolveCubic(roots,nr_roots,a,b,c,d); in db_SolveQuarticForced() [all …]
|
/development/ndk/sources/android/ndk_helper/ |
D | interpolator.cpp | 94 float d = (float) (dest_time_ - start_time_); in Update() local 97 p = GetFormula( type_, t, b, d, c ); in Update() 107 const float d, in GetFormula() argument 115 return (c * t / d + b); in GetFormula() 119 t1 = t / d; in GetFormula() 124 t1 = t / d; in GetFormula() 129 t1 = t / d / 2; in GetFormula() 139 t1 = t / d; in GetFormula() 144 t1 = t / d - 1; in GetFormula() 149 t1 = t / d / 2; in GetFormula() [all …]
|
/development/samples/SupportVectorDrawable/animated/src/com/example/android/support/vectordrawable/app/ |
D | AnimatedButtonBackground.java | 54 AnimatedVectorDrawableCompat []d = new AnimatedVectorDrawableCompat[icon.length]; in onCreate() local 57 d[i] = AnimatedVectorDrawableCompat.create(this, icon[i]); in onCreate() 65 addDrawableButtons(container, d); in onCreate() 68 if (d[0].getConstantState() != null) { in onCreate() 70 copies[0] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable(); in onCreate() 71 copies[1] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable(); in onCreate() 72 copies[2] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable(); in onCreate() 85 private void addDrawableButtons(LinearLayout container, AnimatedVectorDrawableCompat[] d) { in addDrawableButtons() argument 86 for (int i = 0; i < d.length; i++) { in addDrawableButtons() 90 button.setBackgroundDrawable(d[i]); in addDrawableButtons() [all …]
|
/development/ndk/platforms/android-9/arch-x86/include/asm/ |
D | dma-mapping_32.h | 27 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) argument 29 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) argument 30 #define dma_is_consistent(d, h) (1) argument
|
/development/samples/training/NsdChat/src/com/example/android/nsdchat/ |
D | ChatConnection.java | 98 Log.d(TAG, "setSocket being called."); in setSocket() 100 Log.d(TAG, "Setting a null socket."); in setSocket() 149 Log.d(TAG, "ServerSocket Created, awaiting connection"); in run() 151 Log.d(TAG, "Connected."); in run() 178 Log.d(CLIENT_TAG, "Creating chatClient"); in ChatClient() 200 Log.d(CLIENT_TAG, "Client-side socket initialized."); in run() 203 Log.d(CLIENT_TAG, "Socket already initialized. skipping!"); in run() 210 Log.d(CLIENT_TAG, "Initializing socket failed, UHE", e); in run() 212 Log.d(CLIENT_TAG, "Initializing socket failed, IOE.", e); in run() 220 Log.d(CLIENT_TAG, "Message sending loop interrupted, exiting"); in run() [all …]
|
D | NsdChatActivity.java | 46 Log.d(TAG, "Creating chat activity"); in onCreate() 65 Log.d(TAG, "ServerSocket isn't bound."); in clickAdvertise() 76 Log.d(TAG, "Connecting."); in clickConnect() 80 Log.d(TAG, "No service to connect to!"); in clickConnect() 101 Log.d(TAG, "Starting."); in onStart() 112 Log.d(TAG, "Pausing."); in onPause() 121 Log.d(TAG, "Resuming."); in onResume() 141 Log.d(TAG, "Being stopped."); in onStop() 151 Log.d(TAG, "Being destroyed."); in onDestroy()
|
D | NsdHelper.java | 57 Log.d(TAG, "Service discovery started"); in initializeDiscoveryListener() 62 Log.d(TAG, "Service discovery success" + service); in initializeDiscoveryListener() 64 Log.d(TAG, "Unknown Service Type: " + service.getServiceType()); in initializeDiscoveryListener() 66 Log.d(TAG, "Same machine: " + mServiceName); in initializeDiscoveryListener() 110 Log.d(TAG, "Same IP."); in initializeResolveListener() 124 Log.d(TAG, "Service registered: " + mServiceName); in initializeRegistrationListener() 129 Log.d(TAG, "Service registration failed: " + arg1); in initializeRegistrationListener() 134 Log.d(TAG, "Service unregistered: " + arg0.getServiceName()); in initializeRegistrationListener() 139 Log.d(TAG, "Service unregistration failed: " + errorCode); in initializeRegistrationListener()
|
/development/samples/browseable/MultiWindowPlayground/src/com/android.multiwindowplayground/activities/ |
D | LoggingActivity.java | 46 Log.d(mLogTag, "onCreate"); in onCreate() 54 Log.d(mLogTag, "onPostCreate"); in onPostCreate() 60 Log.d(mLogTag, "onPause"); in onPause() 66 Log.d(mLogTag, "onDestroy"); in onDestroy() 72 Log.d(mLogTag, "onResume"); in onResume() 78 Log.d(mLogTag, "onConfigurationChanged: " + newConfig.toString()); in onConfigurationChanged() 84 Log.d(mLogTag, "onPostCreate"); in onPostCreate() 93 Log.d(mLogTag, "onStart"); in onStart() 102 Log.d(mLogTag, "onStop"); in onStop() 109 Log.d(mLogTag, "onMultiWindowModeChanged: " + isInMultiWindowMode); in onMultiWindowModeChanged()
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
D | ContactPhotoBinder.java | 67 Drawable d = mCache.get(id); in bind() local 69 if (d == null) { in bind() 80 d = new BitmapDrawable(mResources, bitmap); in bind() 82 d = mDefault; in bind() 85 d.setBounds(0, 0, mPhotoSize, mPhotoSize); in bind() 86 ((TextView) view).setCompoundDrawables(d, null, null, null); in bind() 89 mCache.put(id, d); in bind() 91 ((TextView) view).setCompoundDrawables(d, null, null, null); in bind()
|
/development/samples/SupportVectorDrawable/static/src/com/example/android/support/vectordrawable/app/ |
D | SimpleButtonBackground.java | 87 VectorDrawableCompat []d = new VectorDrawableCompat[icon.length]; in onCreate() local 90 d[i] = VectorDrawableCompat.create(res, icon[i], getTheme()); in onCreate() 95 if (d.length > 3) { in onCreate() 96 d[3].setTint(0x8000FF00); in onCreate() 97 d[3].setTintMode(Mode.MULTIPLY); in onCreate() 103 ConstantState state = d[0].getConstantState(); in onCreate() 110 d[0].mutate(); in onCreate() 111 d[0].setAlpha(255); in onCreate() 121 addDrawableButtons(container, d); in onCreate() 126 private void addDrawableButtons(LinearLayout container, VectorDrawableCompat[] d) { in addDrawableButtons() argument [all …]
|
/development/ndk/platforms/android-3/include/linux/ |
D | posix_types.h | 27 #define __FDELT(d) ((d) / __NFDBITS) argument 30 #define __FDMASK(d) (1UL << ((d) % __NFDBITS)) argument
|
D | vt_buffer.h | 18 #define scr_memcpyw(d, s, c) memcpy(d, s, c) argument 19 #define scr_memmovew(d, s, c) memmove(d, s, c) argument
|
D | workqueue.h | 34 #define __WORK_INITIALIZER(n, f, d) { .entry = { &(n).entry, &(n).entry }, .func = (f), .data… argument 36 #define DECLARE_WORK(n, f, d) struct work_struct n = __WORK_INITIALIZER(n, f, d) argument
|
/development/ndk/platforms/android-9/arch-mips/include/asm/ |
D | vga.h | 30 #define scr_memcpyw(d, s, c) memcpy(d, s, c) argument 31 #define scr_memmovew(d, s, c) memmove(d, s, c) argument
|
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/camera/ |
D | CameraPreview.java | 67 Log.d(TAG, "Camera preview started."); in surfaceCreated() 69 Log.d(TAG, "Error setting camera preview: " + e.getMessage()); in surfaceCreated() 83 Log.d(TAG, "Preview surface does not exist"); in surfaceChanged() 90 Log.d(TAG, "Preview stopped."); in surfaceChanged() 93 Log.d(TAG, "Error starting camera preview: " + e.getMessage()); in surfaceChanged() 102 Log.d(TAG, "Camera preview started."); in surfaceChanged() 104 Log.d(TAG, "Error starting camera preview: " + e.getMessage()); in surfaceChanged()
|
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/camera/ |
D | CameraPreview.java | 67 Log.d(TAG, "Camera preview started."); in surfaceCreated() 69 Log.d(TAG, "Error setting camera preview: " + e.getMessage()); in surfaceCreated() 83 Log.d(TAG, "Preview surface does not exist"); in surfaceChanged() 90 Log.d(TAG, "Preview stopped."); in surfaceChanged() 93 Log.d(TAG, "Error starting camera preview: " + e.getMessage()); in surfaceChanged() 102 Log.d(TAG, "Camera preview started."); in surfaceChanged() 104 Log.d(TAG, "Error starting camera preview: " + e.getMessage()); in surfaceChanged()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | DensityActivity.java | 140 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); in addBitmapDrawable() local 141 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); in addBitmapDrawable() 142 view.setBackgroundDrawable(d); in addBitmapDrawable() 144 view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth(), in addBitmapDrawable() 145 d.getIntrinsicHeight())); in addBitmapDrawable() 152 final Drawable d = getResources().getDrawable(resource); in addResourceDrawable() local 153 view.setBackgroundDrawable(d); in addResourceDrawable() 155 view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth(), in addResourceDrawable() 156 d.getIntrinsicHeight())); in addResourceDrawable() 174 final Drawable d = getResources().getDrawable(resource); in addNinePatchResourceDrawable() local [all …]
|
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
D | InsecureSHA1PRNGKeyDerivator.java | 442 int d = arrW[HASH_OFFSET +3]; 464 ( ( b & c) | ((~b) & d) ) + 466 e = d; 467 d = c; 474 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; 475 e = d; 476 d = c; 483 temp = (( a<<5 ) | ( a>>>27 )) + ((b & c) | (b & d) | (c & d)) + 485 e = d; 486 d = c; [all …]
|
/development/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | MediaBrowserServiceSupport.java | 148 Log.d(TAG, "onCreate"); in onCreate() 209 Log.d(TAG, "onDestroy"); in onDestroy() 221 Log.d(TAG, "OnGetRoot: clientPackageName=" + clientPackageName + "; clientUid=" in onGetRoot() 270 Log.d(TAG, "OnLoadChildren: parentMediaId=" + parentMediaId); in loadChildrenImpl() 275 Log.d(TAG, "OnLoadChildren.ROOT"); in loadChildrenImpl() 287 Log.d(TAG, "OnLoadChildren.GENRES"); in loadChildrenImpl() 303 Log.d(TAG, "OnLoadChildren.SONGS_BY_GENRE genre=" + genre); in loadChildrenImpl() 321 Log.d(TAG, "OnLoadChildren sending " + mediaItems.size() + " results for " in loadChildrenImpl() 329 Log.d(TAG, "play"); in onPlay() 346 Log.d(TAG, "OnSkipToQueueItem:" + queueId); in onSkipToQueueItem() [all …]
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | MusicService.java | 147 LogHelper.d(TAG, "onCreate"); in onCreate() 206 LogHelper.d(TAG, "onDestroy"); in onDestroy() 218 LogHelper.d(TAG, "OnGetRoot: clientPackageName=" + clientPackageName, in onGetRoot() 268 LogHelper.d(TAG, "OnLoadChildren: parentMediaId=", parentMediaId); in loadChildrenImpl() 273 LogHelper.d(TAG, "OnLoadChildren.ROOT"); in loadChildrenImpl() 285 LogHelper.d(TAG, "OnLoadChildren.GENRES"); in loadChildrenImpl() 299 LogHelper.d(TAG, "OnLoadChildren.SONGS_BY_GENRE genre=", genre); in loadChildrenImpl() 317 LogHelper.d(TAG, "OnLoadChildren sending ", mediaItems.size(), in loadChildrenImpl() 325 LogHelper.d(TAG, "play"); in onPlay() 342 LogHelper.d(TAG, "OnSkipToQueueItem:" + queueId); in onSkipToQueueItem() [all …]
|
/development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/ |
D | IncomingRequestWearService.java | 53 Log.d(TAG, "IncomingRequestWearService()"); in IncomingRequestWearService() 59 Log.d(TAG, "onCreate()"); in onCreate() 64 Log.d(TAG, "onMessageReceived(): " + messageEvent); in onMessageReceived() 83 Log.d(TAG, "promptUserForSensorPermission()"); in promptUserForSensorPermission() 104 Log.d(TAG, "respondWithSensorInformation()"); in respondWithSensorInformation() 134 Log.d(TAG, "sendMessage(): " + dataMap); in sendMessage() 145 Log.d(TAG, "Google API Client failed to connect."); in sendMessage() 161 Log.d(TAG, "CapabilityApi failed to return any results."); in sendMessage() 180 Log.d(TAG, "Sending message failed, onResult: " + sendMessageResult.getStatus()); in sendMessage() 182 Log.d(TAG, "Message sent successfully"); in sendMessage() [all …]
|