/frameworks/base/tests/CoreTests/android/core/ |
ProxyTest.java | 29 private Context mContext; 36 mContext = getContext(); 38 String proxyHost = Proxy.getHost(mContext); 39 int proxyPort = Proxy.getPort(mContext); 54 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, null)); 55 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "")); 56 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:")); 57 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad")); 58 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:\\")); 59 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad://#")) [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
CreateViewTest.java | 41 new CreateViewTest.ViewOne(mContext); 46 LinearLayout vert = new LinearLayout(mContext); 47 vert.addView(new CreateViewTest.ViewOne(mContext), 53 LinearLayout vert = new LinearLayout(mContext); 55 ViewOne one = new ViewOne(mContext); 58 ViewOne two = new ViewOne(mContext); 61 ViewOne three = new ViewOne(mContext); 64 ViewOne four = new ViewOne(mContext); 67 ViewOne five = new ViewOne(mContext); 70 ViewOne six = new ViewOne(mContext); [all...] |
/packages/apps/Email/src/com/android/email/service/ |
AccountService.java | 44 private Context mContext; 50 NotificationController.getInstance(mContext).showLoginFailedNotification(accountId); 55 NotificationController.getInstance(mContext).cancelLoginFailedNotification(accountId); 60 Cursor c = mContext.getContentResolver().query(Account.CONTENT_URI, 65 String protocol = Account.getProtocol(mContext, accountId); 67 Account account = Account.restoreAccountWithId(mContext, accountId); 83 AccountManager.get(mContext).getAccountsByType(accountManagerType); 84 AccountReconciler.reconcileAccounts(mContext, providerList, accountMgrList, mContext); 89 return ResourceHelper.getInstance(mContext).getAccountColor(accountId) [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
RenderScript.java | 109 rsnContextDestroy(mContext); 114 rsnContextSetSurface(mContext, w, h, sur); 119 rsnContextSetSurfaceTexture(mContext, w, h, sur); 124 rsnContextSetPriority(mContext, p); 129 rsnContextDump(mContext, bits); 134 rsnContextFinish(mContext); 140 rsnContextBindRootScript(mContext, script); 145 rsnContextBindSampler(mContext, sampler, slot); 150 rsnContextBindProgramStore(mContext, pfs); 155 rsnContextBindProgramFragment(mContext, pf) [all...] |
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/ |
MediaPlayerDataSource.java | 37 private final Context mContext; 42 mContext = context; 48 mContext = null; 54 if (mContext != null) { 55 mediaPlayer.setDataSource(mContext, mUri); 62 if (mContext != null) { 63 VariableSpeedNative.playFromContext(mContext, mUri);
|
/packages/apps/Contacts/src/com/android/contacts/preference/ |
DisplayOrderPreference.java | 32 private Context mContext; 45 mContext = getContext(); 46 mPreferences = new ContactsPreferences(mContext); 48 mContext.getString(R.string.display_options_view_given_name_first), 49 mContext.getString(R.string.display_options_view_family_name_first), 67 return mContext.getString(R.string.display_options_view_given_name_first); 69 return mContext.getString(R.string.display_options_view_family_name_first);
|
SortOrderPreference.java | 32 private Context mContext; 45 mContext = getContext(); 46 mPreferences = new ContactsPreferences(mContext); 48 mContext.getString(R.string.display_options_sort_by_given_name), 49 mContext.getString(R.string.display_options_sort_by_family_name), 67 return mContext.getString(R.string.display_options_sort_by_given_name); 69 return mContext.getString(R.string.display_options_sort_by_family_name);
|
ContactsPreferences.java | 37 private Context mContext; 45 mContext = context; 50 return mContext.getResources().getBoolean(R.bool.config_sort_order_user_changeable); 54 if (mContext.getResources().getBoolean(R.bool.config_default_sort_order_primary)) { 68 mSortOrder = Settings.System.getInt(mContext.getContentResolver(), 79 Settings.System.putInt(mContext.getContentResolver(), 84 return mContext.getResources().getBoolean(R.bool.config_display_order_user_changeable); 88 if (mContext.getResources().getBoolean(R.bool.config_default_display_order_primary)) { 102 mDisplayOrder = Settings.System.getInt(mContext.getContentResolver(), 113 Settings.System.putInt(mContext.getContentResolver() [all...] |
/cts/tests/ProcessTest/src/com/android/cts/process/ |
ProcessTest.java | 38 String testApp = mContext.getPackageName(); 39 int uid1 = mContext.getPackageManager().getApplicationInfo(enableApp, 41 int uid2 = mContext.getPackageManager().getApplicationInfo(disableApp, 43 int uid3 = mContext.getPackageManager().getApplicationInfo(testApp, 50 ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); 51 String shareProcessName = mContext.getPackageName() + ":shareProcess"; 52 String noShareProcessName = mContext.getPackageName() + ":noShareProcess"; 57 sharePidIntent.setClass(mContext, SharePidActivity.class); 59 mContext.startActivity(sharePidIntent); 65 sharePidStubIntent.setClass(mContext, SharePidSubActivity.class) [all...] |
/cts/tests/tests/text/src/android/text/format/cts/ |
FormatterTest.java | 44 assertEquals("0.00B", Formatter.formatFileSize(mContext, 0)); 46 assertEquals("899B", Formatter.formatFileSize(mContext, 899)); 48 assertEquals("1.00KB", Formatter.formatFileSize(mContext, bd.pow(1).longValue())); 50 assertEquals("1.00MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue())); 52 assertEquals("1.00GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue())); 54 assertEquals("1.00TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue())); 56 assertEquals("1.00PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue())); 58 assertEquals("1024PB", Formatter.formatFileSize(mContext, bd.pow(6).longValue())); 61 assertEquals("-1.00B", Formatter.formatFileSize(mContext, -1));
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
RealSystemFacade.java | 17 private Context mContext; 21 mContext = context; 23 mContext.getSystemService(Context.NOTIFICATION_SERVICE); 32 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 47 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 63 return DownloadManager.getMaxBytesOverMobile(mContext); 68 return DownloadManager.getRecommendedMaxBytesOverMobile(mContext); 73 mContext.sendBroadcast(intent); 78 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid;
|
/system/media/mca/filterfw/java/android/filterfw/ |
MffEnvironment.java | 34 private FilterContext mContext; 50 mContext = new FilterContext(); 51 mContext.setFrameManager(frameManager); 59 return mContext; 67 mContext.initGLEnvironment(glEnvironment); 85 GLEnvironment glEnv = mContext.getGLEnvironment(); 87 mContext.getGLEnvironment().activate(); 99 GLEnvironment glEnv = mContext.getGLEnvironment(); 101 mContext.getGLEnvironment().deactivate();
|
/cts/tests/tests/content/src/android/content/cts/ |
ContextTest.java | 43 private Context mContext; 48 mContext = getContext(); 49 mContext.setTheme(R.style.Test_Theme); 68 String testString = mContext.getString(R.string.context_test_string1); 71 testString = mContext.getString(R.string.context_test_string1, "expected"); 74 testString = mContext.getString(R.string.context_test_string2); 79 testString = mContext.getString(0, "expected"); 86 testString = mContext.getString(0); 100 CharSequence testCharSequence = mContext.getText(R.string.context_test_string2); 105 testCharSequence = mContext.getText(0) [all...] |
Intent_ShortcutIconResourceTest.java | 35 Context mContext; 42 mContext = getContext(); 51 String resourceName = mContext.getResources().getResourceName( 53 mShortcutIconResource = ShortcutIconResource.fromContext(mContext, 66 String resourceName = mContext.getResources().getResourceName( 68 mShortcutIconResource = ShortcutIconResource.fromContext(mContext, 73 assertEquals(mContext.getPackageName(), 84 mShortcutIconResource = ShortcutIconResource.fromContext(mContext,
|
/sdk/traceview/src/com/android/traceview/ |
ProfileData.java | 24 /** mContext is either the parent or child of mElement */ 25 protected MethodData mContext; 36 mContext = context; 75 totalCalls = mContext.getTotalCalls(); 86 return mContext;
|
/system/media/mca/filterfw/java/android/filterfw/core/ |
FrameManager.java | 29 private FilterContext mContext; 54 return mContext; 58 return mContext != null ? mContext.getGLEnvironment() : null; 65 mContext = context;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/ |
VoiceInputLogger.java | 39 private final Context mContext; 63 mContext = context; 79 mContext.sendBroadcast(i); 86 mContext.sendBroadcast(newLoggingBroadcast( 92 mContext.sendBroadcast(newLoggingBroadcast( 98 mContext.sendBroadcast(newLoggingBroadcast( 104 mContext.sendBroadcast(newLoggingBroadcast( 110 mContext.sendBroadcast(newLoggingBroadcast( 116 mContext.sendBroadcast(newLoggingBroadcast( 122 mContext.sendBroadcast(newLoggingBroadcast [all...] |
/cts/tests/tests/app/src/android/app/backup/cts/ |
FileBackupHelperTest.java | 25 new FileBackupHelper(mContext); 26 new FileBackupHelper(mContext, "test-file-1"); 27 new FileBackupHelper(mContext, "test-file-1", "test-file-2");
|
SharedPreferencesBackupHelperTest.java | 25 new SharedPreferencesBackupHelper(mContext); 26 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1"); 27 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1", "test-prefs-group-2");
|
/cts/tests/tests/app/src/android/app/cts/ |
PendingIntentTest.java | 40 private Context mContext; 52 mContext = getContext(); 112 mIntent.setClass(mContext, PendingIntentStubActivity.class); 114 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, 116 assertEquals(mContext.getPackageName(), mPendingIntent.getTargetPackage()); 126 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, 130 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, 157 mIntent.setClass(mContext, MockReceiver.class); 158 mPendingIntent = PendingIntent.getBroadcast(mContext, 1, mIntent, 168 mPendingIntent = PendingIntent.getBroadcast(mContext, 1, mIntent [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ViewGroupTest.java | 69 private Context mContext; 81 mContext = getInstrumentation().getTargetContext(); 102 new MockViewGroup(mContext); 103 new MockViewGroup(mContext, null); 104 new MockViewGroup(mContext, null, 0); 113 MockViewGroup vg = new MockViewGroup(mContext); 117 TextView textView = new TextView(mContext); 145 MockViewGroup vg = new MockViewGroup(mContext); 146 TextView textView = new TextView(mContext); 169 MockViewGroup vg = new MockViewGroup(mContext); [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
RadioButtonTest.java | 37 private Context mContext; 42 mContext = getInstrumentation().getTargetContext(); 71 AttributeSet attrs = mContext.getResources().getLayout(R.layout.radiogroup_1); 74 new RadioButton(mContext); 81 new RadioButton(mContext, attrs); 87 new RadioButton(mContext, null); 89 new RadioButton(mContext, attrs, 0); 95 new RadioButton(mContext, null, 0); 96 new RadioButton(mContext, attrs, Integer.MAX_VALUE); 97 new RadioButton(mContext, attrs, Integer.MIN_VALUE) [all...] |
TextSwitcherTest.java | 37 private Context mContext; 51 mContext = getInstrumentation().getContext(); 67 new TextSwitcher(mContext); 69 new TextSwitcher(mContext, null); 82 TextSwitcher textSwitcher = new TextSwitcher(mContext); 84 TextView tv1 = new TextView(mContext); 85 TextView tv2 = new TextView(mContext); 127 TextSwitcher textSwitcher = new TextSwitcher(mContext); 129 TextView tv1 = new TextView(mContext); 130 TextView tv2 = new TextView(mContext); [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
MetaDataTest.java | 59 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(), 88 TypedArray a = mContext.obtainStyledAttributes(xml, 99 ComponentName cn = new ComponentName(mContext, LocalActivity.class); 100 ActivityInfo ai = mContext.getPackageManager().getActivityInfo( 105 ai = mContext.getPackageManager().getActivityInfo(cn, 0); 112 ComponentName cn = new ComponentName(mContext, LocalReceiver.class); 113 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo( 118 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); 125 ComponentName cn = new ComponentName(mContext, LocalService.class); 126 ServiceInfo si = mContext.getPackageManager().getServiceInfo [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
PhoneSubInfo.java | 32 private Context mContext; 43 mContext = phone.getContext(); 62 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); 71 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); 79 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); 87 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); 95 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); 103 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); 111 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); 119 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE") [all...] |