Home
last modified time | relevance | path

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

12

/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.java57 private WifiP2pManager manager; field in WiFiDirectActivity
97 manager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); in onCreate()
98 channel = manager.initialize(this, getMainLooper(), null); in onCreate()
114 receiver = new WiFiDirectBroadcastReceiver(manager, channel, this); in onResume()
156 if (manager != null && channel != null) { in onOptionsItemSelected()
177 manager.discoverPeers(channel, new WifiP2pManager.ActionListener() { in onOptionsItemSelected()
207 manager.connect(channel, config, new ActionListener() { in connect()
227 manager.removeGroup(channel, new ActionListener() { in disconnect()
246 if (manager != null && !retryChannel) { in onChannelDisconnected()
250 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.java66 private WifiP2pManager manager; field in WiFiServiceDiscoveryActivity
118 manager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); in onCreate()
119 channel = manager.initialize(this, getMainLooper(), null); in onCreate()
149 if (manager != null && channel != null) { in onStop()
150 manager.removeGroup(channel, new ActionListener() { in onStop()
175 manager.addLocalService(channel, service, new ActionListener() { in startRegistrationAndDiscovery()
199 manager.setDnsSdResponseListeners(channel, in discoverService()
248 manager.addServiceRequest(channel, serviceRequest, in discoverService()
261 manager.discoverServices(channel, new ActionListener() { in discoverService()
282 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()
/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/
DEnableProfileActivity.java47 DevicePolicyManager manager = in enableProfile() local
51 manager.setProfileName(componentName, getString(R.string.profile_name)); in enableProfile()
53 manager.setProfileEnabled(componentName); in enableProfile()
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 …]
DMainActivity.java31 DevicePolicyManager manager = (DevicePolicyManager) in onCreate() local
33 if (manager.isProfileOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DDeviceOwnerReceiver.java38 DevicePolicyManager manager = in onProfileProvisioningComplete() local
41 manager.setProfileName(componentName, context.getString(R.string.profile_name)); in onProfileProvisioningComplete()
DMainActivity.java35 DevicePolicyManager manager = in onCreate() local
37 if (manager.isDeviceOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DInlineAdapter.java102 public void setTask(Task task, FragmentManager manager, boolean highLightRunningActivity) { in setTask() argument
130 showDialogWithFlags(manager, activity.getComponentName().getShortClassName(), in setTask()
150 private void showDialogWithFlags(FragmentManager manager, in showDialogWithFlags() argument
152 IntentDialogFragment.newInstance(shortClassName, flags, taskId).show(manager, in showDialogWithFlags()
/development/tools/winscope/
DREADME.md1 # Tool for visualizing window manager traces
11 * Install [Yarn](https://yarnpkg.com), a JS package manager
/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/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/apps/BuildWidget/src/com/android/buildwidget/
DBuildWidget.java56 AppWidgetManager manager = AppWidgetManager.getInstance(this); in onStart() local
57 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/
DSimpleWikiHelper.java115 PackageManager manager = context.getPackageManager(); in prepareUserAgent() local
116 PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0); in prepareUserAgent()
DWordWidget.java58 AppWidgetManager manager = AppWidgetManager.getInstance(this); in onStart() local
59 manager.updateAppWidget(thisWidget, updateViews); in onStart()
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/
DAppRestrictionSchemaFragment.java100 RestrictionsManager manager = in resolveRestrictions() local
102 Bundle restrictions = manager.getApplicationRestrictions(); in resolveRestrictions()
103 List<RestrictionEntry> entries = manager.getManifestRestrictions( in resolveRestrictions()
/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/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java493 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); in setUpCameraOutputs() local
495 for (String cameraId : manager.getCameraIdList()) { in setUpCameraOutputs()
497 = manager.getCameraCharacteristics(cameraId); in setUpCameraOutputs()
611 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); in openCamera() local
616 manager.openCamera(mCameraId, mStateCallback, mBackgroundHandler); in openCamera()

12