/development/samples/SampleSyncAdapter/samplesyncadapter_server/model/ |
D | datastore.py | 19 from google.appengine.ext import db 22 class Contact(db.Model): 25 handle = db.StringProperty(required=True) 26 firstname = db.StringProperty() 27 lastname = db.StringProperty() 28 phone_home = db.PhoneNumberProperty() 29 phone_office = db.PhoneNumberProperty() 30 phone_mobile = db.PhoneNumberProperty() 31 email = db.EmailProperty() 32 status = db.TextProperty() [all …]
|
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/ |
D | LocationDbHelper.java | 17 package com.example.android.wearable.speedtracker.db; 69 public void onCreate(SQLiteDatabase db) { in onCreate() argument 70 db.execSQL(SQL_CREATE_ENTRIES); in onCreate() 74 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 75 db.execSQL(SQL_DELETE_ENTRIES); in onUpgrade() 76 onCreate(db); in onUpgrade() 88 SQLiteDatabase db = getWritableDatabase(); in insert() local 98 return db.insert(TABLE_NAME, "null", values); in insert() 107 SQLiteDatabase db = getReadableDatabase(); in read() local 119 Cursor cursor = db.query( in read() [all …]
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/ |
D | FeedProvider.java | 28 import com.example.android.common.db.SelectionBuilder; 94 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); in query() local 106 Cursor c = builder.query(db, projection, sortOrder); in query() 123 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in insert() local 124 assert db != null; in insert() 129 long id = db.insertOrThrow(FeedContract.Entry.TABLE_NAME, null, values); in insert() 150 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in delete() local 157 .delete(db); in delete() 164 .delete(db); in delete() 182 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in update() local [all …]
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
D | DataProvider.java | 154 private void dropTables(SQLiteDatabase db) { in dropTables() argument 157 db.execSQL("DROP TABLE IF EXISTS " + DataProviderContract.PICTUREURL_TABLE_NAME); in dropTables() 158 db.execSQL("DROP TABLE IF EXISTS " + DataProviderContract.DATE_TABLE_NAME); in dropTables() 169 public void onCreate(SQLiteDatabase db) { in onCreate() argument 171 db.execSQL(CREATE_PICTUREURL_TABLE_SQL); in onCreate() 172 db.execSQL(CREATE_DATE_TABLE_SQL); in onCreate() 185 public void onUpgrade(SQLiteDatabase db, int version1, int version2) { in onUpgrade() argument 191 dropTables(db); in onUpgrade() 194 onCreate(db); in onUpgrade() 204 public void onDowngrade(SQLiteDatabase db, int version1, int version2) { in onDowngrade() argument [all …]
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/db/ |
D | SelectionBuilder.java | 23 package com.example.android.common.db; 296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) { in query() argument 297 return query(db, columns, null, null, orderBy, null); in query() 322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy, in query() argument 327 return db.query(mTable, columns, getSelection(), getSelectionArgs(), groupBy, having, in query() 339 public int update(SQLiteDatabase db, ContentValues values) { in update() argument 342 return db.update(mTable, values, getSelection(), getSelectionArgs()); in update() 351 public int delete(SQLiteDatabase db) { in delete() argument 354 return db.delete(mTable, getSelection(), getSelectionArgs()); in delete()
|
/development/samples/SampleSyncAdapter/samplesyncadapter_server/ |
D | dashboard.py | 26 from google.appengine.ext import db 29 from google.appengine.ext.db import djangoforms 103 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) 109 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) 126 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) 143 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) 154 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) 157 contact.avatar = db.Blob(avatar) 171 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | LoaderThrottle.java | 135 public void onCreate(SQLiteDatabase db) { in onCreate() argument 136 db.execSQL("CREATE TABLE " + MainTable.TABLE_NAME + " (" in onCreate() 150 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 157 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 160 onCreate(db); in onUpgrade() 241 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local 243 Cursor c = qb.query(db, projection, selection, selectionArgs, in query() 287 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local 289 long rowId = db.insert(MainTable.TABLE_NAME, null, values); in insert() 306 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local [all …]
|
/development/samples/NotePad/src/com/example/android/notepad/ |
D | NotePadProvider.java | 193 public void onCreate(SQLiteDatabase db) { in onCreate() argument 194 db.execSQL("CREATE TABLE " + NotePad.Notes.TABLE_NAME + " (" in onCreate() 211 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 218 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 221 onCreate(db); in onUpgrade() 302 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local 310 db, // The database to query in query() 544 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local 547 long rowId = db.insert( in insert() 586 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local [all …]
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
D | LoaderThrottleSupport.java | 136 public void onCreate(SQLiteDatabase db) { in onCreate() argument 137 db.execSQL("CREATE TABLE " + MainTable.TABLE_NAME + " (" in onCreate() 151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 158 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 161 onCreate(db); in onUpgrade() 242 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local 244 Cursor c = qb.query(db, projection, selection, selectionArgs, in query() 288 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local 290 long rowId = db.insert(MainTable.TABLE_NAME, null, values); in insert() 307 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local [all …]
|
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/ |
D | NotesDbAdapter.java | 67 public void onCreate(SQLiteDatabase db) { in onCreate() argument 69 db.execSQL(DATABASE_CREATE); in onCreate() 73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 76 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 77 onCreate(db); in onUpgrade()
|
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/ |
D | NotesDbAdapter.java | 67 public void onCreate(SQLiteDatabase db) { in onCreate() argument 69 db.execSQL(DATABASE_CREATE); in onCreate() 73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 76 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 77 onCreate(db); in onUpgrade()
|
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/ |
D | NotesDbAdapter.java | 67 public void onCreate(SQLiteDatabase db) { in onCreate() argument 69 db.execSQL(DATABASE_CREATE); in onCreate() 73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 76 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 77 onCreate(db); in onUpgrade()
|
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
D | NotesDbAdapter.java | 67 public void onCreate(SQLiteDatabase db) { in onCreate() argument 69 db.execSQL(DATABASE_CREATE); in onCreate() 73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 76 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 77 onCreate(db); in onUpgrade()
|
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/ |
D | NotesDbAdapter.java | 67 public void onCreate(SQLiteDatabase db) { in onCreate() argument 69 db.execSQL(DATABASE_CREATE); in onCreate() 73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 76 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 77 onCreate(db); in onUpgrade()
|
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/ |
D | NotesDbAdapter.java | 67 public void onCreate(SQLiteDatabase db) { in onCreate() argument 69 db.execSQL(DATABASE_CREATE); in onCreate() 73 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 76 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 77 onCreate(db); in onUpgrade()
|
/development/scripts/ |
D | add-accounts | 81 db = DbExists(adb_flags) 82 if db is None: 87 if db:
|
D | add-accounts-sdk | 78 db = DbExists(adb_flags) 79 if db is None: 84 if db:
|
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
D | DictionaryDatabase.java | 181 public void onCreate(SQLiteDatabase db) { in onCreate() argument 182 mDatabase = db; in onCreate() 237 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 240 db.execSQL("DROP TABLE IF EXISTS " + FTS_VIRTUAL_TABLE); in onUpgrade() 241 onCreate(db); in onUpgrade()
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
D | RssContentProvider.java | 72 public void onCreate(SQLiteDatabase db){ in onCreate() argument 82 db.execSQL(sql); in onCreate() 90 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){ in onUpgrade() argument 94 db.execSQL("DROP TABLE IF EXISTS " + DATABASE_TABLE_NAME + ";"); in onUpgrade()
|
/development/ |
D | .gitignore | 5 Thumbs.db
|
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/ |
D | PhoneApplication.java | 21 import com.example.android.wearable.speedtracker.db.LocationDbHelper;
|
D | LocationDataManager.java | 21 import com.example.android.wearable.speedtracker.db.LocationDbHelper;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ColorMatrixSample.java | 47 float db, float da) { in setTranslate() argument 51 0, 0, 2, 0, db, in setTranslate()
|
D | BitmapPixels.java | 96 int db = ((getB32(to) << 23) - b) / (n - 1); in makeRamp() local 106 b += db; in makeRamp()
|
/development/ndk/platforms/android-21/arch-x86/include/asm/ |
D | kvm.h | 149 __u8 present, dpl, db, s, l, g, avl; member 334 __u64 db[4]; member
|