/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
H A D | MoreDatabaseUtils.java | 27 * Builds a CREATE INDEX ddl statement for a given table and field. 29 * @param table The table name. 33 public static String buildCreateIndexSql(String table, String field) { argument 34 return "CREATE INDEX " + buildIndexName(table, field) + " ON " + table 39 * Builds a DROP INDEX ddl statement for a given table and field. 41 * @param table The table name that was originally used to create the index. 46 public static String buildDropIndexSql(String table, Strin argument 55 buildIndexName(String table, String field) argument [all...] |
H A D | ContactsTableUtil.java | 34 * Methods for operating on the contacts table. 44 final String table = Tables.CONTACTS; 46 db.execSQL("CREATE INDEX contacts_has_phone_index ON " + table + " (" + 50 db.execSQL("CREATE INDEX contacts_name_raw_contact_id_index ON " + table + " (" + 54 db.execSQL(MoreDatabaseUtils.buildCreateIndexSql(table,
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | DatabaseModifier.java | 34 public abstract long insert(String table, String nullColumnHack, ContentValues values); argument 41 * Use this method to update a table which you would otherwise do using the 44 public abstract int update(String table, ContentValues values, argument 47 * Use this method to delete entries from a table which you would otherwise do using the 50 public abstract int delete(String table, String whereClause, String[] whereArgs); argument
|
H A D | ProfileDatabaseHelper.java | 34 // SQLite-standard table and columns for tracking autoincrement sequences. 68 for (String table : Tables.SEQUENCE_TABLES) { 70 values.put(SEQUENCE_NAME, table);
|
H A D | DbModifierWithNotification.java | 98 public long insert(String table, String nullColumnHack, ContentValues values) { argument 100 long rowId = mDb.insert(table, nullColumnHack, values); 140 public int update(String table, ContentValues values, String whereClause, String[] whereArgs) { argument 143 int count = mDb.update(table, values, whereClause, whereArgs); 154 public int delete(String table, String whereClause, String[] whereArgs) { argument 156 int count = mDb.delete(table, whereClause, whereArgs);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoTableDream.java | 22 * Example interactive screen saver: flick photos onto a table. 39 PhotoTable table = (PhotoTable) findViewById(R.id.table); 40 if (table != null) { 41 table.setDream(this); 51 setContentView(R.layout.table);
|
H A D | EdgeSwipeDetector.java | 34 public EdgeSwipeDetector(Context context, PhotoTable table) { argument 35 mTable = table;
|
H A D | PhotoTable.java | 454 private static View applyFrame(final PhotoTable table, final BitmapFactory.Options options, argument 456 LayoutInflater inflater = (LayoutInflater) table.getContext() 467 layers[0] = new BitmapDrawable(table.mResources, decodedPhoto); 468 layers[1] = table.mResources.getDrawable(R.drawable.frame); 470 layerList.setLayerInset(0, table.mInset, table.mInset, 471 table.mInset, table.mInset); 477 photo.setOnTouchListener(new PhotoTouchListener(table.getContext(), 478 table)); [all...] |
H A D | DragGestureDetector.java | 36 public DragGestureDetector(Context context, PhotoTable table) { argument 39 mTable = table;
|
H A D | KeyboardInterpreter.java | 33 public KeyboardInterpreter(PhotoTable table) { argument 35 mTable = table;
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | MmsProvider.java | 283 String table = TABLE_PDU; 309 table = TABLE_PART; 313 table = TABLE_ADDR; 317 table = TABLE_RATE; 321 table = TABLE_DRM; 333 if (table.equals(TABLE_PDU)) { 367 if ((rowId = db.insert(table, null, finalValues)) <= 0) { 374 } else if (table.equals(TABLE_ADDR)) { 378 if ((rowId = db.insert(table, null, finalValues)) <= 0) { 384 } else if (table 653 deleteDataRows(SQLiteDatabase db, String table, String selection, String[] selectionArgs) argument [all...] |
H A D | SmsProvider.java | 346 String table = TABLE_SMS; 384 table = "raw"; 388 table = "sr_pending"; 392 table = "attachments"; 396 table = "canonical_addresses"; 406 if (table.equals(TABLE_SMS)) { 491 rowID = db.insert(table, "body", values); 493 // Don't use a trigger for updating the words table because of a bug 496 if (table == TABLE_SMS) { 497 // Update the words table wit [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
H A D | PhotoProvider.java | 71 * Internal database table used for account information 94 /** Internal database table used for basic photo information. */ 133 /** Internal database table used album information. */ 170 /** Internal database table used metadata information. */ 295 String table = getTableFromMatch(match, uri); 298 long id = db.insert(table, null, values); 300 // uri already matches the table. 320 String table = getTableFromMatch(match, uri); 321 Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal); 339 String table 455 nestWhere(String matchColumn, String table, String nestedWhere) argument 518 query(String table, String[] columns, String selection, String[] selectionArgs, String orderBy, CancellationSignal cancellationSignal) argument [all...] |
H A D | PhotoDatabase.java | 136 protected static void createTable(SQLiteDatabase db, String table, List<String[]> columns) { argument 138 create.append(table).append('('); 186 protected static void dropTable(SQLiteDatabase db, String table) { argument 189 db.execSQL("drop table if exists " + table);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | LevenshteinSuggestionFormatter.java | 83 final LevenshteinDistance table = new LevenshteinDistance(source, target); 84 table.calculate(); 87 LevenshteinDistance.EditOperation[] ops = table.getTargetOperations();
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
H A D | ResultActivity.java | 178 TableLayout table = (TableLayout)findViewById(R.id.table); 182 table.addView(row); 188 TableLayout table = (TableLayout)findViewById(R.id.table); 194 table.addView(separator);
|
/packages/providers/DrmProvider/src/com/android/providers/drm/ |
H A D | DrmProvider.java | 108 * Creates the table that'll hold the download information. 129 * Deletes the table that holds the download information. 273 public String table; field in class:DrmProvider.GetTableAndWhereOutParameter 285 out.table = "audio"; 289 out.table = "audio"; 294 out.table = "images"; 298 out.table = "images"; 356 count = db.delete(sGetTableAndWhereParam.table, 382 count = db.update(sGetTableAndWhereParam.table, initialValues,
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/ |
H A D | MockProvider.java | 118 String table = uri.getPath().substring(1); 120 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table) 127 sURIMatcher.addURI(AUTHORITY, table, TABLE); 128 sURIMatcher.addURI(AUTHORITY, table + "/#", RECORD);
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
H A D | MockProvider.java | 118 String table = uri.getPath().substring(1); 120 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table) 127 sURIMatcher.addURI(AUTHORITY, table, TABLE); 128 sURIMatcher.addURI(AUTHORITY, table + "/#", RECORD);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | LauncherProvider.java | 104 return "vnd.android.cursor.dir/" + args.table; 106 return "vnd.android.cursor.item/" + args.table; 116 qb.setTables(args.table); 126 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { 130 return db.insert(table, nullColumnHack, values); 136 db.delete(args.table, args.where, args.args); 144 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); 162 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { 180 int count = db.delete(args.table, args.where, args.args); 191 int count = db.update(args.table, value 125 dbInsertAndCheck(DatabaseHelper helper, SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) argument 1163 public final String table; field in class:LauncherProvider.SqlArguments [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaProvider.java | 244 // entries for that storage from the files table. 787 // create image thumbnail table 926 // Cleans up album_art table entry when an album is deleted 999 // Create bucket_id and bucket_display_name columns for the video table. 1012 // Create bookmark column for the video table. 1031 // Create is_podcast and bookmark columns for the audio table. 1145 // create video thumbnail table 1308 // table, so we need to create that if we're at 100 or lower. This means 1324 // Create a new table to manage all files in our storage. 1387 // Value of _id from the old media table 2048 queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, String column, boolean hasThumbnailId) argument 3668 public String table; field in class:MediaProvider.GetTableAndWhereOutParameter 4814 getKeyIdForName(DatabaseHelper helper, SQLiteDatabase db, String table, String keyField, String nameField, String rawName, String cacheName, String path, int albumHash, String artist, HashMap<String, Long> cache, Uri srcuri) argument [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
H A D | EmailProvider.java | 275 * Note that this isn't relevant for table creation strings, since they are used only once 303 // Email URI matching table 448 * delete from <table> where <column> not in (select <foreignColumn> from <foreignTable>) 450 * @param table the table whose orphans are to be removed 452 * @param foreignColumn the column in the foreign table whose absence will trigger the deletion 453 * @param foreignTable the foreign table 456 void deleteUnlinked(SQLiteDatabase db, String table, String column, String foreignColumn, argument 458 int count = db.delete(table, column + " not in (select " + foreignColumn + " from " + 461 Log.w(TAG, "Found " + count + " orphaned row(s) in " + table); [all...] |
/packages/apps/Gallery2/tests/src/com/android/photos/data/ |
H A D | PhotoDatabaseTest.java | 217 private void validateTable(String table, String[] projection) { argument 219 Cursor cursor = db.query(table, projection, null, null, null, null, null);
|
H A D | PhotoDatabaseUtils.java | 82 public static long queryId(SQLiteDatabase db, String table, String[] projection, argument 88 Cursor cursor = db.query(table, projection, selection, selectionArgs, null, null, null); 91 throw new AssertionFailedError("Couldn't find item in table");
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
H A D | RomkanFullKatakana.java | 163 * @param table HashMap for Romaji-to-Kana conversion 166 public static boolean convert(ComposingText text, HashMap<String, String> table) { argument 187 String match = table.get(key.toString().toLowerCase());
|