This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SimpleFragment : Fragment() { | |
| // Code | |
| private lateinit var primaryClipChangedListener: ClipboardManager.OnPrimaryClipChangedListener | |
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| // Code | |
| primaryClipChangedListener = ClipboardManager.OnPrimaryClipChangedListener { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SimpleFragment : Fragment() { | |
| // Code | |
| private lateinit var clipboardManager: ClipboardManager | |
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| // Code | |
| clipboardManager = requireActivity().getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface ICustomRemoteService extends android.os.IInterface { | |
| // All other code will be considered further | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ContextImpl extends Context { | |
| // A lot of code | |
| private boolean bindServiceCommon(Intent service, ServiceConnection conn, int flags, | |
| String instanceName, Handler handler, Executor executor, UserHandle user) { | |
| // code | |
| try { | |
| // code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public final class ActivityThread extends ClientTransactionHandler { | |
| // A lot of code | |
| @UnsupportedAppUsage | |
| public final IContentProvider acquireProvider( | |
| Context c, String auth, int userId, boolean stable) { | |
| // Code | |
| // Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ContextImpl extends Context { | |
| // A lot of code | |
| private static final class ApplicationContentResolver extends ContentResolver { | |
| // A lot of code | |
| @Override | |
| protected IContentProvider acquireUnstableProvider(Context c, String auth) { | |
| return mMainThread.acquireProvider(c, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ContextImpl extends Context { | |
| // A lot of code | |
| private ContextImpl(@Nullable ContextImpl container, @NonNull ActivityThread mainThread, | |
| @NonNull LoadedApk packageInfo, @Nullable String splitName, | |
| @Nullable IBinder activityToken, @Nullable UserHandle user, int flags, | |
| @Nullable ClassLoader classLoader, @Nullable String overrideOpPackageName) { | |
| // A lot of code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ContextImpl extends Context { | |
| // A lot of code | |
| @Override | |
| public ContentResolver getContentResolver() { | |
| return mContentResolver; | |
| } | |
| // A lot of code | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ContextWrapper extends Context { | |
| @UnsupportedAppUsage | |
| Context mBase; | |
| // A lot of code | |
| @Override | |
| public ContentResolver getContentResolver() { | |
| return mBase.getContentResolver(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Handler { | |
| // A lot of code | |
| @UnsupportedAppUsage | |
| final IMessenger getIMessenger() { | |
| synchronized (mQueue) { | |
| if (mMessenger != null) { | |
| return mMessenger; | |
| } | |
| mMessenger = new MessengerImpl(); |