/packages/apps/Gallery2/jni/filters/ |
D | kmeans.h | 25 template <typename T, typename N> 26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { in sum() 39 template <typename T, typename N> 40 inline void set(T val1[], N val2[], int dimension) { in set() 47 template <typename T, typename N> 48 inline void add(T val[], N dst[], int dimension) { in add() 55 template <typename T, typename N> 56 inline void divide(T dst[], N divisor, int dimension) { in divide() 70 template <typename T, typename N> 71 inline N euclideanDist(T val1[], T val2[], int dimension) { in euclideanDist() [all …]
|
D | contrast.c | 22 int N = 255; in clamp() local 24 c -= N; in clamp() 26 c += N; in clamp()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_framestitching.cpp | 30 double N[16],q[4],lambda[4],lambda_max; in db_RotationFromMOuterProductSum() local 34 N[0]= M[0]+M[4]+M[8]; in db_RotationFromMOuterProductSum() 35 N[5]= M[0]-M[4]-M[8]; in db_RotationFromMOuterProductSum() 36 N[10]= -M[0]+M[4]-M[8]; in db_RotationFromMOuterProductSum() 37 N[15]= -M[0]-M[4]+M[8]; in db_RotationFromMOuterProductSum() 38 N[1] =N[4] =M[5]-M[7]; in db_RotationFromMOuterProductSum() 39 N[2] =N[8] =M[6]-M[2]; in db_RotationFromMOuterProductSum() 40 N[3] =N[12]=M[1]-M[3]; in db_RotationFromMOuterProductSum() 41 N[6] =N[9] =M[1]+M[3]; in db_RotationFromMOuterProductSum() 42 N[7] =N[13]=M[6]+M[2]; in db_RotationFromMOuterProductSum() [all …]
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_framestitching.cpp | 30 double N[16],q[4],lambda[4],lambda_max; in db_RotationFromMOuterProductSum() local 34 N[0]= M[0]+M[4]+M[8]; in db_RotationFromMOuterProductSum() 35 N[5]= M[0]-M[4]-M[8]; in db_RotationFromMOuterProductSum() 36 N[10]= -M[0]+M[4]-M[8]; in db_RotationFromMOuterProductSum() 37 N[15]= -M[0]-M[4]+M[8]; in db_RotationFromMOuterProductSum() 38 N[1] =N[4] =M[5]-M[7]; in db_RotationFromMOuterProductSum() 39 N[2] =N[8] =M[6]-M[2]; in db_RotationFromMOuterProductSum() 40 N[3] =N[12]=M[1]-M[3]; in db_RotationFromMOuterProductSum() 41 N[6] =N[9] =M[1]+M[3]; in db_RotationFromMOuterProductSum() 42 N[7] =N[13]=M[6]+M[2]; in db_RotationFromMOuterProductSum() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MatrixUtilsTests.java | 57 final int N = 4; 60 final float[][] inverse = new float[N][N]; 61 final float[][] tempMatrix = new float[N][N]; 62 for (int i = 0; i < N; ++i) { 63 for (int j = 0; j < N; ++j) { 67 final float[][] retval = new float[N][N]; 78 for (int i = 0; i < N; ++i) { 79 for (int j = 0; j < N; ++j) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothScanner.java | 256 final int N = mPresentDevices.size(); in startListening() local 257 for (int i=0; i<N; i++) { in startListening() 409 final int N = mPresentDevices.size(); in onReceive() local 410 for (int i=0; i<N; i++) { in onReceive() 453 final int N = mPresentDevices.size(); in onReceive() local 454 for (int i=N-1; i>=0; i--) { in onReceive() 489 final int N = mClients.size(); in sendScanningStarted() local 490 for (int i = 0; i < N; i++) { in sendScanningStarted() 498 final int N = mClients.size(); in sendScanningStopped() local 501 for (int i = N - 1; i >= 0; --i) { in sendScanningStopped() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | SmoothingUtils.java | 52 final int N = xs.length; in get3DParameters() local 56 final float[][] m1 = new float[COEFF_COUNT][N]; in get3DParameters() 57 final float[][] m2 = new float[N][1]; in get3DParameters() 64 for (int k = 0; k < N; ++k) { in get3DParameters() 77 for (int j = 0; j < N; ++j) { in get3DParameters() 83 for (int i = 0; i < N; ++i) { in get3DParameters() 87 final float[][] m0Invxm1 = new float[COEFF_COUNT][N]; in get3DParameters()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/resolver/ |
D | ResolverActivity.java | 363 final int N = mListHelper.mList.size(); in onIntentSelected() local 364 ComponentName[] set = new ComponentName[N]; in onIntentSelected() 366 for (int i = 0; i < N; i++) { in onIntentSelected() 461 int N; in rebuildList() local 462 if ((currentResolveList != null) && ((N = currentResolveList.size()) > 0)) { in rebuildList() 466 for (int i = 1; i < N; i++) { in rebuildList() 476 while (i < N) { in rebuildList() 478 N--; in rebuildList() 482 if (N > 1) { in rebuildList() 520 for (int i = 1; i < N; i++) { in rebuildList() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidSpellCheckerSession.java | 51 final int N = ssi.getSuggestionsCount(); in fixWronglyInvalidatedWordWithSingleQuote() local 56 for (int i = 0; i < N; ++i) { in fixWronglyInvalidatedWordWithSingleQuote() 105 final int suggestionsSize = N + additionalSize; in fixWronglyInvalidatedWordWithSingleQuote() 110 for (i = 0; i < N; ++i) { in fixWronglyInvalidatedWordWithSingleQuote() 116 newOffsets[i] = additionalOffsets.get(i - N); in fixWronglyInvalidatedWordWithSingleQuote() 117 newLengths[i] = additionalLengths.get(i - N); in fixWronglyInvalidatedWordWithSingleQuote() 118 newSuggestionsInfos[i] = additionalSuggestionsInfos.get(i - N); in fixWronglyInvalidatedWordWithSingleQuote()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | defines.h | 42 template <typename T, int N> 43 char (&ArraySizeHelper(T (&array)[N]))[N]; 121 const int N = intArrayToCharArray(word, length, charBuf, NELEMS(charBuf)); in dumpWordInfo() local 122 if (N > 1) { in dumpWordInfo() 129 const int N = intArrayToCharArray(word, length, charBuf, NELEMS(charBuf)); in dumpWord() local 130 if (N > 1) { in dumpWord()
|
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/ |
D | MockObserverNode.java | 84 int N = mChildren.size(); in addObserver() local 85 for (int i = 0; i < N; i++) { in addObserver() 127 int N = mObservers.size(); in notifyMyObservers() local 128 for (int i = 0; i < N; i++) { in notifyMyObservers() 157 int N = mChildren.size(); in notifyMyObservers() local 158 for (int i = 0; i < N; i++) { in notifyMyObservers()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | LauncherModel.java | 1673 int N = workspaceItems.size(); in bindWorkspaceItems() local 1674 for (int i = 0; i < N; i += ITEMS_CHUNK) { in bindWorkspaceItems() 1676 final int chunkSize = (i+ITEMS_CHUNK <= N) ? ITEMS_CHUNK : (N-i); in bindWorkspaceItems() 1711 N = appWidgets.size(); in bindWorkspaceItems() 1712 for (int i = 0; i < N; i++) { in bindWorkspaceItems() 1912 int N = Integer.MAX_VALUE; in loadAllAppsByBatch() local 1917 while (i < N && !mStopped) { in loadAllAppsByBatch() 1928 N = apps.size(); in loadAllAppsByBatch() 1930 Log.d(TAG, "queryIntentActivities got " + N + " apps"); in loadAllAppsByBatch() 1932 if (N == 0) { in loadAllAppsByBatch() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WeightWatcher.java | 69 final int N = getChildCount(); 70 if (pids.length != N) initViews(); 71 else for (int i=0; i<N; i++) { 252 final int N = mMemInfo.pss.length; in onDraw() local 253 final float barStep = (float) w / N; in onDraw() 259 for (i=0; i<N; i++) { in onDraw()
|
D | Stats.java | 165 final int N = mHistogram.size(); in saveStats() local 166 stats.writeInt(N); in saveStats() 167 for (int i=0; i<N; i++) { in saveStats() 196 final int N = stats.readInt(); in loadStats() local 197 for (int i=0; i<N; i++) { in loadStats()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcStatsEntry.java | 86 final int N = in.readInt(); in ProcStatsEntry() local 87 if (N > 0) { in ProcStatsEntry() 88 mServices.ensureCapacity(N); in ProcStatsEntry() 89 for (int i=0; i<N; i++) { in ProcStatsEntry() 293 final int N = mServices.size(); in writeToParcel() local 294 dest.writeInt(N); in writeToParcel() 295 for (int i=0; i<N; i++) { in writeToParcel()
|
D | ProcessStatsUi.java | 625 for (int ipkg=0, N=mStats.mPackages.getMap().size(); ipkg<N; ipkg++) { in refreshStats() 665 for (int ip=0, N=mStats.mPackages.getMap().size(); ip<N; ip++) { in refreshStats() 720 for (int i=0, N=(entries != null ? entries.size() : 0); i<N; i++) { in refreshStats()
|
D | InstalledAppDetails.java | 863 final int N = pnames.size(); in refreshUi() local 864 if (N > 0) { in refreshUi() 867 if (N == 1) { in refreshUi() 869 } else if (N == 2) { in refreshUi() 873 appListStr = pnames.get(N-2).toString(); in refreshUi() 874 for (int i=N-3; i>=0; i--) { in refreshUi() 879 appListStr, pnames.get(N-1)); in refreshUi()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | StringUtils.java | 452 final int N = codePointCount(s); in isEmptyStringOrWhiteSpaces() local 453 for (int i = 0; i < N; ++i) { in isEmptyStringOrWhiteSpaces() 481 final int N = hexString.length(); in hexStringToByteArray() local 482 if (N % 2 != 0) { in hexStringToByteArray() 484 + " Length = " + N); in hexStringToByteArray() 486 final byte[] bytes = new byte[N / 2]; in hexStringToByteArray() 487 for (int i = 0; i < N; i += 2) { in hexStringToByteArray()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 257 final int N = IMAGE_CACHE_SIZE; in fireDataChange() local 258 int fromIndex[] = new int[N]; in fireDataChange() 261 Path oldPaths[] = new Path[N]; in fireDataChange() 262 System.arraycopy(mPaths, 0, oldPaths, 0, N); in fireDataChange() 265 for (int i = 0; i < N; ++i) { in fireDataChange() 270 for (int i = 0; i < N; i++) { in fireDataChange() 279 for (j = 0; j < N; j++) { in fireDataChange() 284 fromIndex[i] = (j < N) ? j - SCREEN_NAIL_MAX : Integer.MAX_VALUE; in fireDataChange()
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | DashboardContainerView.java | 49 final int N = getChildCount(); in onMeasure() local 54 for (int i = 0; i < N; ++i) { in onMeasure() 88 final int N = getChildCount(); in onLayout() local 96 for (int i = 0; i < N; ++i) { in onLayout()
|
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
D | ProgressBar.java | 315 final int N = background.getNumberOfLayers(); in tileify() local 316 Drawable[] outDrawables = new Drawable[N]; in tileify() 318 for (int i = 0; i < N; i++) { in tileify() 326 for (int i = 0; i < N; i++) { in tileify() 373 final int N = background.getNumberOfFrames(); in tileifyIndeterminate() local 377 for (int i = 0; i < N; i++) { in tileifyIndeterminate()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserBackupAgent.java | 122 int N = bookmarks.size(); in onRestore() local 124 if (DEBUG) Log.v(TAG, "Restoring " + N + " bookmarks"); in onRestore() 126 for (int i = 0; i < N; i++) { in onRestore() 144 Log.i(TAG, "Restored " + nUnique + " of " + N + " bookmarks"); in onRestore()
|
/packages/apps/Settings/src/com/android/settings/ |
D | MasterClear.java | 202 final int N = accounts.length; in loadAccountList() local 203 if (N == 0) { in loadAccountList() 206 accountsCount += N; in loadAccountList() 218 for (int i = 0; i < N; i++) { in loadAccountList()
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | int_array_view.h | 59 template <int N> 60 AK_FORCE_INLINE static IntArrayView fromFixedSizeArray(const int (&array)[N]) { in fromFixedSizeArray() argument 61 return IntArrayView(array, N); in fromFixedSizeArray()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | KeyboardView.java | 1419 final int N = ev.getHistorySize(); in addMovement() local 1420 for (int i=0; i<N; i++) { in addMovement() 1475 int N=0; in computeCurrentVelocity() local 1476 while (N < NUM_PAST) { in computeCurrentVelocity() 1477 if (pastTime[N] == 0) { in computeCurrentVelocity() 1480 N++; in computeCurrentVelocity() 1483 for (int i=1; i < N; i++) { in computeCurrentVelocity()
|