/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
D | WiFiDirectBroadcastReceiver.java | 34 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()
|
D | WiFiDirectActivity.java | 58 private WifiP2pManager manager; field in WiFiDirectActivity 105 manager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); in initP2p() 106 if (manager == null) { in initP2p() 111 channel = manager.initialize(this, getMainLooper(), null); in initP2p() 150 receiver = new WiFiDirectBroadcastReceiver(manager, channel, this); in onResume() 192 if (manager != null && channel != null) { in onOptionsItemSelected() 213 manager.discoverPeers(channel, new WifiP2pManager.ActionListener() { in onOptionsItemSelected() 243 manager.connect(channel, config, new ActionListener() { in connect() 263 manager.removeGroup(channel, new ActionListener() { in disconnect() 282 if (manager != null && !retryChannel) { in onChannelDisconnected() [all …]
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
D | WiFiDirectBroadcastReceiver.java | 36 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()
|
D | WiFiServiceDiscoveryActivity.java | 67 private WifiP2pManager manager; field in WiFiServiceDiscoveryActivity 124 manager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); in initP2p() 125 if (manager == null) { in initP2p() 130 channel = manager.initialize(this, getMainLooper(), null); in initP2p() 185 if (manager != null && channel != null) { in onStop() 186 manager.removeGroup(channel, new ActionListener() { in onStop() 211 manager.addLocalService(channel, service, new ActionListener() { in startRegistrationAndDiscovery() 235 manager.setDnsSdResponseListeners(channel, in discoverService() 284 manager.addServiceRequest(channel, serviceRequest, in discoverService() 297 manager.discoverServices(channel, new ActionListener() { in discoverService() [all …]
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
D | EnableProfileActivity.java | 37 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/ |
D | WalkieTalkieActivity.java | 45 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()
|
D | IncomingCallReceiver.java | 53 incomingCall = wtActivity.manager.takeAudioCall(intent, listener); in onReceive()
|
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/ |
D | EnableProfileActivity.java | 47 DevicePolicyManager manager = in enableProfile() local 51 manager.setProfileName(componentName, getString(R.string.profile_name)); in enableProfile() 53 manager.setProfileEnabled(componentName); in enableProfile()
|
D | BasicManagedProfileFragment.java | 248 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 …]
|
D | MainActivity.java | 31 DevicePolicyManager manager = (DevicePolicyManager) in onCreate() local 33 if (manager.isProfileOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
|
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/ |
D | DeviceOwnerReceiver.java | 38 DevicePolicyManager manager = in onProfileProvisioningComplete() local 41 manager.setProfileName(componentName, context.getString(R.string.profile_name)); in onProfileProvisioningComplete()
|
D | MainActivity.java | 35 DevicePolicyManager manager = in onCreate() local 37 if (manager.isDeviceOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
|
/development/samples/IntentPlayground/src/com/example/android/intentplayground/ |
D | InlineAdapter.java | 102 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/samples/ApiDemos/src/com/example/android/apis/content/ |
D | ChangedContacts.java | 134 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/ |
D | Home.java | 355 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/ |
D | BuildWidget.java | 56 AppWidgetManager manager = AppWidgetManager.getInstance(this); in onStart() local 57 manager.updateAppWidget(thisWidget, updateViews); in onStart()
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
D | CameraOps.java | 64 CameraOps(CameraManager manager, ErrorDisplayer errorDisplayer, in CameraOps() argument 69 if (manager == null || errorDisplayer == null || in CameraOps() 74 mCameraManager = manager; in CameraOps()
|
/development/tools/winscope/ |
D | README.md | 1 # Tool for visualizing window manager traces 11 * Install [Yarn](https://yarnpkg.com), a JS package manager
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
D | WordWidget.java | 59 AppWidgetManager manager = AppWidgetManager.getInstance(this); in onStart() local 60 manager.updateAppWidget(thisWidget, updateViews); in onStart()
|
D | SimpleWikiHelper.java | 122 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/ |
D | SimpleWikiHelper.java | 115 PackageManager manager = context.getPackageManager(); in prepareUserAgent() local 116 PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0); in prepareUserAgent()
|
D | WordWidget.java | 58 AppWidgetManager manager = AppWidgetManager.getInstance(this); in onStart() local 59 manager.updateAppWidget(thisWidget, updateViews); in onStart()
|
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/ |
D | AppRestrictionSchemaFragment.java | 100 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/ |
D | FragmentTabsFragment.java | 127 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/ |
D | Camera2BasicFragment.java | 493 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()
|