Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 18 of 18) sorted by relevance

/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/
DNotificationCenter.java91 nc.mContext = context; in initialize()
117 CharSequence dfuName = mContext.getString(R.string.settings_notif_update_channel_name); in createNotificationChannel()
118 String dfuDescr = mContext.getString(R.string.settings_notif_update_channel_description); in createNotificationChannel()
122 CharSequence name = mContext.getString(R.string.settings_notif_battery_channel_name); in createNotificationChannel()
123 String descr = mContext.getString(R.string.settings_notif_battery_channel_description); in createNotificationChannel()
146 private Context mContext; field in NotificationCenter
188 Intent intent = new Intent(mContext, RemoteDfuConfirmationActivity.class); in sendDfuNotificationImpl()
192 PendingIntent updateIntent = PendingIntent.getActivity(mContext, in sendDfuNotificationImpl()
197 mContext.getString(R.string.settings_notif_update_action), in sendDfuNotificationImpl()
201 mContext.getString(R.string.settings_notif_update_dismiss), null) in sendDfuNotificationImpl()
[all …]
/device/generic/goldfish-opengl/system/codecs/omx/avcdec/
DGoldfishAVCDec.cpp119 if (mContext) { in resetDecoder()
122 mContext->destroyH264Context(); in resetDecoder()
123 mContext.reset(nullptr); in resetDecoder()
132 mContext->flush(); in setFlushMode()
141 mContext.reset(new MediaH264Decoder(mRenderMode)); in initDecoder()
142 mContext->initH264Context(mWidth, in initDecoder()
158 if (mContext) { in deInitDecoder()
159 mContext->destroyH264Context(); in deInitDecoder()
160 mContext.reset(); in deInitDecoder()
233 while (mContext) { in readAndDiscardAllHostBuffers()
[all …]
/device/sample/apps/tv/LeanbackCustomizer/src/com/google/android/leanbacklauncher/partnercustomizer/
DPartnerReceiver.java52 private Context mContext; field in PartnerReceiver
63 if (mContext == null) { in onReceive()
64 mContext = context; in onReceive()
66 mContext.getSystemService(Context.NOTIFICATION_SERVICE); in onReceive()
67 mPkgMan = mContext.getPackageManager(); in onReceive()
121 Notification.Builder bob = new Notification.Builder(mContext); in postNotification()
125 bob.setContentTitle(mContext.getString(titleId)) in postNotification()
127 .setLargeIcon(BitmapFactory.decodeResource(mContext.getResources(), resId)) in postNotification()
128 .setContentIntent(PendingIntent.getActivity(mContext, 0, intent, 0)) in postNotification()
132 .setColor(mContext.getResources().getColor(R.color.partner_color)) in postNotification()
/device/generic/goldfish-opengl/system/codecs/c2/decoders/hevcdec/
DC2GoldfishHevcDec.cpp415 if (mContext && !mCsd0.empty()) { in decodeHeaderAfterFlush()
416 mContext->decodeFrame(&(mCsd0[0]), mCsd0.size(), 0); in decodeHeaderAfterFlush()
426 if (!mContext) { in onFlush_sm()
443 mImg = mContext->getImage(); in onFlush_sm()
480 mContext->sendMetadata(&(mSentMetadata)); in sendMetadata()
487 mContext.reset(new MediaHevcDecoder(RenderMode::RENDER_BY_HOST_GPU)); in createDecoder()
489 mContext.reset(new MediaHevcDecoder(RenderMode::RENDER_BY_GUEST_CPU)); in createDecoder()
491 mContext->initHevcContext(mWidth, mHeight, mWidth, mHeight, in createDecoder()
549 if (mContext) { in setFlushMode()
550 mContext->flush(); in setFlushMode()
[all …]
DC2GoldfishHevcDec.h62 std::unique_ptr<MediaHevcDecoder> mContext;
/device/google/atv/TvSampleLeanbackLauncher/src/main/java/com/example/sampleleanbacklauncher/
DSystemUpdateChecker.java48 private final Context mContext; field in SystemUpdateChecker
51 mContext = context; in SystemUpdateChecker()
57 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); in getSystemUpdateCheckerIntent()
63 PackageManager pm = mContext.getPackageManager(); in getSystemUpdateCheckerIntent()
82 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); in onSystemUpdateCheckerComplete()
88 return Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in getBootCount()
/device/generic/goldfish-opengl/system/codecs/c2/decoders/avcdec/
DC2GoldfishAvcDec.cpp471 if (mContext && !mCsd0.empty() && !mCsd1.empty()) { in decodeHeaderAfterFlush()
472 mContext->decodeFrame(&(mCsd0[0]), mCsd0.size(), 0); in decodeHeaderAfterFlush()
473 mContext->decodeFrame(&(mCsd1[0]), mCsd1.size(), 0); in decodeHeaderAfterFlush()
482 if (!mContext) { in onFlush_sm()
499 mImg = mContext->getImage(); in onFlush_sm()
536 mContext->sendMetadata(&(mSentMetadata)); in sendMetadata()
543 mContext.reset(new MediaH264Decoder(RenderMode::RENDER_BY_HOST_GPU)); in createDecoder()
545 mContext.reset(new MediaH264Decoder(RenderMode::RENDER_BY_GUEST_CPU)); in createDecoder()
547 mContext->initH264Context(mWidth, mHeight, mWidth, mHeight, in createDecoder()
603 if (mContext) { in setFlushMode()
[all …]
DC2GoldfishAvcDec.h62 std::unique_ptr<MediaH264Decoder> mContext;
/device/google/atv/MdnsOffloadManagerService/src/com/android/tv/mdnsoffloadmanager/
DMdnsOffloadManagerService.java96 private Context mContext = null; field in MdnsOffloadManagerService.Injector
100 mContext = context; in setContext()
113 return mContext.getResources(); in getResources()
117 return mContext.getSystemService(ConnectivityManager.class); in getConnectivityManager()
122 return mContext.getSystemService(PowerManager.class).getLowPowerStandbyPolicy(); in getLowPowerStandbyPolicy()
127 mContext.getSystemService(PowerManager.class) in newWakeLock()
132 return mContext.getPackageManager(); in getPackageManager()
136 return mContext.getSystemService(PowerManager.class).isInteractive(); in isInteractive()
140 return mContext.bindService(intent, connection, flags); in bindService()
144 mContext.registerReceiver(receiver, filter, flags); in registerReceiver()
/device/google/cuttlefish/tests/ril/src/com/android/cuttlefish/ril/tests/
DRilE2eTests.java59 private Context mContext; field in RilE2eTests
73 mContext = ApplicationProvider.getApplicationContext(); in setUp()
74 mWifiManager = (WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
75 mConnManager = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
76 mTeleManager = (TelephonyManager)mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
123 mTeleManager.requestCellInfoUpdate(mContext.getMainExecutor(), in testSignalLevels()
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/remote/
DDfuProvider.java60 if (mContext != null) { in onEvent()
125 private final Context mContext;
155 mContext = context; in DfuProvider()
160 Arrays.asList(mContext.getResources().getStringArray(R.array.dfu_binary_md5s)))); in DfuProvider()
163 mContext.getResources().getStringArray(R.array.manual_reconnection_remote_versions); in DfuProvider()
253 if (mContext == null) { in checkExternalStorage()
DTransportManager.java108 private final Context mContext; field in TransportManager
122 mContext = context; in TransportManager()
199 mTransport = mFactory.build(mDevice, this::processQueueImpl, mHandler, mContext, this); in processQueueImpl()
/device/google/cuttlefish/tests/wifi/src/com/android/cuttlefish/wifi/tests/
DWifiE2eTests.java48 private Context mContext; field in WifiE2eTests
54 mContext = ApplicationProvider.getApplicationContext(); in setUp()
55 mWifiManager = (WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
56 mConnManager = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
/device/google/atv/TvSampleLeanbackLauncher/src/main/java/com/example/sampleleanbacklauncher/apps/
DNotificationsLaunchItem.java16 private final Context mContext; field in NotificationsLaunchItem
23 mContext = context; in NotificationsLaunchItem()
43 return mContext.getResources().getQuantityString(R.plurals.notifications_title, in getLabel()
/device/google/cuttlefish/guest/monitoring/cuttlefish_service/java/com/android/google/gce/gceservice/
DConnectivityChecker.java34 private final Context mContext; field in ConnectivityChecker
43 mContext = context; in ConnectivityChecker()
50 …ConnectivityManager connManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTI… in execute()
DGceWifiManager.java41 private final Context mContext; field in GceWifiManager
52 mContext = context; in GceWifiManager()
/device/google/cuttlefish/guest/hals/ril/reference-libril/
DRefImsMedia.cpp37 ndk::SharedRefBase::make<RefImsMediaSession>(mContext, mHal1_5, mCallbackManager); in openSession()
/device/generic/goldfish-opengl/system/codecs/omx/avcdec/include/
DGoldfishAVCDec.h126 std::unique_ptr<MediaH264Decoder> mContext; member