/packages/apps/Gallery2/src/com/android/photos/data/ |
D | SparseArrayBitmapPool.java | 85 private void unlinkAndRecycleNode(Node n, boolean recycleBitmap) { in unlinkAndRecycleNode() argument 87 if (n.prevInBucket != null) { in unlinkAndRecycleNode() 89 n.prevInBucket.nextInBucket = n.nextInBucket; in unlinkAndRecycleNode() 92 mStore.put(n.bitmap.getWidth(), n.nextInBucket); in unlinkAndRecycleNode() 94 if (n.nextInBucket != null) { in unlinkAndRecycleNode() 96 n.nextInBucket.prevInBucket = n.prevInBucket; in unlinkAndRecycleNode() 100 if (n.prevInPool != null) { in unlinkAndRecycleNode() 102 n.prevInPool.nextInPool = n.nextInPool; in unlinkAndRecycleNode() 105 mPoolNodesHead = n.nextInPool; in unlinkAndRecycleNode() 107 if (n.nextInPool != null) { in unlinkAndRecycleNode() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
D | Builder.java | 69 Node n = it.nextNode(); in buildAddress() local 70 if (n instanceof ASTaddr_spec) { in buildAddress() 71 return buildAddrSpec((ASTaddr_spec)n); in buildAddress() 73 else if (n instanceof ASTangle_addr) { in buildAddress() 74 return buildAngleAddr((ASTangle_addr)n); in buildAddress() 76 else if (n instanceof ASTphrase) { in buildAddress() 77 String name = buildString((ASTphrase)n, false); in buildAddress() 101 Node n = it.nextNode(); in buildGroupBody() local 102 if (n instanceof ASTmailbox) in buildGroupBody() 103 results.add(buildMailbox((ASTmailbox)n)); in buildGroupBody() [all …]
|
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/ |
D | Builder.java | 69 Node n = it.nextNode(); in buildAddress() local 70 if (n instanceof ASTaddr_spec) { in buildAddress() 71 return buildAddrSpec((ASTaddr_spec)n); in buildAddress() 73 else if (n instanceof ASTangle_addr) { in buildAddress() 74 return buildAngleAddr((ASTangle_addr)n); in buildAddress() 76 else if (n instanceof ASTphrase) { in buildAddress() 77 String name = buildString((ASTphrase)n, false); in buildAddress() 101 Node n = it.nextNode(); in buildGroupBody() local 102 if (n instanceof ASTmailbox) in buildGroupBody() 103 results.add(buildMailbox((ASTmailbox)n)); in buildGroupBody() [all …]
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
D | Utils.java | 41 public static int nextPowerOf2(int n) { in nextPowerOf2() argument 42 if (n <= 0 || n > (1 << 30)) throw new IllegalArgumentException("n is invalid: " + n); in nextPowerOf2() 43 n -= 1; in nextPowerOf2() 44 n |= n >> 16; in nextPowerOf2() 45 n |= n >> 8; in nextPowerOf2() 46 n |= n >> 4; in nextPowerOf2() 47 n |= n >> 2; in nextPowerOf2() 48 n |= n >> 1; in nextPowerOf2() 49 return n + 1; in nextPowerOf2() 55 public static int prevPowerOf2(int n) { in prevPowerOf2() argument [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | nj_str.c | 33 NJ_CHAR *nj_strncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n) { in nj_strncpy() argument 38 while (n != 0) { in nj_strncpy() 40 while (n != 0) { in nj_strncpy() 42 n--; in nj_strncpy() 48 n--; in nj_strncpy() 76 NJ_INT16 nj_strncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n) { in nj_strncmp() argument 78 while (n != 0) { in nj_strncmp() 85 n--; in nj_strncmp() 102 NJ_INT16 nj_charncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n) { in nj_charncmp() argument 106 while (n != 0) { in nj_charncmp() [all …]
|
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/ |
D | JJTAddressListParserState.java | 43 void pushNode(Node n) { in pushNode() argument 44 nodes.push(n); in pushNode() 69 void clearNodeScope(Node n) { in clearNodeScope() argument 77 void openNodeScope(Node n) { in openNodeScope() argument 80 n.jjtOpen(); in openNodeScope() 88 void closeNodeScope(Node n, int num) { in closeNodeScope() argument 92 c.jjtSetParent(n); in closeNodeScope() 93 n.jjtAddChild(c, num); in closeNodeScope() 95 n.jjtClose(); in closeNodeScope() 96 pushNode(n); in closeNodeScope() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
D | JJTAddressListParserState.java | 43 void pushNode(Node n) { in pushNode() argument 44 nodes.push(n); in pushNode() 69 void clearNodeScope(Node n) { in clearNodeScope() argument 77 void openNodeScope(Node n) { in openNodeScope() argument 80 n.jjtOpen(); in openNodeScope() 88 void closeNodeScope(Node n, int num) { in closeNodeScope() argument 92 c.jjtSetParent(n); in closeNodeScope() 93 n.jjtAddChild(c, num); in closeNodeScope() 95 n.jjtClose(); in closeNodeScope() 96 pushNode(n); in closeNodeScope() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PhonebookEntry.java | 43 Name n = ((Name) o); in equals() local 44 return (family == n.family || family != null && family.equals(n.family)) && in equals() 45 (given == n.given || given != null && given.equals(n.given)) && in equals() 46 (middle == n.middle || middle != null && middle.equals(n.middle)) && in equals() 47 (prefix == n.prefix || prefix != null && prefix.equals(n.prefix)) && in equals() 48 (suffix == n.suffix || suffix != null && suffix.equals(n.suffix)); in equals() 127 VCardEntry.NameData n = v.getNameData(); in PhonebookEntry() local 128 name.family = n.getFamily(); in PhonebookEntry() 129 name.given = n.getGiven(); in PhonebookEntry() 130 name.middle = n.getMiddle(); in PhonebookEntry() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationStation.java | 226 private static String getTitleString(Notification n) { in getTitleString() argument 228 if (n.extras != null) { in getTitleString() 229 title = n.extras.getCharSequence(Notification.EXTRA_TITLE); in getTitleString() 231 title = n.extras.getCharSequence(Notification.EXTRA_TEXT); in getTitleString() 234 if (TextUtils.isEmpty(title) && !TextUtils.isEmpty(n.tickerText)) { in getTitleString() 235 title = n.tickerText; in getTitleString() 273 final Notification n = sbn.getNotification(); in loadNotifications() local 277 info.icon = loadIconDrawable(info.pkg, info.user, n.icon); in loadNotifications() 280 info.title = getTitleString(n); in loadNotifications() 285 info.priority = n.priority; in loadNotifications() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Utils.java | 79 public static int nextPowerOf2(int n) { in nextPowerOf2() argument 80 if (n <= 0 || n > (1 << 30)) throw new IllegalArgumentException("n is invalid: " + n); in nextPowerOf2() 81 n -= 1; in nextPowerOf2() 82 n |= n >> 16; in nextPowerOf2() 83 n |= n >> 8; in nextPowerOf2() 84 n |= n >> 4; in nextPowerOf2() 85 n |= n >> 2; in nextPowerOf2() 86 n |= n >> 1; in nextPowerOf2() 87 return n + 1; in nextPowerOf2() 93 public static int prevPowerOf2(int n) { in prevPowerOf2() argument [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
D | HtmlTree.java | 79 void addNode(HtmlDocument.Node n, int nodeNum, int endNum); in addNode() argument 222 for (int n = fromNode; n < toNode; n++) { in getHtml() 223 HtmlDocument.Node node = nodes.get(n); in getHtml() 272 for (int n = fromNode; n < toNode; n++) { in getHtmlChunks() 273 HtmlDocument.Node node = nodes.get(n); in getHtmlChunks() 395 for (int n = startNode; n < endNode;) { in createBlocks() 398 int nBegin = begins.get(n); in createBlocks() 399 int nEnd = ends.get(n); in createBlocks() 403 if (nBegin >= n && nEnd <= endNode && in createBlocks() 404 canBeginBlockAt(n)) { in createBlocks() [all …]
|
D | HtmlDocument.java | 60 for (Node n : nodes) { in toHTML() 61 n.toHTML(sb); in toHTML() 69 for (Node n : nodes) { in toXHTML() 70 n.toXHTML(sb); in toXHTML() 82 for (Node n : nodes) { in toOriginalHTML() 83 n.toOriginalHTML(sb); in toOriginalHTML() 906 Text visitText(Text n); in visitText() argument 909 Tag visitTag(Tag n); in visitTag() argument 912 EndTag visitEndTag(EndTag n); in visitEndTag() argument 915 Comment visitComment(Comment n); in visitComment() argument [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
D | AutoCloseInputStream.java | 75 int n = in.read(); in read() local 76 if (n == -1) { in read() 79 return n; in read() 92 int n = in.read(b); in read() local 93 if (n == -1) { in read() 96 return n; in read() 111 int n = in.read(b, off, len); in read() local 112 if (n == -1) { in read() 115 return n; in read()
|
D | TeeInputStream.java | 124 int n = super.read(bts, st, end); in read() local 125 if (n != -1) { in read() 126 branch.write(bts, st, n); in read() 128 return n; in read() 140 int n = super.read(bts); in read() local 141 if (n != -1) { in read() 142 branch.write(bts, 0, n); in read() 144 return n; in read()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | SplineMath.java | 7 SplineMath(int n) { in SplineMath() argument 8 mPoints = new double[n][2]; in SplineMath() 17 public float[][] calculatetCurve(int n) { in calculatetCurve() argument 18 float[][] curve = new float[n][2]; in calculatetCurve() 113 int n = points.length; in solveSystem() local 114 double[][] system = new double[n][3]; in solveSystem() 115 double[] result = new double[n]; // d in solveSystem() 116 double[] solution = new double[n]; // returned coefficients in solveSystem() 118 system[n - 1][1] = 1; in solveSystem() 125 for (int i = 1; i < n - 1; i++) { in solveSystem() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | MoreKeysKeyboard.java | 156 /* package */int getColumnPos(final int n) { in getColumnPos() argument 157 return mIsMoreKeysFixedOrder ? getFixedOrderColumnPos(n) : getAutomaticColumnPos(n); in getColumnPos() 160 private int getFixedOrderColumnPos(final int n) { in getFixedOrderColumnPos() argument 161 final int col = n % mNumColumns; in getFixedOrderColumnPos() 162 final int row = n / mNumColumns; in getFixedOrderColumnPos() 180 private int getAutomaticColumnPos(final int n) { in getAutomaticColumnPos() argument 181 final int col = n % mNumColumns; in getAutomaticColumnPos() 182 final int row = n / mNumColumns; in getAutomaticColumnPos() 234 public int getX(final int n, final int row) { in getX() argument 235 final int x = getColumnPos(n) * mColumnWidth + getDefaultKeyCoordX(); in getX() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLES11IdImpl.java | 38 public void glGenBuffers(int n, int[] buffers, int offset) { in glGenBuffers() argument 40 while (n-- > 0) { in glGenBuffers() 41 buffers[offset + n] = sNextId++; in glGenBuffers() 47 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { in glDeleteTextures() argument 49 gl.glDeleteTextures(n, textures, offset); in glDeleteTextures() 54 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument 56 gl.glDeleteBuffers(n, buffers, offset); in glDeleteBuffers() 61 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { in glDeleteFramebuffers() argument 63 gl11ep.glDeleteFramebuffersOES(n, buffers, offset); in glDeleteFramebuffers()
|
D | GLES20IdImpl.java | 19 public void glGenBuffers(int n, int[] buffers, int offset) { in glGenBuffers() argument 20 GLES20.glGenBuffers(n, buffers, offset); in glGenBuffers() 25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { in glDeleteTextures() argument 26 GLES20.glDeleteTextures(n, textures, offset); in glDeleteTextures() 32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument 33 GLES20.glDeleteBuffers(n, buffers, offset); in glDeleteBuffers() 38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { in glDeleteFramebuffers() argument 39 GLES20.glDeleteFramebuffers(n, buffers, offset); in glDeleteFramebuffers()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | Path.java | 113 int n = 0; in split() local 115 n++; in split() 117 String[] segments = new String[n]; in split() 118 int i = n - 1; in split() 127 int n = s.length(); in split() local 128 if (n == 0) return new String[0]; in split() 134 while (i < n) { in split() 137 for (j = i; j < n; j++) { in split() 157 int n = s.length(); in splitSequence() local 158 if (s.charAt(0) != '{' || s.charAt(n-1) != '}') { in splitSequence() [all …]
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | GLES20IdImpl.java | 19 public void glGenBuffers(int n, int[] buffers, int offset) { in glGenBuffers() argument 20 GLES20.glGenBuffers(n, buffers, offset); in glGenBuffers() 25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { in glDeleteTextures() argument 26 GLES20.glDeleteTextures(n, textures, offset); in glDeleteTextures() 32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument 33 GLES20.glDeleteBuffers(n, buffers, offset); in glDeleteBuffers() 38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { in glDeleteFramebuffers() argument 39 GLES20.glDeleteFramebuffers(n, buffers, offset); in glDeleteFramebuffers()
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | BoundedRational.java | 43 public BoundedRational(BigInteger n, BigInteger d) { in BoundedRational() argument 44 mNum = n; in BoundedRational() 48 public BoundedRational(BigInteger n) { in BoundedRational() argument 49 mNum = n; in BoundedRational() 53 public BoundedRational(long n, long d) { in BoundedRational() argument 54 mNum = BigInteger.valueOf(n); in BoundedRational() 58 public BoundedRational(long n) { in BoundedRational() argument 59 mNum = BigInteger.valueOf(n); in BoundedRational() 500 private static long b10Log(BigInteger n) { in b10Log() argument 503 while (n.mod(BigInteger.TEN).signum() == 0) { in b10Log() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | ngram_context.cpp | 74 const CodePointArrayView NgramContext::getNthPrevWordCodePoints(const size_t n) const { in getNthPrevWordCodePoints() 75 if (n <= 0 || n > mPrevWordCount) { in getNthPrevWordCodePoints() 78 return CodePointArrayView(mPrevWordCodePoints[n - 1], mPrevWordCodePointCount[n - 1]); in getNthPrevWordCodePoints() 81 bool NgramContext::isNthPrevWordBeginningOfSentence(const size_t n) const { in isNthPrevWordBeginningOfSentence() 82 if (n <= 0 || n > mPrevWordCount) { in isNthPrevWordBeginningOfSentence() 85 return mIsBeginningOfSentence[n - 1]; in isNthPrevWordBeginningOfSentence()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | filewritestream.h | 42 void PutN(char c, size_t n) { in PutN() argument 44 while (n > avail) { in PutN() 48 n -= avail; in PutN() 52 if (n > 0) { in PutN() 53 std::memset(current_, c, n); in PutN() 54 current_ += n; in PutN() 89 inline void PutN(FileWriteStream& stream, char c, size_t n) { in PutN() argument 90 stream.PutN(c, n); in PutN()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_rob_image_homography.cpp | 281 …ouble **JtJ_ref,double *min_Jtf,double **JtJ_temp_ref,double *min_Jtf_temp,int n,int *fetch_vector) in db_RobImageHomographyFetchJacobian() argument 286 for(i=0;i<n;i++) in db_RobImageHomographyFetchJacobian() 292 for(j=i;j<n;j++) in db_RobImageHomographyFetchJacobian() 299 …uble **JtJ_ref,double *min_Jtf,double **JtJ_temp_ref,double *min_Jtf_temp,double **JE_dx_ref,int n) in db_RobImageHomographyMultiplyJacobian() argument 306 db_MultiplyMatricesAB(JtJ_JE_ref,JtJ_temp_ref,JE_dx_ref,9,9,n); in db_RobImageHomographyMultiplyJacobian() 307 db_UpperMultiplyMatricesAtB(JtJ_ref,JE_dx_ref,JtJ_JE_ref,n,9,n); in db_RobImageHomographyMultiplyJacobian() 308 db_MultiplyMatrixVectorAtb(min_Jtf,JE_dx_ref,min_Jtf_temp,n,9); in db_RobImageHomographyMultiplyJacobian() 420 int i,j,fetch_vector[8],n; in db_RobImageHomography_Jacobians_Generic() local 439 n=4; in db_RobImageHomography_Jacobians_Generic() 443 … db_RobImageHomographyMultiplyJacobian(JtJ_ref,min_Jtf,JtJ_temp_ref,min_Jtf_temp,JE_dx_ref,n); in db_RobImageHomography_Jacobians_Generic() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | misctest.cpp | 85 inline unsigned CountDecimalDigit_naive(unsigned n) { in CountDecimalDigit_naive() argument 87 while (n >= 10) { in CountDecimalDigit_naive() 88 n /= 10; in CountDecimalDigit_naive() 94 inline unsigned CountDecimalDigit_enroll4(unsigned n) { in CountDecimalDigit_enroll4() argument 96 while (n >= 10000) { in CountDecimalDigit_enroll4() 97 n /= 10000u; in CountDecimalDigit_enroll4() 100 if (n < 10) return count; in CountDecimalDigit_enroll4() 101 if (n < 100) return count + 1; in CountDecimalDigit_enroll4() 102 if (n < 1000) return count + 2; in CountDecimalDigit_enroll4() 106 inline unsigned CountDecimalDigit64_enroll4(uint64_t n) { in CountDecimalDigit64_enroll4() argument [all …]
|