OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:deviceContext
(Results
1 - 8
of
8
) sorted by null
/cts/tests/tests/content/src/android/content/cts/
ContextTest.java
96
final Context
deviceContext
= mContext.createDeviceProtectedStorageContext();
99
assertTrue(
deviceContext
.isDeviceProtectedStorage());
102
final File deviceFile = new File(
deviceContext
.getFilesDir(), "test");
114
final Context
deviceContext
= mContext.createDeviceProtectedStorageContext();
120
assertTrue(
deviceContext
.moveSharedPreferencesFrom(mContext, "test"));
123
assertEquals(42,
deviceContext
.getSharedPreferences("test", Context.MODE_PRIVATE)
127
assertTrue(
deviceContext
.moveSharedPreferencesFrom(mContext, "test"));
130
assertEquals(42,
deviceContext
.getSharedPreferences("test", Context.MODE_PRIVATE)
134
deviceContext
.getSharedPreferences("test", Context.MODE_PRIVATE).edit()
137
assertTrue(mContext.moveSharedPreferencesFrom(
deviceContext
, "test"))
[
all
...]
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
AlarmStorage.java
46
final Context
deviceContext
= context.createDeviceProtectedStorageContext();
47
if (!
deviceContext
.moveSharedPreferencesFrom(context,
51
storageContext =
deviceContext
;
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
AlarmStorage.java
46
final Context
deviceContext
= context.createDeviceProtectedStorageContext();
47
if (!
deviceContext
.moveSharedPreferencesFrom(context,
51
storageContext =
deviceContext
;
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
AlarmStorage.java
46
final Context
deviceContext
= context.createDeviceProtectedStorageContext();
47
if (!
deviceContext
.moveSharedPreferencesFrom(context,
51
storageContext =
deviceContext
;
/packages/apps/DeskClock/src/com/android/deskclock/provider/
ClockProvider.java
126
final Context
deviceContext
= context.createDeviceProtectedStorageContext();
127
if (!
deviceContext
.moveDatabaseFrom(context, ClockDatabaseHelper.DATABASE_NAME)) {
130
storageContext =
deviceContext
;
/external/skia/src/ports/
SkFontHost_win.cpp
101
static void dcfontname_to_skstring(HDC
deviceContext
, const LOGFONT& lf, SkString* familyName) {
103
if (0 == (fontNameLen = GetTextFace(
deviceContext
, 0, nullptr))) {
105
if (0 == (fontNameLen = GetTextFace(
deviceContext
, 0, nullptr))) {
111
if (0 == GetTextFace(
deviceContext
, fontNameLen, fontName.get())) {
113
if (0 == GetTextFace(
deviceContext
, fontNameLen, fontName.get())) {
218
HDC
deviceContext
= ::CreateCompatibleDC(nullptr);
219
HFONT savefont = (HFONT)SelectObject(
deviceContext
, font);
222
if (0 == GetTextMetrics(
deviceContext
, &textMetric)) {
224
if (0 == GetTextMetrics(
deviceContext
, &textMetric)) {
228
if (
deviceContext
) {
[
all
...]
/packages/apps/DeskClock/src/com/android/deskclock/
Utils.java
714
final Context
deviceContext
= context.createDeviceProtectedStorageContext();
715
if (!
deviceContext
.moveSharedPreferencesFrom(context,
719
storageContext =
deviceContext
;
/frameworks/base/core/java/android/app/
ActivityThread.java
[
all
...]
Completed in 1415 milliseconds