Searched refs:helper (Results 1 - 20 of 20) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/
H A DNfcBackupAgent.java28 SharedPreferencesBackupHelper helper =
30 addHelper(SHARED_PREFS_BACKUP_KEY, helper);
/packages/apps/Gallery/src/com/android/camera/
H A DPhotoAppWidgetBind.java62 PhotoDatabaseHelper helper = new PhotoDatabaseHelper(this);
66 helper.setPhoto(appWidgetId, bitmaps.get(i));
71 helper);
74 helper.close();
H A DPhotoAppWidgetConfigure.java80 PhotoDatabaseHelper helper = new PhotoDatabaseHelper(this);
81 if (helper.setPhoto(mAppWidgetId, bitmap)) {
86 mAppWidgetId, helper);
92 helper.close();
H A DPhotoAppWidgetProvider.java48 PhotoDatabaseHelper helper = new PhotoDatabaseHelper(context);
51 RemoteViews views = buildUpdate(context, appWidgetId, helper);
58 helper.close();
64 PhotoDatabaseHelper helper = new PhotoDatabaseHelper(context);
66 helper.deletePhoto(appWidgetId);
68 helper.close();
75 PhotoDatabaseHelper helper) {
77 Bitmap bitmap = helper.getPhoto(appWidgetId);
74 buildUpdate(Context context, int appWidgetId, PhotoDatabaseHelper helper) argument
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarUpgradeReceiver.java64 // Ask for a reference to the database to force the helper to either
67 CalendarDatabaseHelper helper = CalendarDatabaseHelper.getInstance(context);
68 if (context.getDatabasePath(helper.getDatabaseName()).exists()) {
75 helper.getWritableDatabase();
77 helper.close();
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DWidgetConfigure.java128 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(this);
130 helper.setPhoto(mAppWidgetId, mPickedItem, bitmap);
131 updateWidgetAndFinish(helper.getEntry(mAppWidgetId));
133 helper.close();
165 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(this);
180 helper.setWidget(mAppWidgetId,
182 updateWidgetAndFinish(helper.getEntry(mAppWidgetId));
184 helper.close();
194 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(this);
196 helper
[all...]
H A DPhotoAppWidgetProvider.java61 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(context);
64 Entry entry = helper.getEntry(id);
73 helper.close();
133 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(context);
135 helper.deleteEntry(appWidgetId);
137 helper.close();
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactsUpgradeReceiver.java72 // Ask for a reference to the database to force the helper to either
75 ContactsDatabaseHelper helper = ContactsDatabaseHelper.getInstance(context);
84 helper.getWritableDatabase();
86 ContactsProvider2.updateLocaleOffline(context, helper, profileHelper);
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaUpgradeReceiver.java76 MediaProvider.DatabaseHelper helper = new MediaProvider.DatabaseHelper(
79 db = helper.getWritableDatabase();
H A DMediaProvider.java510 private void createDefaultFolders(DatabaseHelper helper, SQLiteDatabase db) { argument
520 insertDirectory(helper, db, file.getAbsolutePath());
2151 DatabaseHelper helper = getDatabaseForUri(uri);
2152 if (helper == null) {
2155 helper.mNumQueries++;
2156 SQLiteDatabase db = helper.getReadableDatabase();
2497 return getObjectReferences(helper, db, handle);
2691 DatabaseHelper helper = getDatabaseForUri(uri);
2692 if (helper == null) {
2696 SQLiteDatabase db = helper
2792 insertDirectory(DatabaseHelper helper, SQLiteDatabase db, String path) argument
2809 getParent(DatabaseHelper helper, SQLiteDatabase db, String path) argument
2866 insertFile(DatabaseHelper helper, Uri uri, ContentValues initialValues, int mediaType, boolean notify, ArrayList<Long> notifyRowIds) argument
3098 getObjectReferences(DatabaseHelper helper, SQLiteDatabase db, int handle) argument
3123 setObjectReferences(DatabaseHelper helper, SQLiteDatabase db, int handle, ContentValues values[]) argument
3487 processNewNoMediaPath(final DatabaseHelper helper, final SQLiteDatabase db, final String path) argument
3508 hidePath(DatabaseHelper helper, SQLiteDatabase db, String path) argument
4263 movePlaylistEntry(DatabaseHelper helper, SQLiteDatabase db, long playlist, int from, int to) argument
4476 DatabaseHelper helper; field in class:MediaProvider.ThumbData
4483 makeThumbAsync(DatabaseHelper helper, SQLiteDatabase db, String path, long album_id) argument
4625 getAlbumArtOutputUri(DatabaseHelper helper, SQLiteDatabase db, long album_id, Uri albumart_uri) argument
4689 getThumb(DatabaseHelper helper, SQLiteDatabase db, String path, long album_id, Uri albumart_uri) argument
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/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DSearchBaseUrlHelper.java52 public SearchBaseUrlHelper(Context context, HttpHelper helper, argument
54 mHttpHelper = helper;
143 // Swallow any exceptions thrown by the HTTP helper, in
/packages/apps/Settings/src/com/android/settings/
H A DSecuritySettings.java481 ChooseLockSettingsHelper helper =
483 if (!helper.launchConfirmationActivity(
499 ChooseLockSettingsHelper helper =
501 if (!helper.launchConfirmationActivity(
H A DChooseLockGeneric.java100 ChooseLockSettingsHelper helper =
102 if (!helper.launchConfirmationActivity(CONFIRM_EXISTING_REQUEST, null, null)) {
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarProvider2Test.java960 CalendarDatabaseHelper helper = (CalendarDatabaseHelper) getProvider().getDatabaseHelper();
961 mDb = helper.getWritableDatabase();
962 wipeAndInitData(helper, mDb);
977 public void wipeAndInitData(SQLiteOpenHelper helper, SQLiteDatabase db) argument
994 initCalendarCacheLocked(helper, db);
1008 private void initCalendarCacheLocked(SQLiteOpenHelper helper, SQLiteDatabase db) argument
1010 CalendarCache cache = new CalendarCache(helper);
2732 private void cleanCalendarDataTable(SQLiteOpenHelper helper) { argument
2733 if (null == helper) {
2736 SQLiteDatabase db = helper
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DMetadataDbHelper.java36 * Various helper functions for the state database
163 MetadataDbHelper helper = sInstanceMap.get(clientId);
164 if (null == helper) {
165 helper = new MetadataDbHelper(context, clientId);
166 sInstanceMap.put(clientId, helper);
168 return helper;
/packages/apps/Email/src/com/android/email/provider/
H A DEmailProvider.java476 DBHelper.DatabaseHelper helper = new DBHelper.DatabaseHelper(context, DATABASE_NAME);
477 mDatabase = helper.getWritableDatabase();
589 DBHelper.DatabaseHelper helper = new DBHelper.DatabaseHelper(context, DATABASE_NAME);
590 return helper.getReadableDatabase();
1389 DBHelper.DatabaseHelper helper = new DBHelper.DatabaseHelper(context, BACKUP_DATABASE_NAME);
1390 return helper.getWritableDatabase();
/packages/apps/Email/src/com/android/email/activity/
H A DMessageListFragment.java901 * sense of the helper methods is "true=unread"; this may be called from the UI thread
972 * @param helper functions to implement the specific getter & setter
974 private void toggleMultiple(final Set<Long> selectedSet, final MultiToggleHelper helper) { argument
987 boolean value = helper.getField(c);
1002 helper.setField(id, newValue);
/packages/apps/Browser/src/com/android/browser/provider/
H A DBrowserProvider2.java512 BrowserProvider.DatabaseHelper helper =
514 SQLiteDatabase oldDb = helper.getWritableDatabase();
579 helper.close();
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java6719 ContactsDatabaseHelper helper = (ContactsDatabaseHelper)provider.getDatabaseHelper();
6720 assertNull(helper.getProperty("non-existent", null));
6721 assertEquals("default", helper.getProperty("non-existent", "default"));
6723 helper.setProperty("existent1", "string1");
6724 helper.setProperty("existent2", "string2");
6725 assertEquals("string1", helper.getProperty("existent1", "default"));
6726 assertEquals("string2", helper.getProperty("existent2", "default"));
6727 helper.setProperty("existent1", null);
6728 assertEquals("default", helper.getProperty("existent1", "default"));
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherProvider.java125 private static long dbInsertAndCheck(DatabaseHelper helper, argument

Completed in 4757 milliseconds