/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
CameraBinderTestUtils.java | 25 private final Context mContext; 29 mContext = context; 52 if (CameraBinderTestUtils.isFeatureAvailable(mContext, 58 if (CameraBinderTestUtils.isFeatureAvailable(mContext, 65 && CameraBinderTestUtils.isFeatureAvailable(mContext,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
QuickSettings.java | 90 private Context mContext; 121 mContext = context; 137 mContext.registerReceiver(mReceiver, filter); 142 mContext.registerReceiverAsUser(mProfileReceiver, UserHandle.ALL, profileFilter, 205 currentUserContext = mContext.createPackageContextAsUser("android", 0, 220 final UserManager um = UserManager.get(mContext); 228 avatar = new BitmapDrawable(mContext.getResources(), rawAvatar); 230 avatar = mContext.getResources().getDrawable(R.drawable.ic_qs_default_user); 266 LayoutInflater inflater = LayoutInflater.from(mContext); 298 mContext.startActivityAsUser(intent, new UserHandle(UserHandle.USER_CURRENT)) [all...] |
/frameworks/compile/libbcc/include/bcc/ExecutionEngine/ |
SymbolResolvers.h | 110 ContextTy mContext; 115 : mLookupFunc(pLookupFunc), mContext(pContext) { } 118 return ((mLookupFunc != NULL) ? mLookupFunc(mContext, pName) : NULL); 124 { return mContext; } 129 { mContext = pContext; }
|
/packages/apps/Settings/src/com/android/settings/ |
NsdEnabler.java | 34 private final Context mContext; 51 mContext = context; 53 mNsdManager = (NsdManager) mContext.getSystemService(Context.NSD_SERVICE); 58 mContext.registerReceiver(mReceiver, mIntentFilter); 63 mContext.unregisterReceiver(mReceiver);
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
PaymentBackend.java | 41 private final Context mContext; 46 mContext = context; 53 PackageManager pm = mContext.getPackageManager(); 78 String componentString = Settings.Secure.getString(mContext.getContentResolver(), 88 Settings.Secure.putString(mContext.getContentResolver(),
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
ConnectReqTestCase.java | 46 mReceiverTest = new P2pBroadcastReceiverTest(mContext); 96 mReason = mContext.getString(R.string.p2p_discover_peers_error); 102 mReason = mContext.getString(R.string.p2p_target_not_found_error); 108 mReason = mContext.getString(R.string.p2p_target_invalid_role_error); 112 mReason = mContext.getString(R.string.p2p_target_invalid_role_error2); 130 mReason = mContext.getString(R.string.p2p_connect_error); 139 mReason = mContext.getString(R.string.p2p_connection_error); 148 mReason = mContext.getString(R.string.p2p_connection_error); 157 mReason = mContext.getString(R.string.p2p_remove_group_error); 168 mReason = mContext.getString(R.string.p2p_connection_error) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ToggleButtonTest.java | 39 Context mContext; 46 mContext = getContext(); 47 XmlPullParser parser = mContext.getResources().getXml(R.layout.togglebutton_layout); 49 mToggleButton = new ToggleButton(mContext, mAttrSet); 53 new ToggleButton(mContext, mAttrSet, 0); 54 new ToggleButton(mContext, mAttrSet); 55 new ToggleButton(mContext); 92 MockToggleButton toggleButton = new MockToggleButton(mContext); 98 Resources resources = mContext.getResources(); 110 MockToggleButton toggleButton = new MockToggleButton(mContext); [all...] |
DigitalClockTest.java | 42 private Context mContext; 52 mContext = getInstrumentation().getContext(); 57 new DigitalClock(mContext); 60 new DigitalClock(mContext, null); 63 new DigitalClock(mContext, getAttributeSet(R.layout.digitalclock_layout)); 65 // Test constructor with null Context, in fact, DigitalClock(mContext) function will 107 MockDigitalClock datePicker = new MockDigitalClock(mContext,
|
SimpleAdapterTest.java | 80 private Context mContext; 89 mContext = getInstrumentation().getTargetContext(); 90 mInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 95 mSimpleAdapter = new SimpleAdapter(mContext, 101 new SimpleAdapter(mContext, createTestList(DEFAULT_COLUMN_COUNT, DEFAULT_ROW_COUNT), 106 mSimpleAdapter = new SimpleAdapter(mContext, 111 mSimpleAdapter = new SimpleAdapter(mContext, createTestList(DEFAULT_COLUMN_COUNT, 10), 281 ImageView view = new ImageView(mContext); 284 BitmapDrawable d = (BitmapDrawable) mContext.getResources().getDrawable( 290 view = new ImageView(mContext); [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
CertificateViewer.java | 37 private final Context mContext; 55 mContext = context; 68 ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(mContext, 73 Spinner spinner = new Spinner(mContext); 77 LinearLayout container = new LinearLayout(mContext); 94 Dialog dialog = new Dialog(mContext); 96 ScrollView scrollView = new ScrollView(mContext); 118 LinearLayout certificateView = new LinearLayout(mContext); 146 java.text.DateFormat dateFormat = DateFormat.getDateFormat(mContext); 172 TextView t = new TextView(mContext); [all...] |
/packages/apps/DeskClock/src/com/android/alarmclock/ |
DigitalWidgetViewsFactory.java | 42 private Context mContext; 67 mContext.getPackageName(), R.layout.world_clock_remote_list_item); 106 float fontSize = mFontScale * (DateFormat.is24HourFormat(mContext) 115 clock.setTextViewText(dayId, mContext.getString( 136 mContext = context; 137 mResources = mContext.getResources(); 149 if (WidgetUtils.showList(mContext, mId, mFontScale)) { 194 mAdapter.loadData(mContext); 195 mAdapter.loadCitiesDb(mContext); 196 mAdapter.updateHomeLabel(mContext); [all...] |
/packages/apps/Email/src/com/android/email/ |
NotificationController.java | 83 private final Context mContext; 93 mContext = context.getApplicationContext(); 142 mContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); 146 final NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext) 158 Account account = Account.restoreAccountWithId(mContext, accountId); 196 ContentResolver resolver = mContext.getContentResolver(); 203 mAccountObserver = new AccountContentObserver(sNotificationHandler, mContext); 268 ContentResolver resolver = mContext.getContentResolver(); 286 sNotificationHandler, mContext, accountId); 303 ContentResolver resolver = mContext.getContentResolver() [all...] |
/frameworks/base/core/java/android/text/style/ |
ImageSpan.java | 33 private Context mContext; 62 mContext = context; 108 mContext = context; 123 mContext = context; 136 InputStream is = mContext.getContentResolver().openInputStream( 139 drawable = new BitmapDrawable(mContext.getResources(), bitmap); 148 drawable = mContext.getResources().getDrawable(mResourceId);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ |
MediaSizeUtils.java | 68 private final Context mContext; 71 mContext = context; 76 String currentStandard = mContext.getString(R.string.mediasize_standard); 77 String lhsStandard = getStandardForMediaSize(mContext, lhs); 78 String rhsStandard = getStandardForMediaSize(mContext, rhs); 94 return lhs.getLabel(mContext.getPackageManager()). 95 compareTo(rhs.getLabel(mContext.getPackageManager()));
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppNotification.java | 90 private Context mContext; 134 mContext = ctx; 135 mNotificationMgr = (NotificationManager)mContext 213 Cursor cursor = mContext.getContentResolver().query(BluetoothShare.CONTENT_URI, null, 254 fileName = mContext.getString(R.string.unknown_file); 269 item.description = mContext.getString(R.string.notification_sending, fileName); 271 item.description = mContext 311 mContext.sendBroadcast(intent, Constants.HANDOVER_STATUS_PERMISSION); 316 Notification.Builder b = new Notification.Builder(mContext); 335 b.setContentIntent(PendingIntent.getBroadcast(mContext, 0, intent, 0)) [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactDeltaListTests.java | 83 mContext = getContext(); 315 final RawContactDelta updateFirst = getUpdate(mContext, CONTACT_FIRST); 316 final RawContactDelta updateSecond = getUpdate(mContext, CONTACT_SECOND); 326 final RawContactDelta update = getUpdate(mContext, CONTACT_FIRST); 338 final RawContactDelta update = getUpdate(mContext, CONTACT_FIRST); 361 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, 363 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, 372 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, 374 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, 397 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
CalendarSyncEnabler.java | 43 private final Context mContext; 46 this.mContext = context; 69 Account[] exchangeAccounts = AccountManager.get(mContext) 99 PendingIntent launchCalendarPendingIntent = PendingIntent.getActivity(mContext, 0, 102 String tickerText = mContext.getString(R.string.notification_exchange_calendar_added); 105 n.setLatestEventInfo(mContext, tickerText, emailAddresses, launchCalendarPendingIntent); 109 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE);
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
SyncAdapterTestCase.java | 37 public Context mContext; 51 mContext = getContext(); 53 mProviderContext = mContext; 54 mResolver = mContext.getContentResolver(); 87 service.mContext = mContext; 90 service.mContentResolver = mContext.getContentResolver();
|
/frameworks/base/core/java/com/android/internal/widget/ |
PasswordEntryKeyboardHelper.java | 53 private final Context mContext; 86 mContext = context; 120 mNumericKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[NUMERIC], width, height); 121 mQwertyKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[QWERTY], R.id.mode_normal, 125 mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, mLayouts[QWERTY_SHIFTED], 130 mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[SYMBOLS], width, height); 133 mSymbolsKeyboardShifted = new PasswordEntryKeyboard(mContext, mLayouts[SYMBOLS_SHIFTED], 140 mNumericKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[NUMERIC]); 141 mQwertyKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[QWERTY], R.id.mode_normal); 144 mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, mLayouts[QWERTY_SHIFTED] [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
Recents.java | 52 TaskDescription firstTask = RecentTasksLoader.getInstance(mContext).getFirstTask(); 61 if (RecentsActivity.forceOpaqueBackground(mContext)) { 62 ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext, 65 mContext.startActivityAsUser(intent, opts.toBundle(), new UserHandle( 69 mContext.startActivityAsUser(intent, new UserHandle( 79 Drawable d = RecentTasksLoader.getInstance(mContext).getDefaultThumbnail(); 82 final Resources res = mContext.getResources(); 180 mContext.sendBroadcastAsUser(intent, 185 mContext.startActivityAsUser(intent, opts.toBundle(), new UserHandle( 199 mContext.sendBroadcastAsUser(intent, new UserHandle(UserHandle.USER_CURRENT)) [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
RawContactReadOnlyEditorView.java | 136 CharSequence accountType = type.getDisplayLabel(mContext); 137 mAccountTypeTextView.setText(mContext.getString(R.string.external_profile_title, 142 CharSequence accountType = type.getDisplayLabel(mContext); 144 accountType = mContext.getString(R.string.account_phone); 149 mContext.getString(R.string.from_account_format, mAccountName)); 154 mAccountTypeTextView.setText(mContext.getString(R.string.account_type_format, 157 mAccountTypeTextView.setTextColor(mContext.getResources().getColor( 162 mAccountIcon.setImageDrawable(type.getDisplayIcon(mContext)); 181 mContext.getString(R.string.missing_name)); 191 Toast.makeText(mContext, mContext.getString(R.string.contact_read_only) [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/ |
PhoneNumberInteractionTest.java | 74 private ContactsMockContext mContext; 80 mContext = new ContactsMockContext(getInstrumentation().getTargetContext()); 81 mContactsProvider = mContext.getContactsProvider(); 97 mContext, ContactDisplayUtils.INTERACTION_SMS, null); 102 Intent intent = mContext.getIntentForStartActivity(); 116 mContext, ContactDisplayUtils.INTERACTION_SMS, null); 121 Intent intent = mContext.getIntentForStartActivity(); 137 mContext, ContactDisplayUtils.INTERACTION_SMS, null); 142 Intent intent = mContext.getIntentForStartActivity(); 178 mContext, ContactDisplayUtils.INTERACTION_CALL, null) [all...] |
/frameworks/base/services/java/com/android/server/ |
NetworkManagementService.java | 144 private Context mContext; 193 mContext = context; 230 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); 236 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); 556 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); 567 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); 611 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); 633 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); 641 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); 649 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG) [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarViewAdapter.java | 72 private final Context mContext; 82 refresh(mContext); 91 mContext = context; 189 if (Utils.getShowWeekNumber(mContext)) { 321 dayOfWeek = mContext.getString(R.string.agenda_today, 322 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 325 dayOfWeek = mContext.getString(R.string.agenda_yesterday, 326 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 329 dayOfWeek = mContext.getString(R.string.agenda_tomorrow, 330 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime [all...] |
/packages/apps/Mms/src/com/android/mms/widget/ |
MmsWidgetService.java | 65 private final Context mContext; 79 mContext = context; 133 return mContext.getContentResolver().query( 142 cursor = mContext.getContentResolver().query( 224 Conversation conv = Conversation.from(mContext, mConversationCursor); 228 mContext.getPackageName(), R.layout.widget_conversation); 243 addColor(MessageUtils.formatTimeStampString(mContext, conv.getDate()), 254 from.append(mContext.getResources().getString(R.string.draft_separator)); 256 from.append(mContext.getResources().getString(R.string.has_draft)); 257 from.setSpan(new TextAppearanceSpan(mContext, [all...] |