/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/tools/repo_diff/service/repodiff/persistence/sql/ |
D | sql.go | 16 var db *sql.DB var 40 if db != nil { 41 return db, nil 47 if db != nil { 48 return db, nil 51 db, err = newDBConnectionPool() 58 db.SetMaxOpenConns(connections) 61 db.SetMaxIdleConns(connections) 62 return db, nil 65 func SingleTransactionInsert(db *sql.DB, insertQuery string, rowsOfCols [][]interface{}) error { [all …]
|
D | sql_test.go | 10 db, err := GetDBConnectionPool() 12 err = db.Ping()
|
/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/tools/repo_diff/service/repodiff/repositories/ |
D | denormalizer.go | 15 db *sql.DB member 19 db *sql.DB member 26 if _, err := g.db.Exec( 34 _, err := g.db.Exec( 93 if _, err := g.db.Exec( 101 _, err := g.db.Exec( 163 s.db, 195 db, err := repoSQL.GetDBConnectionPool() 197 db: db, 202 db, err := repoSQL.GetDBConnectionPool() [all …]
|
D | project.go | 17 db *sql.DB member 25 p.db, 54 err := p.db.QueryRow( 89 p.db, 135 db, err := repoSQL.GetDBConnectionPool() 137 db: db,
|
D | commit.go | 33 db *sql.DB member 40 db: c.db, 49 c.db, 74 err := c.db.QueryRow( 109 c.db, 162 c.db, 201 db, err := repoSQL.GetDBConnectionPool() 203 db: db,
|
D | source.go | 19 db *sql.DB member 47 s.db, 64 s.db, 96 s.db, 128 db, err := repoSQL.GetDBConnectionPool() 130 db: db,
|
D | project_test.go | 25 db, _ := repoSQL.GetDBConnectionPool() 27 db.QueryRow("SELECT COUNT(*) FROM project_differential").Scan(&count) 32 db, _ := repoSQL.GetDBConnectionPool() 33 db.Exec("TRUNCATE TABLE project_differential")
|
D | helpers_test.go | 53 db, _ := repoSQL.GetDBConnectionPool() 54 db.Exec(
|
D | source_test.go | 23 db, _ := repoSQL.GetDBConnectionPool() 24 db.Exec("TRUNCATE TABLE id_to_url_branch")
|
/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/NotePad/src/com/example/android/notepad/ |
D | NotePadProvider.java | 167 public void onCreate(SQLiteDatabase db) { in onCreate() argument 168 db.execSQL("CREATE TABLE " + NotePad.Notes.TABLE_NAME + " (" in onCreate() 185 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 192 db.execSQL("DROP TABLE IF EXISTS notes"); in onUpgrade() 195 onCreate(db); in onUpgrade() 271 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local 279 db, // The database to query in query() 511 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local 514 long rowId = db.insert( in insert() 553 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local [all …]
|
/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/scripts/ |
D | add-accounts-sdk | 78 db = DbExists(adb_flags) 79 if db is None: 84 if db:
|
D | add-accounts | 81 db = DbExists(adb_flags) 82 if db is None: 87 if db:
|
/development/tools/checkcolor/ |
D | .gitignore | 18 # Windows thumbnail db 19 Thumbs.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;
|
/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()
|