/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | GridLayout3.java | 65 TextView c = new TextView(context); in create() local 66 c.setTextSize(32); in create() 67 c.setText("Email setup"); in create() 68 p.addView(c, new LayoutParams(titleRow, centerInAllColumns)); in create() 71 TextView c = new TextView(context); in create() local 72 c.setTextSize(16); in create() 73 c.setText("You can configure email in a few simple steps:"); in create() 74 p.addView(c, new LayoutParams(introRow, leftAlignInAllColumns)); in create() 77 TextView c = new TextView(context); in create() local 78 c.setText("Email address:"); in create() [all …]
|
D | DateWidgets1.java | 70 final Calendar c = Calendar.getInstance(); in onCreate() local 71 mYear = c.get(Calendar.YEAR); in onCreate() 72 mMonth = c.get(Calendar.MONTH); in onCreate() 73 mDay = c.get(Calendar.DAY_OF_MONTH); in onCreate() 74 mHour = c.get(Calendar.HOUR_OF_DAY); in onCreate() 75 mMinute = c.get(Calendar.MINUTE); in onCreate() 150 private static String pad(int c) { in pad() argument 151 if (c >= 10) in pad() 152 return String.valueOf(c); in pad() 154 return "0" + String.valueOf(c); in pad()
|
D | List7.java | 63 Cursor c = getContentResolver().query(Phone.CONTENT_URI, in onCreate() local 65 startManagingCursor(c); in onCreate() 71 c, in onCreate() 82 Cursor c = (Cursor) parent.getItemAtPosition(position); in onItemSelected() local 83 int type = c.getInt(COLUMN_PHONE_TYPE); in onItemSelected() 84 String phone = c.getString(COLUMN_PHONE_NUMBER); in onItemSelected() 88 label = c.getString(COLUMN_PHONE_LABEL); in onItemSelected()
|
D | DateWidgets2.java | 61 private static String pad(int c) { in pad() argument 62 if (c >= 10) in pad() 63 return String.valueOf(c); in pad() 65 return "0" + String.valueOf(c); in pad()
|
D | List2.java | 37 Cursor c = getContentResolver().query(Contacts.CONTENT_URI, in onCreate() local 39 startManagingCursor(c); in onCreate() 45 c, in onCreate()
|
/development/apps/Development/src/com/android/development/ |
D | ConfigurationViewer.java | 33 Configuration c = getResources().getConfiguration(); in onCreate() local 41 + "fontScale=" + c.fontScale + "\n" in onCreate() 42 + "hardKeyboardHidden=" + c.hardKeyboardHidden + "\n" in onCreate() 43 + "keyboard=" + c.keyboard + "\n" in onCreate() 44 + "locale=" + c.locale + "\n" in onCreate() 45 + "mcc=" + c.mcc + "\n" in onCreate() 46 + "mnc=" + c.mnc + "\n" in onCreate() 47 + "navigation=" + c.navigation + "\n" in onCreate() 48 + "navigationHidden=" + c.navigationHidden + "\n" in onCreate() 49 + "orientation=" + c.orientation + "\n" in onCreate() [all …]
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/ |
D | CubeWallpaper1.java | 155 Canvas c = null; in drawFrame() local 157 c = holder.lockCanvas(); in drawFrame() 158 if (c != null) { in drawFrame() 160 drawCube(c); in drawFrame() 161 drawTouchPoint(c); in drawFrame() 164 if (c != null) holder.unlockCanvasAndPost(c); in drawFrame() 178 void drawCube(Canvas c) { in drawCube() argument 179 c.save(); in drawCube() 180 c.translate(mCenterX, mCenterY); in drawCube() 181 c.drawColor(0xff000000); in drawCube() [all …]
|
/development/tools/repo_diff/service/repodiff/repositories/ |
D | commit_test.go | 30 c, err := repositories.NewCommitRepository(fakeMappedTarget) 34 err = c.InsertCommitRows(fixtures) 41 c, _ := repositories.NewCommitRepository(fakeMappedTarget) 43 err := c.InsertCommitRows(fixtures) 47 timestamp, uid, _ := c.GetMostRecentOuterKey() 55 c, _ := repositories.NewCommitRepository(fakeMappedTarget) 61 c.InsertCommitRows(fixtures) 62 commitRows, err := c.GetMostRecentCommits() 68 c, _ := repositories.NewCommitRepository(testDiffTarget) 69 rows, err := c.GetMostRecentCommits() [all …]
|
D | commit.go | 38 func (c Commit) WithTimestampGenerator(t func() e.RepoTimestamp) Commit { 40 db: c.db, 41 target: c.target, 46 func (c Commit) InsertCommitRows(commitRows []e.AnalyzedCommitRow) error { 49 c.db, 63 c.target, 64 mappers.CommitRowsToPersistCols(commitRows, c.timestampGenerator()), 71 func (c Commit) GetMostRecentOuterKey() (int64, uuid.UUID, error) { 74 err := c.db.QueryRow( 78 c.target.UpstreamTarget, [all …]
|
/development/samples/Vault/tests/src/com/example/android/vault/ |
D | VaultProviderTest.java | 57 Cursor c; in testDeleteDirectory() local 73 c = mProvider.queryChildDocuments(DEFAULT_DOCUMENT_ID, null, (Bundle) null); in testDeleteDirectory() 74 assertContains(c, "file", "dir"); in testDeleteDirectory() 75 c = mProvider.queryChildDocuments(dir, null, (Bundle) null); in testDeleteDirectory() 76 assertContains(c, "dirfile", "dirdir"); in testDeleteDirectory() 81 c = mProvider.queryChildDocuments(DEFAULT_DOCUMENT_ID, null, (Bundle) null); in testDeleteDirectory() 82 assertContains(c, "file"); in testDeleteDirectory() 92 private static void assertContains(Cursor c, String... docs) { in assertContains() argument 94 while (c.moveToNext()) { in assertContains() 95 set.add(c.getString(c.getColumnIndex(Document.COLUMN_DISPLAY_NAME))); in assertContains()
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
D | MorseCodeConverter.java | 75 static long[] pattern(char c) { in pattern() argument 76 if (c >= 'A' && c <= 'Z') { in pattern() 77 return LETTERS[c - 'A']; in pattern() 79 if (c >= 'a' && c <= 'z') { in pattern() 80 return LETTERS[c - 'a']; in pattern() 82 else if (c >= '0' && c <= '9') { in pattern() 83 return NUMBERS[c - '0']; in pattern() 98 char c = str.charAt(i); in pattern() local 99 if (Character.isWhitespace(c)) { in pattern() 109 len += pattern(c).length; in pattern() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | BitmapPixels.java | 41 private static int getR32(int c) { return (c >> 0) & 0xFF; } in getR32() argument 43 private static int getG32(int c) { return (c >> 8) & 0xFF; } in getG32() argument 45 private static int getB32(int c) { return (c >> 16) & 0xFF; } in getB32() argument 47 private static int getA32(int c) { return (c >> 24) & 0xFF; } in getA32() argument 65 private static int mul255(int c, int a) { in mul255() argument 66 int prod = c * a + 128; in mul255() 73 private static int premultiplyColor(int c) { in premultiplyColor() argument 74 int r = Color.red(c); in premultiplyColor() 75 int g = Color.green(c); in premultiplyColor() 76 int b = Color.blue(c); in premultiplyColor() [all …]
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
D | ContactManager.java | 179 final Cursor c = resolver.query(DirtyQuery.CONTENT_URI, in getDirtyContacts() local 185 while (c.moveToNext()) { in getDirtyContacts() 186 final long rawContactId = c.getLong(DirtyQuery.COLUMN_RAW_CONTACT_ID); in getDirtyContacts() 187 final long serverContactId = c.getLong(DirtyQuery.COLUMN_SERVER_ID); in getDirtyContacts() 188 final boolean isDirty = "1".equals(c.getString(DirtyQuery.COLUMN_DIRTY)); in getDirtyContacts() 189 final boolean isDeleted = "1".equals(c.getString(DirtyQuery.COLUMN_DELETED)); in getDirtyContacts() 195 final long version = c.getLong(DirtyQuery.COLUMN_VERSION); in getDirtyContacts() 213 if (c != null) { in getDirtyContacts() 214 c.close(); in getDirtyContacts() 337 final Cursor c = in updateContact() local [all …]
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/ |
D | CubeWallpaper2.java | 222 Canvas c = null; in drawFrame() local 224 c = holder.lockCanvas(); in drawFrame() 225 if (c != null) { in drawFrame() 227 drawCube(c); in drawFrame() 228 drawTouchPoint(c); in drawFrame() 231 if (c != null) holder.unlockCanvasAndPost(c); in drawFrame() 240 void drawCube(Canvas c) { in drawCube() argument 241 c.save(); in drawCube() 242 c.translate(mCenterX, mCenterY); in drawCube() 243 c.drawColor(0xff000000); in drawCube() [all …]
|
/development/vndk/tools/sourcedr/ninja/tests/testdata/ |
D | default.ninja | 2 command = gcc -c -o $outs $ins 4 build foo.o: cc foo.c 6 build bar.o: cc bar.c
|
D | global_binding.ninja | 3 c = 3 5 d = $a $b $c
|
/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/ |
D | AdvertiserFragment.java | 139 private static Intent getServiceIntent(Context c) { in getServiceIntent() argument 140 return new Intent(c, AdvertiserService.class); in getServiceIntent() 162 Context c = getActivity(); in startAdvertising() local 163 c.startService(getServiceIntent(c)); in startAdvertising() 170 Context c = getActivity(); in stopAdvertising() local 171 c.stopService(getServiceIntent(c)); in stopAdvertising()
|
/development/samples/Snake/src/com/example/android/snake/ |
D | SnakeView.java | 192 for (Coordinate c : cvec) { in coordArrayListToArray() 193 rawArray[i++] = c.x; in coordArrayListToArray() 194 rawArray[i++] = c.y; in coordArrayListToArray() 231 Coordinate c = new Coordinate(rawArray[index], rawArray[index + 1]); in coordArrayToArrayList() local 232 coordArrayList.add(c); in coordArrayToArrayList() 444 for (Coordinate c : mAppleList) { in updateApples() 445 setTile(YELLOW_STAR, c.x, c.y); in updateApples() 494 Coordinate c = mSnakeTrail.get(snakeindex); in updateSnake() local 495 if (c.equals(newHead)) { in updateSnake() 504 Coordinate c = mAppleList.get(appleindex); in updateSnake() local [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | PickContact.java | 92 Cursor c = null; in onActivityResult() local 94 c = getContentResolver().query(uri, new String[] { BaseColumns._ID }, in onActivityResult() 96 if (c != null && c.moveToFirst()) { in onActivityResult() 97 int id = c.getInt(0); in onActivityResult() 106 if (c != null) { in onActivityResult() 107 c.close(); in onActivityResult()
|
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/ |
D | AccountStorage.java | 39 public static void SetAccount(Context c, String s) { in SetAccount() argument 42 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(c); in SetAccount() 48 public static String GetAccount(Context c) { in GetAccount() argument 51 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(c); in GetAccount()
|
/development/tools/repo_diff/service/repodiff/mappers/ |
D | mappers.go | 120 func commitRowToPersistCols(c e.AnalyzedCommitRow, uuidBytes string, timestamp e.RepoTimestamp, row… 125 c.Commit, 126 c.DownstreamProject, 127 c.Author, 128 interactors.FilterNoUnicode(c.Subject), 129 c.Type, 251 var c e.AnalyzedCommitRow 259 &c.Commit, 260 &c.DownstreamProject, 261 &c.Author, [all …]
|
D | csv_test.go | 7 c "repodiff/constants" packageName 20 Type: c.Global, 59 Type: c.Global,
|
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
D | InsecureSHA1PRNGKeyDerivator.java | 441 int c = arrW[HASH_OFFSET +2]; 464 ( ( b & c) | ((~b) & d) ) + 467 d = c; 468 c = ( b<<30 ) | ( b>>>2 ) ; 474 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; 476 d = c; 477 c = ( b<<30 ) | ( b>>>2 ) ; 483 temp = (( a<<5 ) | ( a>>>27 )) + ((b & c) | (b & d) | (c & d)) + 486 d = c; 487 c = ( b<<30 ) | ( b>>>2 ) ; [all …]
|
/development/tools/idegen/src/ |
D | IntelliJ.java | 32 public static void generateFrom(Configuration c) throws IOException { in generateFrom() argument 33 File templatesDirectory = new File(c.toolDirectory, "templates"); in generateFrom() 40 for (File sourceRoot : c.sourceRoots) { in generateFrom() 53 for (File excludedDir : c.excludesUnderSourceRoots()) { in generateFrom() 77 for (File jar : c.jarFiles) { in generateFrom()
|
D | Eclipse.java | 35 public static void generateFrom(Configuration c) throws IOException { in generateFrom() argument 67 OUTER: for (File sourceRoot : c.sourceRoots) { in generateFrom() 83 CharSequence excluding = constructExcluding(sourceRoot, c); in generateFrom() 95 for (File jar : c.jarFiles) { in generateFrom() 117 Configuration c) { in constructExcluding() argument 122 SortedSet<File> nextRoots = c.sourceRoots.tailSet(sourceRoot); in constructExcluding() 146 SortedSet<File> excludedDirs = c.excludedDirs.tailSet(sourceRoot); in constructExcluding()
|