1{ 2 "methods": { 3 "__constructor__(android.content.Context,android.app.admin.IDevicePolicyManager)": { 4 "isImplementation": true, 5 "modifiers": [ 6 "protected" 7 ], 8 "params": [ 9 "context", 10 "service" 11 ], 12 "returnType": "void", 13 "exceptions": [], 14 "minSdk": 26, 15 "name": "__constructor__(android.content.Context,android.app.admin.IDevicePolicyManager)" 16 }, 17 "__constructor__(android.content.Context,android.os.Handler)": { 18 "isImplementation": true, 19 "modifiers": [ 20 "protected" 21 ], 22 "params": [ 23 "context", 24 "handler" 25 ], 26 "returnType": "void", 27 "exceptions": [], 28 "maxSdk": 23, 29 "name": "__constructor__(android.content.Context,android.os.Handler)" 30 }, 31 "__constructor__(android.content.Context,boolean)": { 32 "isImplementation": true, 33 "modifiers": [ 34 "protected" 35 ], 36 "params": [ 37 "context", 38 "parentInstance" 39 ], 40 "returnType": "void", 41 "exceptions": [], 42 "minSdk": 24, 43 "maxSdk": 25, 44 "name": "__constructor__(android.content.Context,boolean)" 45 }, 46 "activateResetToken(android.content.ComponentName)": { 47 "isImplementation": false, 48 "modifiers": [ 49 "public" 50 ], 51 "params": [ 52 "admin" 53 ], 54 "returnType": "boolean", 55 "exceptions": [], 56 "name": "activateResetToken(android.content.ComponentName)", 57 "documentation": "Activates reset token for given admin.\n\n@param admin Which {@link DeviceAdminReceiver} this request is associated with.\n@return if the activation state changed.\n@throws IllegalArgumentException if there is no token set for this admin.\n" 58 }, 59 "addDefaultCrossProfilePackage(java.lang.String)": { 60 "isImplementation": false, 61 "modifiers": [ 62 "public" 63 ], 64 "params": [ 65 "packageName" 66 ], 67 "returnType": "void", 68 "exceptions": [], 69 "name": "addDefaultCrossProfilePackage(java.lang.String)" 70 }, 71 "addPersistentPreferredActivity(android.content.ComponentName,android.content.IntentFilter,android.content.ComponentName)": { 72 "isImplementation": true, 73 "modifiers": [ 74 "protected" 75 ], 76 "params": [ 77 "admin", 78 "filter", 79 "activity" 80 ], 81 "returnType": "void", 82 "exceptions": [], 83 "minSdk": 21, 84 "name": "addPersistentPreferredActivity(android.content.ComponentName,android.content.IntentFilter,android.content.ComponentName)" 85 }, 86 "addUserRestriction(android.content.ComponentName,java.lang.String)": { 87 "isImplementation": true, 88 "modifiers": [ 89 "protected" 90 ], 91 "params": [ 92 "admin", 93 "key" 94 ], 95 "returnType": "void", 96 "exceptions": [], 97 "minSdk": 21, 98 "name": "addUserRestriction(android.content.ComponentName,java.lang.String)" 99 }, 100 "clearPackagePersistentPreferredActivities(android.content.ComponentName,java.lang.String)": { 101 "isImplementation": true, 102 "modifiers": [ 103 "protected" 104 ], 105 "params": [ 106 "admin", 107 "packageName" 108 ], 109 "returnType": "void", 110 "exceptions": [], 111 "minSdk": 21, 112 "name": "clearPackagePersistentPreferredActivities(android.content.ComponentName,java.lang.String)" 113 }, 114 "clearProfileOwner(android.content.ComponentName)": { 115 "isImplementation": true, 116 "modifiers": [ 117 "protected" 118 ], 119 "params": [ 120 "admin" 121 ], 122 "returnType": "void", 123 "exceptions": [], 124 "minSdk": 21, 125 "name": "clearProfileOwner(android.content.ComponentName)" 126 }, 127 "clearUserRestriction(android.content.ComponentName,java.lang.String)": { 128 "isImplementation": true, 129 "modifiers": [ 130 "protected" 131 ], 132 "params": [ 133 "admin", 134 "key" 135 ], 136 "returnType": "void", 137 "exceptions": [], 138 "minSdk": 21, 139 "name": "clearUserRestriction(android.content.ComponentName,java.lang.String)" 140 }, 141 "enableSystemApp(android.content.ComponentName,java.lang.String)": { 142 "isImplementation": true, 143 "modifiers": [ 144 "protected" 145 ], 146 "params": [ 147 "admin", 148 "packageName" 149 ], 150 "returnType": "void", 151 "exceptions": [], 152 "minSdk": 21, 153 "name": "enableSystemApp(android.content.ComponentName,java.lang.String)" 154 }, 155 "enforceActiveAdmin(android.content.ComponentName)": { 156 "isImplementation": false, 157 "modifiers": [ 158 "private" 159 ], 160 "params": [ 161 "admin" 162 ], 163 "returnType": "void", 164 "exceptions": [], 165 "name": "enforceActiveAdmin(android.content.ComponentName)" 166 }, 167 "enforceDeviceOwner(android.content.ComponentName)": { 168 "isImplementation": false, 169 "modifiers": [ 170 "private" 171 ], 172 "params": [ 173 "admin" 174 ], 175 "returnType": "void", 176 "exceptions": [], 177 "name": "enforceDeviceOwner(android.content.ComponentName)" 178 }, 179 "enforceDeviceOwnerOrProfileOwner(android.content.ComponentName)": { 180 "isImplementation": false, 181 "modifiers": [ 182 "private" 183 ], 184 "params": [ 185 "admin" 186 ], 187 "returnType": "void", 188 "exceptions": [], 189 "name": "enforceDeviceOwnerOrProfileOwner(android.content.ComponentName)" 190 }, 191 "enforceProfileOwner(android.content.ComponentName)": { 192 "isImplementation": false, 193 "modifiers": [ 194 "private" 195 ], 196 "params": [ 197 "admin" 198 ], 199 "returnType": "void", 200 "exceptions": [], 201 "name": "enforceProfileOwner(android.content.ComponentName)" 202 }, 203 "failSetApplicationHiddenFor(java.util.Collection\u003cjava.lang.String\u003e)": { 204 "isImplementation": false, 205 "modifiers": [ 206 "public" 207 ], 208 "params": [ 209 "packagesToFail" 210 ], 211 "returnType": "void", 212 "exceptions": [], 213 "name": "failSetApplicationHiddenFor(java.util.Collection\u003cjava.lang.String\u003e)", 214 "documentation": "Set package names for witch {@link DevicePolicyManager#setApplicationHidden} should fail.\n\n@param packagesToFail collection of package names or {@code null} to clear the packages.\n" 215 }, 216 "getAccountTypesWithManagementDisabled()": { 217 "isImplementation": true, 218 "modifiers": [ 219 "protected" 220 ], 221 "params": [], 222 "returnType": "java.lang.String[]", 223 "exceptions": [], 224 "minSdk": 21, 225 "name": "getAccountTypesWithManagementDisabled()" 226 }, 227 "getActiveAdmins()": { 228 "isImplementation": true, 229 "modifiers": [ 230 "protected" 231 ], 232 "params": [], 233 "returnType": "java.util.List\u003candroid.content.ComponentName\u003e", 234 "exceptions": [], 235 "name": "getActiveAdmins()" 236 }, 237 "getApplicationRestrictions(android.content.ComponentName,java.lang.String)": { 238 "isImplementation": true, 239 "modifiers": [ 240 "protected" 241 ], 242 "params": [ 243 "admin", 244 "packageName" 245 ], 246 "returnType": "android.os.Bundle", 247 "exceptions": [], 248 "minSdk": 21, 249 "name": "getApplicationRestrictions(android.content.ComponentName,java.lang.String)" 250 }, 251 "getApplicationRestrictions(java.lang.String)": { 252 "isImplementation": false, 253 "modifiers": [ 254 "public" 255 ], 256 "params": [ 257 "packageName" 258 ], 259 "returnType": "android.os.Bundle", 260 "exceptions": [], 261 "name": "getApplicationRestrictions(java.lang.String)", 262 "documentation": "Returns all application restrictions of the {@code packageName} in a {@link Bundle}. " 263 }, 264 "getAutoTimeRequired()": { 265 "isImplementation": true, 266 "modifiers": [ 267 "protected" 268 ], 269 "params": [], 270 "returnType": "boolean", 271 "exceptions": [], 272 "minSdk": 21, 273 "name": "getAutoTimeRequired()" 274 }, 275 "getCrossProfileCalendarPackages()": { 276 "isImplementation": true, 277 "modifiers": [ 278 "protected" 279 ], 280 "params": [], 281 "returnType": "java.util.Set\u003cjava.lang.String\u003e", 282 "exceptions": [], 283 "minSdk": 29, 284 "name": "getCrossProfileCalendarPackages()" 285 }, 286 "getDefaultCrossProfilePackages()": { 287 "isImplementation": true, 288 "modifiers": [ 289 "protected" 290 ], 291 "params": [], 292 "returnType": "java.util.Set\u003cjava.lang.String\u003e", 293 "exceptions": [], 294 "minSdk": 30, 295 "name": "getDefaultCrossProfilePackages()" 296 }, 297 "getDeviceOwner()": { 298 "isImplementation": true, 299 "modifiers": [ 300 "protected" 301 ], 302 "params": [], 303 "returnType": "java.lang.String", 304 "exceptions": [], 305 "minSdk": 18, 306 "name": "getDeviceOwner()", 307 "documentation": "@see #setDeviceOwner(ComponentName) " 308 }, 309 "getKeyguardDisabledFeatures(android.content.ComponentName)": { 310 "isImplementation": true, 311 "modifiers": [ 312 "protected" 313 ], 314 "params": [ 315 "admin" 316 ], 317 "returnType": "int", 318 "exceptions": [], 319 "minSdk": 17, 320 "name": "getKeyguardDisabledFeatures(android.content.ComponentName)" 321 }, 322 "getLastSetPassword()": { 323 "isImplementation": false, 324 "modifiers": [ 325 "public" 326 ], 327 "params": [], 328 "returnType": "java.lang.String", 329 "exceptions": [], 330 "name": "getLastSetPassword()", 331 "documentation": "Retrieves last password set through {@link DevicePolicyManager#resetPassword} or {@link\nDevicePolicyManager#resetPasswordWithToken}.\n" 332 }, 333 "getOrganizationColor(android.content.ComponentName)": { 334 "isImplementation": true, 335 "modifiers": [ 336 "protected" 337 ], 338 "params": [ 339 "admin" 340 ], 341 "returnType": "int", 342 "exceptions": [], 343 "minSdk": 24, 344 "name": "getOrganizationColor(android.content.ComponentName)" 345 }, 346 "getOrganizationName(android.content.ComponentName)": { 347 "isImplementation": true, 348 "modifiers": [ 349 "protected" 350 ], 351 "params": [ 352 "admin" 353 ], 354 "returnType": "java.lang.CharSequence", 355 "exceptions": [], 356 "minSdk": 24, 357 "name": "getOrganizationName(android.content.ComponentName)", 358 "documentation": "Returns organization name.\n\n\u003cp\u003eThe API can only be called by profile owner since Android N.\n\n\u003cp\u003eAndroid framework has a hidden API for getting the organization name for device owner since\nAndroid O. This method, however, is extended to return the organization name for device owners\ntoo to make testing of {@link #setOrganizationName(ComponentName, CharSequence)} easier for\ndevice owner cases.\n" 359 }, 360 "getPermissionGrantState(android.content.ComponentName,java.lang.String,java.lang.String)": { 361 "isImplementation": true, 362 "modifiers": [ 363 "protected" 364 ], 365 "params": [ 366 "admin", 367 "packageName", 368 "permission" 369 ], 370 "returnType": "int", 371 "exceptions": [], 372 "minSdk": 23, 373 "name": "getPermissionGrantState(android.content.ComponentName,java.lang.String,java.lang.String)" 374 }, 375 "getPermittedAccessibilityServices(android.content.ComponentName)": { 376 "isImplementation": true, 377 "modifiers": [ 378 "protected" 379 ], 380 "params": [ 381 "admin" 382 ], 383 "returnType": "java.util.List\u003cjava.lang.String\u003e", 384 "exceptions": [], 385 "minSdk": 21, 386 "name": "getPermittedAccessibilityServices(android.content.ComponentName)" 387 }, 388 "getPermittedInputMethods(android.content.ComponentName)": { 389 "isImplementation": true, 390 "modifiers": [ 391 "protected" 392 ], 393 "params": [ 394 "admin" 395 ], 396 "returnType": "java.util.List\u003cjava.lang.String\u003e", 397 "exceptions": [], 398 "minSdk": 21, 399 "name": "getPermittedInputMethods(android.content.ComponentName)" 400 }, 401 "getProfileOwner()": { 402 "isImplementation": true, 403 "modifiers": [ 404 "protected" 405 ], 406 "params": [], 407 "returnType": "android.content.ComponentName", 408 "exceptions": [], 409 "minSdk": 21, 410 "name": "getProfileOwner()", 411 "documentation": "@see #setProfileOwner(ComponentName) " 412 }, 413 "getProfileOwnerAsUser(int)": { 414 "isImplementation": true, 415 "modifiers": [ 416 "protected" 417 ], 418 "params": [ 419 "userId" 420 ], 421 "returnType": "android.content.ComponentName", 422 "exceptions": [], 423 "minSdk": 21, 424 "name": "getProfileOwnerAsUser(int)" 425 }, 426 "getProfileOwnerNameAsUser(int)": { 427 "isImplementation": true, 428 "modifiers": [ 429 "protected" 430 ], 431 "params": [ 432 "userId" 433 ], 434 "returnType": "java.lang.String", 435 "exceptions": [], 436 "minSdk": 21, 437 "name": "getProfileOwnerNameAsUser(int)", 438 "documentation": "Returns the human-readable name of the profile owner for a user if set using\n{@link #setProfileOwnerName}, otherwise `null`.\n" 439 }, 440 "getShadowUserManager()": { 441 "isImplementation": false, 442 "modifiers": [ 443 "private" 444 ], 445 "params": [], 446 "returnType": "org.robolectric.shadows.ShadowUserManager", 447 "exceptions": [], 448 "name": "getShadowUserManager()" 449 }, 450 "getStorageEncryptionStatus()": { 451 "isImplementation": true, 452 "modifiers": [ 453 "protected" 454 ], 455 "params": [], 456 "returnType": "int", 457 "exceptions": [], 458 "name": "getStorageEncryptionStatus()", 459 "documentation": "@return the previously set status; default is {@link\n DevicePolicyManager#ENCRYPTION_STATUS_UNSUPPORTED}\n@see #setStorageEncryptionStatus(int)\n" 460 }, 461 "getUserProvisioningState()": { 462 "isImplementation": true, 463 "modifiers": [ 464 "protected" 465 ], 466 "params": [], 467 "returnType": "int", 468 "exceptions": [], 469 "minSdk": 24, 470 "name": "getUserProvisioningState()", 471 "documentation": "@return Returns the provisioning state for the current user. " 472 }, 473 "getWipeCalledTimes()": { 474 "isImplementation": false, 475 "modifiers": [ 476 "public" 477 ], 478 "params": [], 479 "returnType": "long", 480 "exceptions": [], 481 "name": "getWipeCalledTimes()" 482 }, 483 "init(android.content.Context)": { 484 "isImplementation": false, 485 "modifiers": [ 486 "private" 487 ], 488 "params": [ 489 "context" 490 ], 491 "returnType": "void", 492 "exceptions": [], 493 "name": "init(android.content.Context)" 494 }, 495 "isAdminActive(android.content.ComponentName)": { 496 "isImplementation": true, 497 "modifiers": [ 498 "protected" 499 ], 500 "params": [ 501 "who" 502 ], 503 "returnType": "boolean", 504 "exceptions": [], 505 "name": "isAdminActive(android.content.ComponentName)" 506 }, 507 "isApplicationHidden(android.content.ComponentName,java.lang.String)": { 508 "isImplementation": true, 509 "modifiers": [ 510 "protected" 511 ], 512 "params": [ 513 "admin", 514 "packageName" 515 ], 516 "returnType": "boolean", 517 "exceptions": [], 518 "minSdk": 21, 519 "name": "isApplicationHidden(android.content.ComponentName,java.lang.String)" 520 }, 521 "isDeviceManaged()": { 522 "isImplementation": true, 523 "modifiers": [ 524 "public" 525 ], 526 "params": [], 527 "returnType": "boolean", 528 "exceptions": [], 529 "minSdk": 24, 530 "name": "isDeviceManaged()", 531 "documentation": "@see #setDeviceOwner(ComponentName) " 532 }, 533 "isDeviceOwnerApp(java.lang.String)": { 534 "isImplementation": true, 535 "modifiers": [ 536 "protected" 537 ], 538 "params": [ 539 "packageName" 540 ], 541 "returnType": "boolean", 542 "exceptions": [], 543 "minSdk": 18, 544 "name": "isDeviceOwnerApp(java.lang.String)" 545 }, 546 "isPackageSuspended(android.content.ComponentName,java.lang.String)": { 547 "isImplementation": true, 548 "modifiers": [ 549 "protected" 550 ], 551 "params": [ 552 "admin", 553 "packageName" 554 ], 555 "returnType": "boolean", 556 "exceptions": [ 557 "android.content.pm.PackageManager.NameNotFoundException" 558 ], 559 "minSdk": 24, 560 "name": "isPackageSuspended(android.content.ComponentName,java.lang.String)" 561 }, 562 "isPermissionGranted(java.lang.String,java.lang.String)": { 563 "isImplementation": false, 564 "modifiers": [ 565 "public" 566 ], 567 "params": [ 568 "packageName", 569 "permission" 570 ], 571 "returnType": "boolean", 572 "exceptions": [], 573 "name": "isPermissionGranted(java.lang.String,java.lang.String)" 574 }, 575 "isProfileOwnerApp(java.lang.String)": { 576 "isImplementation": true, 577 "modifiers": [ 578 "protected" 579 ], 580 "params": [ 581 "packageName" 582 ], 583 "returnType": "boolean", 584 "exceptions": [], 585 "minSdk": 21, 586 "name": "isProfileOwnerApp(java.lang.String)" 587 }, 588 "isResetPasswordTokenActive(android.content.ComponentName)": { 589 "isImplementation": true, 590 "modifiers": [ 591 "protected" 592 ], 593 "params": [ 594 "admin" 595 ], 596 "returnType": "boolean", 597 "exceptions": [], 598 "minSdk": 26, 599 "name": "isResetPasswordTokenActive(android.content.ComponentName)" 600 }, 601 "isUninstallBlocked(android.content.ComponentName,java.lang.String)": { 602 "isImplementation": true, 603 "modifiers": [ 604 "protected" 605 ], 606 "params": [ 607 "admin", 608 "packageName" 609 ], 610 "returnType": "boolean", 611 "exceptions": [], 612 "minSdk": 21, 613 "name": "isUninstallBlocked(android.content.ComponentName,java.lang.String)" 614 }, 615 "lockNow()": { 616 "isImplementation": true, 617 "modifiers": [ 618 "protected" 619 ], 620 "params": [], 621 "returnType": "void", 622 "exceptions": [], 623 "name": "lockNow()" 624 }, 625 "passwordMeetsRequirements(java.lang.String)": { 626 "isImplementation": false, 627 "modifiers": [ 628 "private" 629 ], 630 "params": [ 631 "password" 632 ], 633 "returnType": "boolean", 634 "exceptions": [], 635 "name": "passwordMeetsRequirements(java.lang.String)" 636 }, 637 "removeActiveAdmin(android.content.ComponentName)": { 638 "isImplementation": true, 639 "modifiers": [ 640 "protected" 641 ], 642 "params": [ 643 "admin" 644 ], 645 "returnType": "void", 646 "exceptions": [], 647 "name": "removeActiveAdmin(android.content.ComponentName)" 648 }, 649 "resetPassword(java.lang.String,int)": { 650 "isImplementation": true, 651 "modifiers": [ 652 "protected" 653 ], 654 "params": [ 655 "password", 656 "flags" 657 ], 658 "returnType": "boolean", 659 "exceptions": [], 660 "name": "resetPassword(java.lang.String,int)" 661 }, 662 "resetPasswordWithToken(android.content.ComponentName,java.lang.String,byte[],int)": { 663 "isImplementation": true, 664 "modifiers": [ 665 "protected" 666 ], 667 "params": [ 668 "admin", 669 "password", 670 "token", 671 "flags" 672 ], 673 "returnType": "boolean", 674 "exceptions": [], 675 "minSdk": 26, 676 "name": "resetPasswordWithToken(android.content.ComponentName,java.lang.String,byte[],int)" 677 }, 678 "setAccountManagementDisabled(android.content.ComponentName,java.lang.String,boolean)": { 679 "isImplementation": true, 680 "modifiers": [ 681 "protected" 682 ], 683 "params": [ 684 "admin", 685 "accountType", 686 "disabled" 687 ], 688 "returnType": "void", 689 "exceptions": [], 690 "minSdk": 21, 691 "name": "setAccountManagementDisabled(android.content.ComponentName,java.lang.String,boolean)" 692 }, 693 "setActiveAdmin(android.content.ComponentName)": { 694 "isImplementation": false, 695 "modifiers": [ 696 "public" 697 ], 698 "params": [ 699 "componentName" 700 ], 701 "returnType": "void", 702 "exceptions": [], 703 "name": "setActiveAdmin(android.content.ComponentName)", 704 "documentation": "Sets the given {@code componentName} as one of the active admins. " 705 }, 706 "setApplicationHidden(android.content.ComponentName,java.lang.String,boolean)": { 707 "isImplementation": true, 708 "modifiers": [ 709 "protected" 710 ], 711 "params": [ 712 "admin", 713 "packageName", 714 "hidden" 715 ], 716 "returnType": "boolean", 717 "exceptions": [], 718 "minSdk": 21, 719 "name": "setApplicationHidden(android.content.ComponentName,java.lang.String,boolean)" 720 }, 721 "setApplicationRestrictions(android.content.ComponentName,java.lang.String,android.os.Bundle)": { 722 "isImplementation": true, 723 "modifiers": [ 724 "protected" 725 ], 726 "params": [ 727 "admin", 728 "packageName", 729 "applicationRestrictions" 730 ], 731 "returnType": "void", 732 "exceptions": [], 733 "minSdk": 21, 734 "name": "setApplicationRestrictions(android.content.ComponentName,java.lang.String,android.os.Bundle)" 735 }, 736 "setApplicationRestrictions(java.lang.String,android.os.Bundle)": { 737 "isImplementation": false, 738 "modifiers": [ 739 "public" 740 ], 741 "params": [ 742 "packageName", 743 "applicationRestrictions" 744 ], 745 "returnType": "void", 746 "exceptions": [], 747 "name": "setApplicationRestrictions(java.lang.String,android.os.Bundle)", 748 "documentation": "Sets the application restrictions of the {@code packageName}.\n\n\u003cp\u003eThe new {@code applicationRestrictions} always completely overwrites any existing ones.\n" 749 }, 750 "setAutoTimeRequired(android.content.ComponentName,boolean)": { 751 "isImplementation": true, 752 "modifiers": [ 753 "protected" 754 ], 755 "params": [ 756 "admin", 757 "required" 758 ], 759 "returnType": "void", 760 "exceptions": [], 761 "minSdk": 21, 762 "name": "setAutoTimeRequired(android.content.ComponentName,boolean)" 763 }, 764 "setCrossProfileCalendarPackages(android.content.ComponentName,java.util.Set\u003cjava.lang.String\u003e)": { 765 "isImplementation": true, 766 "modifiers": [ 767 "public" 768 ], 769 "params": [ 770 "admin", 771 "packageNames" 772 ], 773 "returnType": "void", 774 "exceptions": [], 775 "minSdk": 29, 776 "name": "setCrossProfileCalendarPackages(android.content.ComponentName,java.util.Set\u003cjava.lang.String\u003e)" 777 }, 778 "setDefaultCrossProfilePackages(java.util.Set\u003cjava.lang.String\u003e)": { 779 "isImplementation": false, 780 "modifiers": [ 781 "public" 782 ], 783 "params": [ 784 "defaultCrossProfilePackages" 785 ], 786 "returnType": "void", 787 "exceptions": [], 788 "name": "setDefaultCrossProfilePackages(java.util.Set\u003cjava.lang.String\u003e)" 789 }, 790 "setDeviceOwner(android.content.ComponentName)": { 791 "isImplementation": false, 792 "modifiers": [ 793 "public" 794 ], 795 "params": [ 796 "admin" 797 ], 798 "returnType": "void", 799 "exceptions": [], 800 "name": "setDeviceOwner(android.content.ComponentName)", 801 "documentation": "Sets the admin as active admin and device owner.\n\n@see DevicePolicyManager#getDeviceOwner()\n" 802 }, 803 "setKeyguardDisabledFeatures(android.content.ComponentName,int)": { 804 "isImplementation": true, 805 "modifiers": [ 806 "protected" 807 ], 808 "params": [ 809 "admin", 810 "which" 811 ], 812 "returnType": "void", 813 "exceptions": [], 814 "minSdk": 17, 815 "name": "setKeyguardDisabledFeatures(android.content.ComponentName,int)" 816 }, 817 "setOrganizationColor(android.content.ComponentName,int)": { 818 "isImplementation": true, 819 "modifiers": [ 820 "protected" 821 ], 822 "params": [ 823 "admin", 824 "color" 825 ], 826 "returnType": "void", 827 "exceptions": [], 828 "minSdk": 24, 829 "name": "setOrganizationColor(android.content.ComponentName,int)" 830 }, 831 "setOrganizationName(android.content.ComponentName,java.lang.CharSequence)": { 832 "isImplementation": true, 833 "modifiers": [ 834 "protected" 835 ], 836 "params": [ 837 "admin", 838 "name" 839 ], 840 "returnType": "void", 841 "exceptions": [], 842 "minSdk": 24, 843 "name": "setOrganizationName(android.content.ComponentName,java.lang.CharSequence)", 844 "documentation": "Sets organization name.\n\n\u003cp\u003eThe API can only be called by profile owner since Android N and can be called by both of\nprofile owner and device owner since Android O.\n" 845 }, 846 "setPackagesSuspended(android.content.ComponentName,java.lang.String[],boolean)": { 847 "isImplementation": true, 848 "modifiers": [ 849 "protected" 850 ], 851 "params": [ 852 "admin", 853 "packageNames", 854 "suspended" 855 ], 856 "returnType": "java.lang.String[]", 857 "exceptions": [], 858 "minSdk": 24, 859 "name": "setPackagesSuspended(android.content.ComponentName,java.lang.String[],boolean)" 860 }, 861 "setPasswordMinimumLength(android.content.ComponentName,int)": { 862 "isImplementation": true, 863 "modifiers": [ 864 "protected" 865 ], 866 "params": [ 867 "admin", 868 "length" 869 ], 870 "returnType": "void", 871 "exceptions": [], 872 "name": "setPasswordMinimumLength(android.content.ComponentName,int)" 873 }, 874 "setPasswordMinimumLetters(android.content.ComponentName,int)": { 875 "isImplementation": true, 876 "modifiers": [ 877 "protected" 878 ], 879 "params": [ 880 "admin", 881 "length" 882 ], 883 "returnType": "void", 884 "exceptions": [], 885 "name": "setPasswordMinimumLetters(android.content.ComponentName,int)" 886 }, 887 "setPasswordMinimumLowerCase(android.content.ComponentName,int)": { 888 "isImplementation": true, 889 "modifiers": [ 890 "protected" 891 ], 892 "params": [ 893 "admin", 894 "length" 895 ], 896 "returnType": "void", 897 "exceptions": [], 898 "name": "setPasswordMinimumLowerCase(android.content.ComponentName,int)" 899 }, 900 "setPasswordMinimumNonLetter(android.content.ComponentName,int)": { 901 "isImplementation": true, 902 "modifiers": [ 903 "protected" 904 ], 905 "params": [ 906 "admin", 907 "length" 908 ], 909 "returnType": "void", 910 "exceptions": [], 911 "name": "setPasswordMinimumNonLetter(android.content.ComponentName,int)" 912 }, 913 "setPasswordMinimumNumeric(android.content.ComponentName,int)": { 914 "isImplementation": true, 915 "modifiers": [ 916 "protected" 917 ], 918 "params": [ 919 "admin", 920 "length" 921 ], 922 "returnType": "void", 923 "exceptions": [], 924 "name": "setPasswordMinimumNumeric(android.content.ComponentName,int)" 925 }, 926 "setPasswordMinimumSymbols(android.content.ComponentName,int)": { 927 "isImplementation": true, 928 "modifiers": [ 929 "protected" 930 ], 931 "params": [ 932 "admin", 933 "length" 934 ], 935 "returnType": "void", 936 "exceptions": [], 937 "name": "setPasswordMinimumSymbols(android.content.ComponentName,int)" 938 }, 939 "setPasswordMinimumUpperCase(android.content.ComponentName,int)": { 940 "isImplementation": true, 941 "modifiers": [ 942 "protected" 943 ], 944 "params": [ 945 "admin", 946 "length" 947 ], 948 "returnType": "void", 949 "exceptions": [], 950 "name": "setPasswordMinimumUpperCase(android.content.ComponentName,int)" 951 }, 952 "setPasswordQuality(android.content.ComponentName,int)": { 953 "isImplementation": true, 954 "modifiers": [ 955 "protected" 956 ], 957 "params": [ 958 "admin", 959 "quality" 960 ], 961 "returnType": "void", 962 "exceptions": [], 963 "name": "setPasswordQuality(android.content.ComponentName,int)" 964 }, 965 "setPermissionGrantState(android.content.ComponentName,java.lang.String,java.lang.String,int)": { 966 "isImplementation": true, 967 "modifiers": [ 968 "protected" 969 ], 970 "params": [ 971 "admin", 972 "packageName", 973 "permission", 974 "grantState" 975 ], 976 "returnType": "boolean", 977 "exceptions": [], 978 "minSdk": 23, 979 "name": "setPermissionGrantState(android.content.ComponentName,java.lang.String,java.lang.String,int)" 980 }, 981 "setPermittedAccessibilityServices(android.content.ComponentName,java.util.List\u003cjava.lang.String\u003e)": { 982 "isImplementation": true, 983 "modifiers": [ 984 "protected" 985 ], 986 "params": [ 987 "admin", 988 "packageNames" 989 ], 990 "returnType": "boolean", 991 "exceptions": [], 992 "minSdk": 21, 993 "name": "setPermittedAccessibilityServices(android.content.ComponentName,java.util.List\u003cjava.lang.String\u003e)", 994 "documentation": "Sets permitted accessibility services.\n\n\u003cp\u003eThe API can be called by either a profile or device owner.\n\n\u003cp\u003eThis method does not check already enabled non-system accessibility services, so will always\nset the restriction and return true.\n" 995 }, 996 "setPermittedInputMethods(android.content.ComponentName,java.util.List\u003cjava.lang.String\u003e)": { 997 "isImplementation": true, 998 "modifiers": [ 999 "protected" 1000 ], 1001 "params": [ 1002 "admin", 1003 "packageNames" 1004 ], 1005 "returnType": "boolean", 1006 "exceptions": [], 1007 "minSdk": 21, 1008 "name": "setPermittedInputMethods(android.content.ComponentName,java.util.List\u003cjava.lang.String\u003e)", 1009 "documentation": "Sets permitted input methods.\n\n\u003cp\u003eThe API can be called by either a profile or device owner.\n\n\u003cp\u003eThis method does not check already enabled non-system input methods, so will always set the\nrestriction and return true.\n" 1010 }, 1011 "setProfileOwner(android.content.ComponentName)": { 1012 "isImplementation": false, 1013 "modifiers": [ 1014 "public" 1015 ], 1016 "params": [ 1017 "admin" 1018 ], 1019 "returnType": "void", 1020 "exceptions": [], 1021 "name": "setProfileOwner(android.content.ComponentName)", 1022 "documentation": "Sets the admin as active admin and profile owner.\n\n@see DevicePolicyManager#getProfileOwner()\n" 1023 }, 1024 "setProfileOwnerName(int,java.lang.String)": { 1025 "isImplementation": false, 1026 "modifiers": [ 1027 "public" 1028 ], 1029 "params": [ 1030 "userId", 1031 "name" 1032 ], 1033 "returnType": "void", 1034 "exceptions": [], 1035 "name": "setProfileOwnerName(int,java.lang.String)" 1036 }, 1037 "setResetPasswordToken(android.content.ComponentName,byte[])": { 1038 "isImplementation": true, 1039 "modifiers": [ 1040 "protected" 1041 ], 1042 "params": [ 1043 "admin", 1044 "token" 1045 ], 1046 "returnType": "boolean", 1047 "exceptions": [], 1048 "minSdk": 26, 1049 "name": "setResetPasswordToken(android.content.ComponentName,byte[])" 1050 }, 1051 "setStorageEncryptionStatus(int)": { 1052 "isImplementation": false, 1053 "modifiers": [ 1054 "public" 1055 ], 1056 "params": [ 1057 "status" 1058 ], 1059 "returnType": "void", 1060 "exceptions": [], 1061 "name": "setStorageEncryptionStatus(int)", 1062 "documentation": "Setter for {@link DevicePolicyManager#getStorageEncryptionStatus()}. " 1063 }, 1064 "setUninstallBlocked(android.content.ComponentName,java.lang.String,boolean)": { 1065 "isImplementation": true, 1066 "modifiers": [ 1067 "protected" 1068 ], 1069 "params": [ 1070 "admin", 1071 "packageName", 1072 "uninstallBlocked" 1073 ], 1074 "returnType": "void", 1075 "exceptions": [], 1076 "minSdk": 21, 1077 "name": "setUninstallBlocked(android.content.ComponentName,java.lang.String,boolean)" 1078 }, 1079 "setUserProvisioningState(int)": { 1080 "isImplementation": false, 1081 "modifiers": [ 1082 "public" 1083 ], 1084 "params": [ 1085 "state" 1086 ], 1087 "returnType": "void", 1088 "exceptions": [], 1089 "name": "setUserProvisioningState(int)", 1090 "documentation": "Sets the user provisioning state.\n\n@param state to store provisioning state\n" 1091 }, 1092 "wasPackageEverHidden(java.lang.String)": { 1093 "isImplementation": false, 1094 "modifiers": [ 1095 "public" 1096 ], 1097 "params": [ 1098 "packageName" 1099 ], 1100 "returnType": "boolean", 1101 "exceptions": [], 1102 "name": "wasPackageEverHidden(java.lang.String)", 1103 "documentation": "Returns {@code true} if the given {@code packageName} was ever hidden. " 1104 }, 1105 "wasSystemAppEnabled(java.lang.String)": { 1106 "isImplementation": false, 1107 "modifiers": [ 1108 "public" 1109 ], 1110 "params": [ 1111 "packageName" 1112 ], 1113 "returnType": "boolean", 1114 "exceptions": [], 1115 "name": "wasSystemAppEnabled(java.lang.String)", 1116 "documentation": "Returns {@code true} if the given {@code packageName} was a system app and was enabled. " 1117 }, 1118 "wipeData(int)": { 1119 "isImplementation": true, 1120 "modifiers": [ 1121 "protected" 1122 ], 1123 "params": [ 1124 "flags" 1125 ], 1126 "returnType": "void", 1127 "exceptions": [], 1128 "name": "wipeData(int)" 1129 }, 1130 "wipeData(int,java.lang.CharSequence)": { 1131 "isImplementation": true, 1132 "modifiers": [ 1133 "protected" 1134 ], 1135 "params": [ 1136 "flags", 1137 "reason" 1138 ], 1139 "returnType": "void", 1140 "exceptions": [], 1141 "name": "wipeData(int,java.lang.CharSequence)" 1142 } 1143 }, 1144 "imports": [ 1145 "android.os.Build.VERSION_CODES.JELLY_BEAN_MR1", 1146 "android.os.Build.VERSION_CODES.JELLY_BEAN_MR2", 1147 "android.os.Build.VERSION_CODES.LOLLIPOP", 1148 "android.os.Build.VERSION_CODES.M", 1149 "android.os.Build.VERSION_CODES.N", 1150 "android.os.Build.VERSION_CODES.N_MR1", 1151 "android.os.Build.VERSION_CODES.O", 1152 "android.os.Build.VERSION_CODES.Q", 1153 "android.os.Build.VERSION_CODES.R", 1154 "org.robolectric.shadow.api.Shadow.invokeConstructor", 1155 "org.robolectric.util.ReflectionHelpers.ClassParameter.from", 1156 "android.annotation.Nullable", 1157 "android.annotation.SuppressLint", 1158 "android.app.ApplicationPackageManager", 1159 "android.app.KeyguardManager", 1160 "android.app.admin.DeviceAdminReceiver", 1161 "android.app.admin.DevicePolicyManager", 1162 "android.app.admin.IDevicePolicyManager", 1163 "android.content.ComponentName", 1164 "android.content.Context", 1165 "android.content.IntentFilter", 1166 "android.content.pm.PackageInfo", 1167 "android.content.pm.PackageManager", 1168 "android.content.pm.PackageManager.NameNotFoundException", 1169 "android.os.Build", 1170 "android.os.Build.VERSION_CODES", 1171 "android.os.Bundle", 1172 "android.os.Handler", 1173 "android.os.Process", 1174 "android.text.TextUtils", 1175 "java.util.ArrayList", 1176 "java.util.Arrays", 1177 "java.util.Collection", 1178 "java.util.Collections", 1179 "java.util.HashMap", 1180 "java.util.HashSet", 1181 "java.util.List", 1182 "java.util.Map", 1183 "java.util.Set", 1184 "org.robolectric.RuntimeEnvironment", 1185 "org.robolectric.annotation.Implementation", 1186 "org.robolectric.annotation.Implements", 1187 "org.robolectric.annotation.RealObject", 1188 "org.robolectric.shadow.api.Shadow", 1189 "org.robolectric.shadows.ShadowDevicePolicyManager.PackageAndPermission" 1190 ], 1191 "name": "org.robolectric.shadows.ShadowDevicePolicyManager" 1192}