Home
last modified time | relevance | path

Searched refs:manager (Results 1 – 24 of 24) sorted by relevance

/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DWiFiDirectBroadcastReceiver.java34 private WifiP2pManager manager; field in WiFiDirectBroadcastReceiver
43 public WiFiDirectBroadcastReceiver(WifiP2pManager manager, Channel channel, in WiFiDirectBroadcastReceiver() argument
46 this.manager = manager; in WiFiDirectBroadcastReceiver()
77 if (manager != null) { in onReceive()
78 manager.requestPeers(channel, (PeerListListener) activity.getFragmentManager() in onReceive()
84 if (manager == null) { in onReceive()
98 manager.requestConnectionInfo(channel, fragment); in onReceive()
DWiFiDirectActivity.java51 private WifiP2pManager manager; field in WiFiDirectActivity
78 manager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); in onCreate()
79 channel = manager.initialize(this, getMainLooper(), null); in onCreate()
86 receiver = new WiFiDirectBroadcastReceiver(manager, channel, this); in onResume()
128 if (manager != null && channel != null) { in onOptionsItemSelected()
149 manager.discoverPeers(channel, new WifiP2pManager.ActionListener() { in onOptionsItemSelected()
179 manager.connect(channel, config, new ActionListener() { in connect()
199 manager.removeGroup(channel, new ActionListener() { in disconnect()
218 if (manager != null && !retryChannel) { in onChannelDisconnected()
222 manager.initialize(this, getMainLooper(), this); in onChannelDisconnected()
[all …]
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DWiFiDirectBroadcastReceiver.java36 private WifiP2pManager manager; field in WiFiDirectBroadcastReceiver
45 public WiFiDirectBroadcastReceiver(WifiP2pManager manager, Channel channel, in WiFiDirectBroadcastReceiver() argument
48 this.manager = manager; in WiFiDirectBroadcastReceiver()
64 if (manager == null) { in onReceive()
77 manager.requestConnectionInfo(channel, in onReceive()
DWiFiServiceDiscoveryActivity.java60 private WifiP2pManager manager; field in WiFiServiceDiscoveryActivity
97 manager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); in onCreate()
98 channel = manager.initialize(this, getMainLooper(), null); in onCreate()
118 if (manager != null && channel != null) { in onStop()
119 manager.removeGroup(channel, new ActionListener() { in onStop()
144 manager.addLocalService(channel, service, new ActionListener() { in startRegistrationAndDiscovery()
168 manager.setDnsSdResponseListeners(channel, in discoverService()
217 manager.addServiceRequest(channel, serviceRequest, in discoverService()
230 manager.discoverServices(channel, new ActionListener() { in discoverService()
251 manager.removeServiceRequest(channel, serviceRequest, in connectP2p()
[all …]
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DEnableProfileActivity.java37 DevicePolicyManager manager = in onCreate() local
40 manager.setProfileName(componentName, getString(R.string.profile_name)); in onCreate()
41 manager.setProfileEnabled(componentName); in onCreate()
DMainActivity.java31 DevicePolicyManager manager = (DevicePolicyManager) in onCreate() local
33 if (manager.isProfileOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
/development/samples/SipDemo/src/com/example/android/sip/
DWalkieTalkieActivity.java45 public SipManager manager = null; field in WalkieTalkieActivity
103 if(manager == null) { in initializeManager()
104 manager = SipManager.newInstance(this); in initializeManager()
115 if (manager == null) { in initializeLocalProfile()
141 manager.open(me, pi, null); in initializeLocalProfile()
147 manager.setRegistrationListener(me.getUriString(), new SipRegistrationListener() { in initializeLocalProfile()
173 if (manager == null) { in closeLocalProfile()
178 manager.close(me.getUriString()); in closeLocalProfile()
211 call = manager.makeAudioCall(me.getUriString(), sipAddress, listener, 30); in initiateCall()
218 manager.close(me.getUriString()); in initiateCall()
DIncomingCallReceiver.java53 incomingCall = wtActivity.manager.takeAudioCall(intent, listener); in onReceive()
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
DBasicManagedProfileFragment.java248 final DevicePolicyManager manager = in setChromeRestrictions() local
282 manager.setApplicationRestrictions in setChromeRestrictions()
300 final DevicePolicyManager manager = in clearChromeRestrictions() local
304 manager.setApplicationRestrictions in clearChromeRestrictions()
318 DevicePolicyManager manager = in enableForwarding() local
325 manager.addCrossProfileIntentFilter(BasicDeviceAdminReceiver.getComponentName(activity), in enableForwarding()
340 DevicePolicyManager manager = in disableForwarding() local
342 manager.clearCrossProfileIntentFilters(BasicDeviceAdminReceiver.getComponentName(activity)); in disableForwarding()
354 DevicePolicyManager manager = in sendIntent() local
359 manager.isProfileOwnerApp(activity.getApplicationContext().getPackageName()) in sendIntent()
[all …]
DEnableProfileActivity.java47 DevicePolicyManager manager = in enableProfile() local
51 manager.setProfileName(componentName, getString(R.string.profile_name)); in enableProfile()
53 manager.setProfileEnabled(componentName); in enableProfile()
DMainActivity.java31 DevicePolicyManager manager = (DevicePolicyManager) in onCreate() local
33 if (manager.isProfileOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
/development/ndk/platforms/android-9/include/android/
Dsensor.h157 int ASensorManager_getSensorList(ASensorManager* manager, ASensorList* list);
163 ASensor const* ASensorManager_getDefaultSensor(ASensorManager* manager, int type);
168 ASensorEventQueue* ASensorManager_createEventQueue(ASensorManager* manager,
174 int ASensorManager_destroyEventQueue(ASensorManager* manager, ASensorEventQueue* queue);
/development/ndk/platforms/android-19/include/android/
Dsensor.h190 int ASensorManager_getSensorList(ASensorManager* manager, ASensorList* list);
196 ASensor const* ASensorManager_getDefaultSensor(ASensorManager* manager, int type);
201 ASensorEventQueue* ASensorManager_createEventQueue(ASensorManager* manager,
207 int ASensorManager_destroyEventQueue(ASensorManager* manager, ASensorEventQueue* queue);
/development/samples/Home/src/com/example/android/home/
DHome.java355 final PackageManager manager = getPackageManager(); in bindRecents() local
369 ApplicationInfo info = getApplicationInfo(manager, intent); in bindRecents()
382 private static ApplicationInfo getApplicationInfo(PackageManager manager, Intent intent) { in getApplicationInfo() argument
383 final ResolveInfo resolveInfo = manager.resolveActivity(intent, 0); in getApplicationInfo()
391 info.icon = activityInfo.loadIcon(manager); in getApplicationInfo()
393 info.title = activityInfo.loadLabel(manager); in getApplicationInfo()
484 PackageManager manager = getPackageManager(); in loadApplications() local
489 final List<ResolveInfo> apps = manager.queryIntentActivities(mainIntent, 0); in loadApplications()
490 Collections.sort(apps, new ResolveInfo.DisplayNameComparator(manager)); in loadApplications()
504 application.title = info.loadLabel(manager); in loadApplications()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/content/
DChangedContacts.java134 LoaderManager manager = getLoaderManager(); in changeClick() local
135 manager.destroyLoader(ID_DELETE_LOADER); in changeClick()
136 manager.restartLoader(ID_CHANGE_LOADER, null, this); in changeClick()
141 LoaderManager manager = getLoaderManager(); in deleteClick() local
142 manager.destroyLoader(ID_CHANGE_LOADER); in deleteClick()
143 manager.restartLoader(ID_DELETE_LOADER, null, this); in deleteClick()
/development/apps/BuildWidget/src/com/android/buildwidget/
DBuildWidget.java57 AppWidgetManager manager = AppWidgetManager.getInstance(this); in onStart() local
58 manager.updateAppWidget(thisWidget, updateViews); in onStart()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DCameraOps.java64 CameraOps(CameraManager manager, ErrorDisplayer errorDisplayer, in CameraOps() argument
69 if (manager == null || errorDisplayer == null || in CameraOps()
74 mCameraManager = manager; in CameraOps()
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DWordWidget.java59 AppWidgetManager manager = AppWidgetManager.getInstance(this); in onStart() local
60 manager.updateAppWidget(thisWidget, updateViews); in onStart()
DSimpleWikiHelper.java122 PackageManager manager = context.getPackageManager(); in prepareUserAgent() local
123 PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0); in prepareUserAgent()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DWordWidget.java58 AppWidgetManager manager = AppWidgetManager.getInstance(this); in onStart() local
59 manager.updateAppWidget(thisWidget, updateViews); in onStart()
DSimpleWikiHelper.java115 PackageManager manager = context.getPackageManager(); in prepareUserAgent() local
116 PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0); in prepareUserAgent()
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java405 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); in setUpCameraOutputs() local
407 for (String cameraId : manager.getCameraIdList()) { in setUpCameraOutputs()
409 = manager.getCameraCharacteristics(cameraId); in setUpCameraOutputs()
464 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); in openCamera() local
469 manager.openCamera(mCameraId, mStateCallback, mBackgroundHandler); in openCamera()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentTabsFragment.java127 public TabManager(Context context, FragmentManager manager, int containerId) { in TabManager() argument
129 mManager = manager; in TabManager()
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java342 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); in openCamera() local
347 String cameraId = manager.getCameraIdList()[0]; in openCamera()
350 CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId); in openCamera()
365 manager.openCamera(cameraId, mStateCallback, null); in openCamera()