Home
last modified time | relevance | path

Searched refs:mService (Results 1 – 25 of 51) sorted by relevance

123

/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DFacadeManager.java35 private final Service mService; field in FacadeManager
43 mService = service; in FacadeManager()
52 return mService; in getService()
66 Log.notify(mService, title, title, String.format("Please use %s instead.", replacedBy)); in invoke()
77 Log.notify(mService, "RPC invoke failed...", mService.getPackageName(), e.getCause() in invoke()
89 String packageName = mService.getApplication().getPackageName(); in getAndroidFacadeResources()
90 return mService.getResources().getIdentifier("script_logo_48", "drawable", packageName); in getAndroidFacadeResources()
DSettingsFacade.java47 private final Service mService; field in SettingsFacade
61 mService = manager.getService(); in SettingsFacade()
63 mAudio = (AudioManager) mService.getSystemService(Context.AUDIO_SERVICE); in SettingsFacade()
64 mPower = (PowerManager) mService.getSystemService(Context.POWER_SERVICE); in SettingsFacade()
65 mAlarm = (AlarmManager) mService.getSystemService(Context.ALARM_SERVICE); in SettingsFacade()
66 mLockPatternUtils = new LockPatternUtils(mService); in SettingsFacade()
73 android.provider.Settings.System.putInt(mService.getContentResolver(), in setScreenTimeout()
82 return android.provider.Settings.System.getInt(mService.getContentResolver(), in getScreenTimeout()
156 return android.provider.Settings.System.getInt(mService.getContentResolver(), in getScreenBrightness()
179 android.provider.Settings.System.putInt(mService.getContentResolver(), in setScreenBrightness()
[all …]
DNfcManagerFacade.java35 private final Service mService; field in NfcManagerFacade
44 mService = manager.getService(); in NfcManagerFacade()
45 mNfcManager = (NfcManager) mService.getSystemService(Context.NFC_SERVICE); in NfcManagerFacade()
84 mService.registerReceiver(mNfcStateReceiver, mStateChangeFilter); in nfcStartTrackingStateChange()
90 mService.unregisterReceiver(mNfcStateReceiver); in nfcStopTrackingStateChange()
DApplicationManagerFacade.java46 private final Service mService; field in ApplicationManagerFacade
53 mService = manager.getService(); in ApplicationManagerFacade()
55 mActivityManager = (ActivityManager) mService.getSystemService(Context.ACTIVITY_SERVICE); in ApplicationManagerFacade()
56 mPackageManager = mService.getPackageManager(); in ApplicationManagerFacade()
82 mService.startActivity(LaunchIntent); in appLaunch()
DPreferencesFacade.java51 private Service mService; field in PreferencesFacade
55 mService = manager.getService(); in PreferencesFacade()
101 return PreferenceManager.getDefaultSharedPreferences(mService); in getPref()
103 return mService.getSharedPreferences(filename, 0); in getPref()
DLocationFacade.java83 private final Service mService; field in LocationFacade
114 mService = manager.getService(); in LocationFacade()
116 mGeocoder = new Geocoder(mService); in LocationFacade()
117 mLocationManager = (LocationManager) mService.getSystemService(Context.LOCATION_SERVICE); in LocationFacade()
144 mLocationListener, mService.getMainLooper()); in startLocating()
DAndroidFacade.java101 private final Service mService; field in AndroidFacade
118 mService = manager.getService(); in AndroidFacade()
120 BaseApplication application = ((BaseApplication) mService.getApplication()); in AndroidFacade()
122 mHandler = new Handler(mService.getMainLooper()); in AndroidFacade()
123 mVibrator = (Vibrator) mService.getSystemService(Context.VIBRATOR_SERVICE); in AndroidFacade()
125 (NotificationManager) mService.getSystemService(Context.NOTIFICATION_SERVICE); in AndroidFacade()
133 clipboard = mService.getSystemService(Context.CLIPBOARD_SERVICE); in getClipboardManager()
136 clipboard = mService.getSystemService(Context.CLIPBOARD_SERVICE); in getClipboardManager()
381 mService.startActivity(intent); in startActivity()
621 texts.add(cd.getItemAt(i).coerceToText(mService).toString()); in getTextClip()
[all …]
DFacadeManagerFactory.java33 private final Service mService; field in FacadeManagerFactory
41 mService = service; in FacadeManagerFactory()
49 FacadeManager facadeManager = new FacadeManager(mSdkLevel, mService, mIntent, mClassList); in create()
DBatteryManagerFacade.java43 private final Service mService; field in BatteryManagerFacade
63 mService = manager.getService(); in BatteryManagerFacade()
138 mService.registerReceiver(mReceiver, filter); in batteryStartMonitoring()
146 mService.unregisterReceiver(mReceiver); in batteryStopMonitoring()
DVpnFacade.java47 private final Service mService; field in VpnFacade
53 mService = manager.getService(); in VpnFacade()
101 mConService.prepareVpn(VpnConfig.LEGACY_VPN, VpnConfig.LEGACY_VPN, mService.getUserId()); in vpnStopLegacyVpn()
106 return mConService.getLegacyVpnInfo(mService.getUserId()); in vpnGetLegacyVpnInfo()
DDisplayFacade.java35 private final Service mService; field in DisplayFacade
41 mService = manager.getService(); in DisplayFacade()
42 mDisplayManager = (DisplayManager) mService.getSystemService(Context.DISPLAY_SERVICE); in DisplayFacade()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
DMediaScannerFacade.java41 private final Service mService; field in MediaScannerFacade
48 mService = manager.getService(); in MediaScannerFacade()
49 mScanService = new MediaScanner(mService, "external"); in MediaScannerFacade()
62 mService.unregisterReceiver(mReceiver); in onReceive()
69 mService.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, in mediaScanForFiles()
71 mService.registerReceiver(mReceiver, in mediaScanForFiles()
77 mService.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.parse(path))); in mediaScanForOneFile()
DMediaSessionFacade.java50 private final Service mService; field in MediaSessionFacade
61 mService = manager.getService(); in MediaSessionFacade()
64 mSession = new MediaSession(mService, "SL4A"); in MediaSessionFacade()
66 mManager = (MediaSessionManager) mService.getSystemService(Context.MEDIA_SESSION_SERVICE); in MediaSessionFacade()
70 new ComponentName(mService.getPackageName(), this.getClass().getName())); in MediaSessionFacade()
105 MainThread.run(mService, new Callable<Object>() { in mediaSessionAddCallback()
DAudioManagerFacade.java31 private final Service mService; field in AudioManagerFacade
39 mService = manager.getService(); in AudioManagerFacade()
41 mAudio = (AudioManager) mService.getSystemService(Context.AUDIO_SERVICE); in AudioManagerFacade()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothConnectionFacade.java52 private final Service mService; field in BluetoothConnectionFacade
82 mService = manager.getService(); in BluetoothConnectionFacade()
83 mContext = mService.getApplicationContext(); in BluetoothConnectionFacade()
131 mService.unregisterReceiver(listener); in unregisterCachedListener()
178 mService.unregisterReceiver(listeningDevices.remove("Connect" + mDeviceID)); in onReceive()
229 mService.unregisterReceiver(listeningDevices.remove("Bond" + mDeviceID)); in onReceive()
241 mService.unregisterReceiver(listeningDevices.remove("Bond" + mDeviceID)); in onReceive()
294 mService.registerReceiver(mPairingHelper, mPairingFilter); in connectProfile()
306 mService.registerReceiver(receiver, mA2dpStateChangeFilter); in connectProfile()
320 mService.registerReceiver(receiver, mA2dpSinkStateChangeFilter); in connectProfile()
[all …]
DBluetoothFacade.java51 private final Service mService; field in BluetoothFacade
74 mService = manager.getService(); in BluetoothFacade()
101 mService.unregisterReceiver(mDiscoveryReceiver); in onReceive()
127 if (!mIsMultiBroadcast) mService.unregisterReceiver(mStateReceiver); in onReceive()
131 if (!mIsMultiBroadcast) mService.unregisterReceiver(mStateReceiver); in onReceive()
147 mService.unregisterReceiver(mBleStateReceiver); in onReceive()
150 mService.unregisterReceiver(mBleStateReceiver); in onReceive()
296 mService.registerReceiver(mStateReceiver, in bluetoothToggleState()
315 mService.registerReceiver(mDiscoveryReceiver, discoveryFilter); in bluetoothStartDiscovery()
323 mService.unregisterReceiver(mDiscoveryReceiver); in bluetoothCancelDiscovery()
[all …]
DBluetoothPanFacade.java42 private final Service mService; field in BluetoothPanFacade
50 mService = manager.getService(); in BluetoothPanFacade()
52 mBluetoothAdapter.getProfileProxy(mService, new PanServiceListener(), in BluetoothPanFacade()
DBluetoothAvrcpFacade.java41 private final Service mService; field in BluetoothAvrcpFacade
49 mService = manager.getService(); in BluetoothAvrcpFacade()
51 mBluetoothAdapter.getProfileProxy(mService, new AvrcpServiceListener(), in BluetoothAvrcpFacade()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DTerminalManager.java81 private final ScriptingLayerService mService; field in TerminalManager
84 mService = service; in TerminalManager()
85 mPreferences = PreferenceManager.getDefaultSharedPreferences(mService); in TerminalManager()
87 mResources = mService.getResources(); in TerminalManager()
90 vibrator = (Vibrator) mService.getSystemService(Context.VIBRATOR_SERVICE); in TerminalManager()
128 InterpreterProcess process = mService.getProcess(id); in openConnection()
163 if (mService.getProcess(bridge.getId()).isAlive()) { in closeConnection()
164 Intent intent = new Intent(mService, mService.getClass()); in closeConnection()
167 mService.startService(intent); in closeConnection()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DSmsFacade.java80 private final Service mService; field in SmsFacade
147 mService = manager.getService(); in SmsFacade()
148 mContext = mService; in SmsFacade()
173 mService.registerReceiver(mSmsSendListener, smsFilter); in SmsFacade()
174 mService.registerReceiver(mMmsSendListener, mmsFilter); in SmsFacade()
179 (TelephonyManager) mService.getSystemService(Context.TELEPHONY_SERVICE); in SmsFacade()
235 mService.registerReceiver(mSmsIncomingListener, in smsStartTrackingIncomingSmsMessage()
252 mService.unregisterReceiver(mSmsIncomingListener); in smsStopTrackingIncomingSmsMessage()
264 mService.registerReceiver(mMmsIncomingListener, mmsReceived); in smsStartTrackingIncomingMmsMessage()
273 mService.unregisterReceiver(mMmsIncomingListener); in smsStopTrackingIncomingMmsMessage()
[all …]
DCarrierConfigFacade.java37 private final Service mService; field in CarrierConfigFacade
43 mService = manager.getService(); in CarrierConfigFacade()
46 (CarrierConfigManager)mService.getSystemService(Context.CARRIER_CONFIG_SERVICE); in CarrierConfigFacade()
53 String[] mProvisionApp = mService.getResources().getStringArray( in carrierConfigIsTetheringModeAllowed()
DTelephonyManagerFacade.java88 private final Service mService; field in TelephonyManagerFacade
123 mService = manager.getService(); in TelephonyManagerFacade()
125 (TelephonyManager) mService.getSystemService(Context.TELEPHONY_SERVICE); in TelephonyManagerFacade()
128 mSubscriptionManager = SubscriptionManager.from(mService); in TelephonyManagerFacade()
953 uri = mService.getContentResolver().insert( in telephonySetAPN()
960 cursor = mService.getContentResolver().query(uri, sProjection, null, null, null); in telephonySetAPN()
980 int ret = mService.getContentResolver().update(uri, values, null, null); in telephonySetAPN()
987 Cursor c = mService.getContentResolver().query( in telephonySetAPN()
997 ContentResolver resolver = mService.getContentResolver(); in telephonySetAPN()
1014 Cursor cursor = mService.getContentResolver().query( in telephonyGetNumberOfAPNs()
[all …]
DSubscriptionManagerFacade.java36 private final Service mService; field in SubscriptionManagerFacade
42 mService = manager.getService(); in SubscriptionManagerFacade()
43 mContext = mService.getBaseContext(); in SubscriptionManagerFacade()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DScriptProcessMonitor.java59 private volatile ScriptingLayerService mService; field in ScriptProcessMonitor
69 mService = ((ScriptingLayerService.LocalBinder) service).getService();
77 mService = null;
185 if (mService == null) { in run()
189 int freshModCount = mService.getModCount(); in run()
192 mmList = mService.getScriptProcessesList(); in run()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiScannerFacade.java56 private final Service mService; field in WifiScannerFacade
73 mService = manager.getService(); in WifiScannerFacade()
74 mScan = (WifiScanner) mService.getSystemService(Context.WIFI_SCANNING_SERVICE); in WifiScannerFacade()
140 WifiScanListener mWifiScannerListener = MainThread.run(mService, in genWifiScanListener()
157 WifiScanListener mWifiScannerListener = MainThread.run(mService, in genBackgroundWifiScanListener()
230 ChangeListener mWifiChangeListener = MainThread.run(mService, in genWifiChangeListener()
288 WifiBssidListener mWifiBssidListener = MainThread.run(mService, in genWifiBssidListener()
552 int current_state = Global.getInt(mService.getContentResolver(), in wifiScannerToggleAlwaysAvailable()
558 Global.putInt(mService.getContentResolver(), Global.WIFI_SCAN_ALWAYS_AVAILABLE, new_state); in wifiScannerToggleAlwaysAvailable()
563 int current_state = Global.getInt(mService.getContentResolver(), in wifiScannerIsAlwaysAvailable()

123