Home
last modified time | relevance | path

Searched refs:N (Results 1 – 25 of 74) sorted by relevance

123

/packages/apps/Gallery2/jni/filters/
Dkmeans.h25 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 …]
Dcontrast.c22 int N = 255; in clamp() local
24 c -= N; in clamp()
26 c += N; in clamp()
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp30 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/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp30 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/
DMatrixUtilsTests.java57 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/
DBluetoothScanner.java230 final int N = mPresentDevices.size(); in startListening() local
231 for (int i=0; i<N; i++) { in startListening()
389 final int N = mPresentDevices.size(); in onReceive() local
390 for (int i=0; i<N; i++) { in onReceive()
433 final int N = mPresentDevices.size(); in onReceive() local
434 for (int i=N-1; i>=0; i--) { in onReceive()
469 final int N = mClients.size(); in sendScanningStarted() local
470 for (int i = 0; i < N; i++) { in sendScanningStarted()
478 final int N = mClients.size(); in sendScanningStopped() local
481 for (int i = N - 1; i >= 0; --i) { in sendScanningStopped()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DSmoothingUtils.java52 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/
DResolverActivity.java362 final int N = mListHelper.mList.size(); in onIntentSelected() local
363 ComponentName[] set = new ComponentName[N]; in onIntentSelected()
365 for (int i = 0; i < N; i++) { in onIntentSelected()
458 int N; in rebuildList() local
459 if ((currentResolveList != null) && ((N = currentResolveList.size()) > 0)) { in rebuildList()
463 for (int i = 1; i < N; i++) { in rebuildList()
473 while (i < N) { in rebuildList()
475 N--; in rebuildList()
479 if (N > 1) { in rebuildList()
517 for (int i = 1; i < N; i++) { in rebuildList()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Ddefines.h42 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 > 0) { in dumpWordInfo()
129 const int N = intArrayToCharArray(word, length, charBuf, NELEMS(charBuf)); in dumpWord() local
130 if (N > 1) { in dumpWord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerSession.java54 final int N = ssi.getSuggestionsCount(); in fixWronglyInvalidatedWordWithSingleQuote() local
59 for (int i = 0; i < N; ++i) { in fixWronglyInvalidatedWordWithSingleQuote()
108 final int suggestionsSize = N + additionalSize; in fixWronglyInvalidatedWordWithSingleQuote()
113 for (i = 0; i < N; ++i) { in fixWronglyInvalidatedWordWithSingleQuote()
119 newOffsets[i] = additionalOffsets.get(i - N); in fixWronglyInvalidatedWordWithSingleQuote()
120 newLengths[i] = additionalLengths.get(i - N); in fixWronglyInvalidatedWordWithSingleQuote()
121 newSuggestionsInfos[i] = additionalSuggestionsInfos.get(i - N); in fixWronglyInvalidatedWordWithSingleQuote()
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
DMockObserverNode.java84 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/Settings/src/com/android/settings/applications/
DProcStatsEntry.java101 final int N = in.readInt(); in ProcStatsEntry() local
102 if (N > 0) { in ProcStatsEntry()
103 mServices.ensureCapacity(N); in ProcStatsEntry()
104 for (int i=0; i<N; i++) { in ProcStatsEntry()
283 final int N = mServices.size(); in writeToParcel() local
284 dest.writeInt(N); in writeToParcel()
285 for (int i=0; i<N; i++) { in writeToParcel()
DProcStatsPackageEntry.java90 final int N = mEntries.size(); in updateMetrics() local
91 for (int i=0; i < N; i++) { in updateMetrics()
107 mAvgBgMem /= N; in updateMetrics()
108 mAvgRunMem /= N; in updateMetrics()
/packages/apps/Launcher3/src/com/android/launcher3/
DWeightWatcher.java71 final int N = getChildCount();
72 if (pids.length != N) initViews();
73 else for (int i=0; i<N; i++) {
254 final int N = mMemInfo.pss.length; in onDraw() local
255 final float barStep = (float) w / N; in onDraw()
261 for (i=0; i<N; i++) { in onDraw()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java1673 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/Settings/src/com/android/settings/dashboard/
DDashboardTile.java161 final int N = userHandle.size(); in writeToParcel() local
162 dest.writeInt(N); in writeToParcel()
163 for (int i = 0; i < N; i++) { in writeToParcel()
182 final int N = in.readInt(); in readFromParcel() local
183 for (int i = 0; i < N; i++) { in readFromParcel()
DDashboardContainerView.java49 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/inputmethods/LatinIME/native/jni/src/utils/
Dint_array_view.h61 template <size_t N>
62 AK_FORCE_INLINE static IntArrayView fromArray(const std::array<int, N> &array) { in fromArray()
112 template <size_t N>
113 void copyToArray(std::array<int, N> *const buffer, const size_t offset) const { in copyToArray()
114 ASSERT(mSize + offset <= N); in copyToArray()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DStringUtils.java544 final int N = codePointCount(s); in isEmptyStringOrWhiteSpaces() local
545 for (int i = 0; i < N; ++i) { in isEmptyStringOrWhiteSpaces()
575 final int N = hexString.length(); in hexStringToByteArray() local
576 if (N % 2 != 0) { in hexStringToByteArray()
578 + " Length = " + N); in hexStringToByteArray()
580 final byte[] bytes = new byte[N / 2]; in hexStringToByteArray()
581 for (int i = 0; i < N; i += 2) { in hexStringToByteArray()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeAutomationSettings.java248 final int N = ALL_DAYS.length; in computeContiguousDayRanges() local
249 if (daySet.size() == N) { in computeContiguousDayRanges()
253 for (int i = 0; i < N; i++) { in computeContiguousDayRanges()
258 while (daySet.contains(ALL_DAYS[(i + end + 1) % N])) { in computeContiguousDayRanges()
261 if (!(i == 0 && daySet.contains(ALL_DAYS[N - 1]))) { in computeContiguousDayRanges()
265 dayString(ALL_DAYS[(i + end) % N])); in computeContiguousDayRanges()
/packages/apps/Settings/src/com/android/settings/
DCheckableLinearLayout.java40 final int N = getChildCount(); in setEnabled() local
41 for (int i = 0; i < N; i++) { in setEnabled()
63 final int N = getChildCount(); in updateChecked() local
64 for (int i = 0; i < N; i++) { in updateChecked()
DMasterClear.java216 final int N = accounts.length; in loadAccountList() local
217 if (N == 0) { in loadAccountList()
220 accountsCount += N; in loadAccountList()
232 for (int i = 0; i < N; i++) { in loadAccountList()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java257 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/Browser/src/com/android/browser/
DBrowserBackupAgent.java122 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/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dngram_context.h48 template<size_t N>
51 WordIdArray<N> *const prevWordIdBuffer, const bool tryLowerCaseSearch) const { in getPrevWordIds()
52 for (size_t i = 0; i < std::min(mPrevWordCount, N); ++i) { in getPrevWordIds()

123