auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void sendSms ( int token , int messageRef , java.lang.String format , java.lang.String smsc , boolean isRetry , byte [ ] pdu ) { try { onSendSmsResult ( token , messageRef , android.telephony.ims.internal.stub.SmsImplBase.SEND_STATUS_ERROR , SmsManager.RESULT_ERROR_GENERIC_FAILURE ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.stub.SmsImplBase.LOG_TAG , ( "Can not send sms: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public final void onSendSmsResult ( int token , int messageRef , @ android.telephony.ims.internal.stub.SmsImplBase.SendStatusResult int status , int reason ) throws java.lang.RuntimeException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.RuntimeException ( "Feature not ready." ) ; } try { mListener.onSendSmsResult ( token , messageRef , status , reason ) ; } catch ( android.os.RemoteException e ) { e.rethrowFromSystemServer ( ) ; } } }
Source:
com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir createVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { assert ! ( isClosed ( ) ) ; return new com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ( this , parent , name ) ; }

Target:
com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { assert ! ( isClosed ( ) ) ; com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile original = new com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile ( this , parent , name ) ; com.android.sched.vfs.BaseVFile encoded = vfs.getRootDir ( ) . createVFile ( encode ( original.getPath ( ) ) ) ; original.setEncodedFile ( encoded ) ; return original ; }
Source:
private void handlePassthroughCmdRequestFromNative ( byte [ ] address , int id , int keyState ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_PASS_THROUGH , id , keyState ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void getPlayStatusRequestFromNative ( byte [ ] address ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "getPlayStatusRequestFromNative: mHandler is already null" ) ; return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_PLAY_STATUS ) ; msg.obj = address ; handler.sendMessage ( msg ) ; }
Source:
public com.android.ahat.DocString render ( com.android.tools.perflib.heap.Instance element ) { if ( element == null ) { return com.android.ahat.DocString.link ( com.android.ahat.DocString.uri ( "rooted" ) , com.android.ahat.DocString.text ( "ROOT" ) ) ; } else { return com.android.ahat.DocString.text ( "→ " ) . append ( com.android.ahat.Value.render ( mSnapshot , element ) ) ; } }

Target:
public com.android.ahat.DocString render ( com.android.ahat.InstanceUtils.PathElement element ) { if ( element == null ) { return com.android.ahat.DocString.link ( com.android.ahat.DocString.uri ( "rooted" ) , com.android.ahat.DocString.text ( "ROOT" ) ) ; } else { com.android.ahat.DocString label = com.android.ahat.DocString.text ( " → " ) ; label.append ( com.android.ahat.Value.render ( mSnapshot , element.instance ) ) ; label.append ( element.field ) ; return label ; } }
Source:
private android.net.NetworkStats getNetworkStatsXt ( ) throws android.os.RemoteException { final android.net.NetworkStats xtSnapshot = mNetworkManager.getNetworkStatsSummaryXt ( ) ; final android.telephony.TelephonyManager telephonyManager = ( ( android.telephony.TelephonyManager ) ( mContext.getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; final android.net.NetworkStats vtSnapshot = telephonyManager.getVtDataUsage ( false ) ; if ( vtSnapshot != null ) { xtSnapshot.combineAllValues ( vtSnapshot ) ; } return xtSnapshot ; }

Target:
private android.net.NetworkStats getNetworkStatsXt ( ) throws android.os.RemoteException { final android.net.NetworkStats xtSnapshot = mNetworkManager.getNetworkStatsSummaryXt ( ) ; final android.telephony.TelephonyManager telephonyManager = ( ( android.telephony.TelephonyManager ) ( mContext.getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; final android.net.NetworkStats vtSnapshot = telephonyManager.getVtDataUsage ( android.net.NetworkStats.STATS_PER_IFACE ) ; if ( vtSnapshot != null ) { xtSnapshot.combineAllValues ( vtSnapshot ) ; } return xtSnapshot ; }
Source:
public synchronized boolean setCountryCode ( java.lang.String countryCode ) { if ( DBG ) android.util.Log.d ( com.android.server.wifi.WifiCountryCode.TAG , ( "Receive set country code request: " + countryCode ) ) ; if ( android.text.TextUtils.isEmpty ( countryCode ) ) { if ( DBG ) android.util.Log.d ( com.android.server.wifi.WifiCountryCode.TAG , "Ignore empty country code" ) ; return false ; } mTelephonyCountryCode = countryCode.toUpperCase ( ) ; if ( mReady ) { updateCountryCode ( ) ; } return true ; }

Target:
public synchronized boolean setCountryCode ( java.lang.String countryCode ) { if ( DBG ) android.util.Log.d ( com.android.server.wifi.WifiCountryCode.TAG , ( "Receive set country code request: " + countryCode ) ) ; if ( android.text.TextUtils.isEmpty ( countryCode ) ) { if ( DBG ) android.util.Log.d ( com.android.server.wifi.WifiCountryCode.TAG , "Received empty country code, reset to default country code" ) ; mTelephonyCountryCode = null ; } else { mTelephonyCountryCode = countryCode.toUpperCase ( ) ; } if ( mReady ) { updateCountryCode ( ) ; } return true ; }
Source:
public com.android.build.gradle.internal.dsl.NdkOptions setLdLibs ( java.util.Collection < java.lang.String > libs ) { if ( libs != null ) { if ( ( abiFilters ) == null ) { abiFilters = com.google.common.collect.Sets.newHashSetWithExpectedSize ( libs.size ( ) ) ; } else { abiFilters.clear ( ) ; } for ( java.lang.String filter : libs ) { abiFilters.add ( filter ) ; } } else { abiFilters = null ; } return this ; }

Target:
public com.android.build.gradle.internal.dsl.NdkOptions setLdLibs ( java.util.Collection < java.lang.String > libs ) { if ( libs != null ) { if ( ( ldLibs ) == null ) { ldLibs = com.google.common.collect.Lists.newArrayListWithCapacity ( libs.size ( ) ) ; } else { ldLibs.clear ( ) ; } for ( java.lang.String filter : libs ) { ldLibs.add ( filter ) ; } } else { ldLibs = null ; } return this ; }
Source:
private void setAddressedPlayerRequestFromNative ( byte [ ] address , int playerId ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_SET_ADDR_PLAYER , playerId , 0 ) ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }

Target:
private void setAddressedPlayerRequestFromNative ( byte [ ] address , int playerId ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "setAddressedPlayerRequestFromNative: mHandler is already null" ) ; return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_SET_ADDR_PLAYER , playerId , 0 ) ; msg.obj = address ; handler.sendMessage ( msg ) ; }
Source:
public java.net.Socket createSocket ( java.net.InetAddress addr , int port ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( addr , port ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; return s ; }

Target:
public java.net.Socket createSocket ( java.net.InetAddress addr , int port ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( addr , port ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; return s ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder getResourceFolder ( org.eclipse.core.resources.IFolder folder ) { for ( java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > list : mFolderMap.values ( ) ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder : list ) { com.android.ide.eclipse.adt.internal.resources.manager.files.IFolderWrapper wrapper = ( ( com.android.ide.eclipse.adt.internal.resources.manager.files.IFolderWrapper ) ( resFolder.getFolder ( ) ) ) ; if ( wrapper.getIFolder ( ) . equals ( folder ) ) { return resFolder ; } } } return null ; }

Target:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder getResourceFolder ( org.eclipse.core.resources.IFolder folder ) { for ( java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > list : mFolderMap.values ( ) ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder : list ) { com.android.ide.eclipse.adt.io.IFolderWrapper wrapper = ( ( com.android.ide.eclipse.adt.io.IFolderWrapper ) ( resFolder.getFolder ( ) ) ) ; if ( wrapper.getIFolder ( ) . equals ( folder ) ) { return resFolder ; } } } return null ; }
Source:
private java.util.Set < com.android.compatibility.common.util.TestStatus > getStatusesToRun ( ) { java.util.Set < com.android.compatibility.common.util.TestStatus > statusesToRun = new java.util.HashSet < com.android.compatibility.common.util.TestStatus > ( ) ; for ( java.lang.String resultType : mResultTypes ) { if ( resultType != ( com.android.compatibility.common.tradefed.result.SubPlanCreator.NOT_EXECUTED ) ) { statusesToRun.add ( com.android.compatibility.common.tradefed.result.SubPlanCreator.mStatusMap.get ( resultType ) ) ; } } return statusesToRun ; }

Target:
private java.util.Set < com.android.compatibility.common.util.TestStatus > getStatusesToRun ( ) { java.util.Set < com.android.compatibility.common.util.TestStatus > statusesToRun = new java.util.HashSet < com.android.compatibility.common.util.TestStatus > ( ) ; for ( java.lang.String resultType : mResultTypes ) { if ( resultType != ( com.android.compatibility.common.tradefed.result.SubPlanCreator.NOT_EXECUTED ) ) { statusesToRun.add ( com.android.compatibility.common.tradefed.result.SubPlanCreator.STATUS_MAP.get ( resultType ) ) ; } } return statusesToRun ; }
Source:
public int setBluetoothA2dpDeviceConnectionState ( android.bluetooth.BluetoothDevice device , int state ) { int delay ; synchronized ( mConnectedDevices ) { delay = checkSendBecomingNoisyIntent ( AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP , ( state == ( android.bluetooth.BluetoothA2dp.STATE_CONNECTED ) ? 1 : 0 ) ) ; queueMsgUnderWakeLock ( mAudioHandler , android.media.AudioService.MSG_SET_A2DP_CONNECTION_STATE , state , 0 , device , delay ) ; } return delay ; }

Target:
public void startBluetoothSco ( android.os.IBinder cb , int targetSdkVersion ) { int scoAudioMode = ( targetSdkVersion < ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ) ? android.media.AudioService.SCO_MODE_VIRTUAL_CALL : android.media.AudioService.SCO_MODE_UNDEFINED ; startBluetoothScoInt ( cb , scoAudioMode ) ; }
Source:
public void injectSmsPdu ( byte [ ] pdu , java.lang.String format , android.app.PendingIntent receivedIntent ) { enforceCarrierPrivilege ( ) ; if ( android.telephony.Rlog.isLoggable ( "SMS" , Log.VERBOSE ) ) { log ( ( ( ( ( ( "pdu: " + pdu ) + "\n format=" ) + format ) + "\n receivedIntent=" ) + receivedIntent ) ) ; } mDispatcher.injectSmsPdu ( pdu , format , receivedIntent ) ; }

Target:
public void injectSmsPdu ( byte [ ] pdu , java.lang.String format , android.app.PendingIntent receivedIntent ) { enforcePrivilegedAppPermissions ( ) ; if ( android.telephony.Rlog.isLoggable ( "SMS" , Log.VERBOSE ) ) { log ( ( ( ( ( ( "pdu: " + pdu ) + "\n format=" ) + format ) + "\n receivedIntent=" ) + receivedIntent ) ) ; } mDispatcher.injectSmsPdu ( pdu , format , receivedIntent ) ; }
Source:
public static void getSSLParameters ( javax.net.ssl.SSLParameters params , org.conscrypt.SSLParametersImpl impl , org.conscrypt.OpenSSLSocketImpl socket ) { params.setEndpointIdentificationAlgorithm ( impl.getEndpointIdentificationAlgorithm ( ) ) ; params.setUseCipherSuitesOrder ( impl.getUseCipherSuitesOrder ( ) ) ; if ( ( impl.getUseSni ( ) ) && ( org.conscrypt.AddressUtils.isValidSniHostname ( socket.getHostname ( ) ) ) ) { params.setServerNames ( java.util.Collections.< javax.net.ssl.SNIServerName > singletonList ( new javax.net.ssl.SNIHostName ( socket.getHostname ( ) ) ) ) ; } }

Target:
static void getSSLParameters ( javax.net.ssl.SSLParameters params , org.conscrypt.SSLParametersImpl impl , org.conscrypt.AbstractConscryptSocket socket ) { params.setEndpointIdentificationAlgorithm ( impl.getEndpointIdentificationAlgorithm ( ) ) ; params.setUseCipherSuitesOrder ( impl.getUseCipherSuitesOrder ( ) ) ; if ( ( impl.getUseSni ( ) ) && ( org.conscrypt.AddressUtils.isValidSniHostname ( socket.getHostname ( ) ) ) ) { params.setServerNames ( java.util.Collections.< javax.net.ssl.SNIServerName > singletonList ( new javax.net.ssl.SNIHostName ( socket.getHostname ( ) ) ) ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { processCall ( call ) ; return true ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { try { processCall ( call ) ; } catch ( com.android.jack.lookup.JMethodLookupException e ) { com.android.jack.transformations.TransformationException te = new com.android.jack.transformations.TransformationException ( e ) ; com.android.jack.Jack.getSession ( ) . getReporter ( ) . report ( Severity.FATAL , te ) ; throw new com.android.jack.JackAbortException ( te ) ; } return true ; }
Source:
public void generateCheckToken_missingRowBehavior ( ) { org.junit.Assert.assertNull ( mPackageStatusStorage.getPackageStatus ( ) ) ; com.android.server.timezone.CheckToken token1 = mPackageStatusStorage.generateCheckToken ( com.android.server.timezone.PackageStatusStorageTest.VALID_PACKAGE_VERSIONS ) ; org.junit.Assert.assertNotNull ( token1 ) ; org.junit.Assert.assertNotNull ( mPackageStatusStorage.getPackageStatus ( ) ) ; mPackageStatusStorage.deleteRowForTests ( ) ; org.junit.Assert.assertNotNull ( mPackageStatusStorage.generateCheckToken ( com.android.server.timezone.PackageStatusStorageTest.VALID_PACKAGE_VERSIONS ) ) ; }

Target:
public void generateCheckToken_missingFileBehavior ( ) { org.junit.Assert.assertNull ( mPackageStatusStorage.getPackageStatus ( ) ) ; com.android.server.timezone.CheckToken token1 = mPackageStatusStorage.generateCheckToken ( com.android.server.timezone.PackageStatusStorageTest.VALID_PACKAGE_VERSIONS ) ; org.junit.Assert.assertNotNull ( token1 ) ; org.junit.Assert.assertNotNull ( mPackageStatusStorage.getPackageStatus ( ) ) ; mPackageStatusStorage.deleteFileForTests ( ) ; org.junit.Assert.assertNotNull ( mPackageStatusStorage.generateCheckToken ( com.android.server.timezone.PackageStatusStorageTest.VALID_PACKAGE_VERSIONS ) ) ; }
Source:
public void actionPerformed ( final com.google.gct.idea.git.AnActionEvent e ) { com.google.gct.idea.stats.UsageTracker.getInstance ( ) . trackEvent ( GctTracking.CATEGORY , GctTracking.VCS , "upload" , null ) ; final com.intellij.openapi.project.Project project = e.getData ( CommonDataKeys.PROJECT ) ; final com.intellij.openapi.vfs.VirtualFile file = e.getData ( CommonDataKeys.VIRTUAL_FILE ) ; if ( ( ( project == null ) || ( project.isDisposed ( ) ) ) || ( ! ( com.google.gct.idea.git.UploadSourceAction.isGitSupported ( project ) ) ) ) { return ; } com.google.gct.idea.git.UploadSourceAction.uploadProjectToGoogleCloud ( project , file ) ; }

Target:
public void actionPerformed ( final com.google.gct.idea.git.AnActionEvent e ) { com.google.gct.login.stats.UsageTrackerService.getInstance ( ) . trackEvent ( GctTracking.CATEGORY , GctTracking.VCS , "upload" , null ) ; final com.intellij.openapi.project.Project project = e.getData ( CommonDataKeys.PROJECT ) ; final com.intellij.openapi.vfs.VirtualFile file = e.getData ( CommonDataKeys.VIRTUAL_FILE ) ; if ( ( ( project == null ) || ( project.isDisposed ( ) ) ) || ( ! ( com.google.gct.idea.git.UploadSourceAction.isGitSupported ( project ) ) ) ) { return ; } com.google.gct.idea.git.UploadSourceAction.uploadProjectToGoogleCloud ( project , file ) ; }
Source:
public static libcore.Repository openJdk9 ( java.nio.file.Path upstreamRoot , java.lang.String upstreamName ) { java.util.List < java.lang.String > sourceDirs = java.util.Arrays.asList ( "jdk/src/java.base/share/classes" , "jdk/src/java.logging/share/classes" , "jdk/src/java.prefs/share/classes" , "jdk/src/java.sql/share/classes" , "jdk/src/java.desktop/share/classes" , "jdk/src/java.base/solaris/classes" , "jdk/src/java.base/unix/classes" , "jdk/src/java.prefs/unix/classes" , "jdk/src/jdk.unsupported/share/classes" , "jdk/src/jdk.net/share/classes" , "jdk/src/java.base/linux/classes" ) ; return new libcore.Repository.OpenJdkRepository ( upstreamRoot , upstreamName , sourceDirs ) ; }

Target:
public static libcore.Repository openJdk9 ( java.nio.file.Path upstreamRoot , java.lang.String upstreamName ) { java.util.List < java.lang.String > sourceDirs = java.util.Arrays.asList ( "jdk/src/java.base/share/classes" , "jdk/src/java.logging/share/classes" , "jdk/src/java.prefs/share/classes" , "jdk/src/java.sql/share/classes" , "jdk/src/java.desktop/share/classes" , "jdk/src/java.base/solaris/classes" , "jdk/src/java.base/unix/classes" , "jdk/src/java.prefs/unix/classes" , "jdk/src/jdk.unsupported/share/classes" , "jdk/src/jdk.net/share/classes" , "jdk/src/java.base/linux/classes" , "build/linux-x86_64-normal-server-release/support/gensrc/java.base" ) ; return new libcore.Repository.OpenJdkRepository ( upstreamRoot , upstreamName , sourceDirs ) ; }
Source:
public java.lang.String getPythonPath ( ) { return com.android.tradefed.testtype.VtsMultiDeviceTestTest.PYTHON_PATH ; }

Target:
private com.android.tradefed.util.VtsPythonRunnerHelper createMockVtsPythonRunnerHelper ( com.android.tradefed.util.CommandStatus status ) { return new com.android.tradefed.util.VtsPythonRunnerHelper ( new java.io.File ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.PYTHON_DIR ) ) { @ java.lang.Override public java.lang.String runPythonRunner ( java.lang.String [ ] cmd , com.android.tradefed.util.CommandResult commandResult , long testTimeout ) { assertCommand ( cmd ) ; try { createResult ( cmd [ 3 ] ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } commandResult.setStatus ( status ) ; return null ; } } ; }
Source:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { if ( ( mChunkedStreamer ) == null ) { throw new java.lang.IllegalStateException ( "Not initialized" ) ; } byte [ ] output ; try { output = mChunkedStreamer.update ( input , offset , len ) ; } catch ( android.security.KeymasterException e ) { throw new android.security.CryptoOperationException ( "Keystore operation failed" , e ) ; } if ( ( output != null ) && ( ( output.length ) != 0 ) ) { throw new android.security.CryptoOperationException ( "Update operation unexpectedly produced output" ) ; } }

Target:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { if ( ( mChunkedStreamer ) == null ) { throw new java.lang.IllegalStateException ( "Not initialized" ) ; } byte [ ] output ; try { output = mChunkedStreamer.update ( input , offset , len ) ; } catch ( android.security.KeymasterException e ) { throw android.security.KeymasterUtils.getCryptoOperationException ( e ) ; } if ( ( output != null ) && ( ( output.length ) != 0 ) ) { throw new android.security.CryptoOperationException ( "Update operation unexpectedly produced output" ) ; } }
Source:
public void doImport ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws com.android.jack.backend.jayce.ImportConflictException , com.android.jack.ir.ast.JPackageLookupException , com.android.jack.ir.ast.JTypeLookupException { for ( com.android.sched.vfs.InputVDir jayceContainer : jayceContainers ) { logger.log ( java.util.logging.Level.FINE , "Importing {0}" , jayceContainer.getLocation ( ) . getDescription ( ) ) ; for ( com.android.sched.vfs.InputVElement subFile : jayceContainer.list ( ) ) { importJayceFile ( subFile , session , "" ) ; } } }

Target:
public void doImport ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws com.android.jack.backend.jayce.ImportConflictException , com.android.jack.ir.ast.JPackageLookupException , com.android.jack.ir.ast.JTypeLookupException { for ( com.android.sched.vfs.InputVDir jayceContainer : jayceContainers ) { com.android.jack.backend.jayce.JayceFileImporter.logger.log ( java.util.logging.Level.FINE , "Importing {0}" , jayceContainer.getLocation ( ) . getDescription ( ) ) ; for ( com.android.sched.vfs.InputVElement subFile : jayceContainer.list ( ) ) { importJayceFile ( subFile , session , "" ) ; } } }
Source:
public void testInnerClass ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( ( "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.Foo.Bar, was not found in the project or the libraries [MissingRegistered]\n" + ( ( ( ( ( " <activity\n" + " ^\n" ) + "AndroidManifest.xml:23: Error: Class referenced in the manifest, test.pkg.Foo.Baz, was not found in the project or the libraries [MissingRegistered]\n" ) + " <activity\n" ) + " ^\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "registration/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "apicheck/ApiCallTest.class.data=>bin/classes/foo/bar/ApiCallTest.class" , "registration/Foo.java.txt=>src/test/pkg/Foo.java" ) ) ; }

Target:
public void testInnerClass ( ) throws java.lang.Exception { mScopes = null ; mEnabled = com.google.common.collect.Sets.newHashSet ( com.android.tools.lint.checks.MissingClassDetector.MISSING , com.android.tools.lint.checks.MissingClassDetector.INSTANTIATABLE , com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ; assertEquals ( ( "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.Foo.Bar, was not found in the project or the libraries [MissingRegistered]\n" + ( ( ( ( ( " <activity\n" + " ^\n" ) + "AndroidManifest.xml:23: Error: Class referenced in the manifest, test.pkg.Foo.Baz, was not found in the project or the libraries [MissingRegistered]\n" ) + " <activity\n" ) + " ^\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "registration/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "apicheck/ApiCallTest.class.data=>bin/classes/foo/bar/ApiCallTest.class" , "registration/Foo.java.txt=>src/test/pkg/Foo.java" ) ) ; }
Source:
public void test_EVP_CipherInit_ex_Success ( ) throws java.lang.Exception { final long ctx = org.conscrypt.NativeCrypto.EVP_CIPHER_CTX_new ( ) ; try { final long evpCipher = org.conscrypt.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; org.conscrypt.NativeCrypto.EVP_CipherInit_ex ( ctx , evpCipher , org.conscrypt.NativeCryptoTest.AES_128_KEY , null , true ) ; } finally { org.conscrypt.NativeCrypto.EVP_CIPHER_CTX_cleanup ( ctx ) ; } }

Target:
public void test_EVP_CipherInit_ex_Success ( ) throws java.lang.Exception { final org.conscrypt.NativeRef.EVP_CIPHER_CTX ctx = new org.conscrypt.NativeRef.EVP_CIPHER_CTX ( org.conscrypt.NativeCrypto.EVP_CIPHER_CTX_new ( ) ) ; final long evpCipher = org.conscrypt.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; org.conscrypt.NativeCrypto.EVP_CipherInit_ex ( ctx , evpCipher , org.conscrypt.NativeCryptoTest.AES_128_KEY , null , true ) ; }
Source:
public void animateExpandNotificationsPanel ( ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Slog.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( "animateExpand: mExpandedVisible=" + ( mExpandedVisible ) ) ) ; if ( ( ( mDisabled ) & ( android.app.StatusBarManager.DISABLE_EXPAND ) ) != 0 ) { return ; } mNotificationPanel.expand ( ) ; if ( ( mHasFlipSettings ) && ( ( mScrollView.getVisibility ( ) ) != ( android.view.View.VISIBLE ) ) ) { flipToNotifications ( ) ; } if ( false ) postStartTracing ( ) ; }

Target:
public void resetHeadsUpDecayTimer ( ) { if ( ( ( mUseHeadsUp ) && ( ( mHeadsUpNotificationDecay ) > 0 ) ) && ( mHeadsUpNotificationView.isClearable ( ) ) ) { mHandler.removeMessages ( com.android.systemui.statusbar.phone.MSG_HIDE_HEADS_UP ) ; mHandler.sendEmptyMessageDelayed ( com.android.systemui.statusbar.phone.MSG_HIDE_HEADS_UP , mHeadsUpNotificationDecay ) ; } }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { init ( opmode , key , random ) ; initAlgorithmSpecificParameters ( ) ; ensureKeystoreOperationInitialized ( ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { resetAll ( ) ; boolean success = false ; try { init ( opmode , key , random ) ; initAlgorithmSpecificParameters ( ) ; ensureKeystoreOperationInitialized ( ) ; success = true ; } finally { if ( ! success ) { resetAll ( ) ; } } }
Source:
public java.lang.String getPath ( ) { java.lang.String path = mPath ; if ( ( ( mVendor ) != null ) && ( ( mVendor.length ( ) ) > 0 ) ) { path = ( ( mVendor ) + "-" ) + ( mPath ) ; } int h = path.hashCode ( ) ; path = path.replaceAll ( "[^a-zA-Z0-9-]+" , "_" ) ; if ( ( path.length ( ) ) == 0 ) { path = java.lang.String.format ( "unknown_extra%08x" , h ) ; } return path ; }

Target:
public java.lang.String getPath ( ) { java.lang.String path = mPath.replaceAll ( "[^a-zA-Z0-9-]+" , "_" ) ; if ( ( ( path.length ( ) ) == 0 ) || ( path.equals ( "_" ) ) ) { int h = path.hashCode ( ) ; path = java.lang.String.format ( "extra%08x" , h ) ; } return path ; }
Source:
private static java.lang.CharSequence getConnectionLabel ( com.android.incallui.incall.protocol.PrimaryCallState state ) { if ( ( ! ( android.text.TextUtils.isEmpty ( state.connectionLabel ) ) ) && ( ( ( com.android.incallui.contactgrid.TopRow.isAccount ( state ) ) || ( state.isWifi ) ) || ( state.isConference ) ) ) { return state.connectionLabel ; } else { return null ; } }

Target:
private static java.lang.CharSequence getConnectionLabel ( com.android.incallui.incall.protocol.PrimaryCallState state ) { if ( ( ! ( android.text.TextUtils.isEmpty ( state.connectionLabel ( ) ) ) ) && ( ( ( com.android.incallui.contactgrid.TopRow.isAccount ( state ) ) || ( state.isWifi ( ) ) ) || ( state.isConference ( ) ) ) ) { return state.connectionLabel ( ) ; } else { return null ; } }
Source:
public com.android.jack.test.toolchain.JackScriptToolchain build ( ) { return new com.android.jack.test.toolchain.JackScriptToolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) ) ; }

Target:
private static void setUpEnvironment ( @ javax.annotation.Nonnull com.android.jack.test.util.ExecuteFile exec ) { java.lang.String path = java.lang.System.getenv ( "PATH" ) ; if ( path != null ) { exec.addEnvVar ( "PATH" , path ) ; } java.lang.String home = java.lang.System.getenv ( "HOME" ) ; if ( home != null ) { exec.addEnvVar ( "HOME" , home ) ; } java.lang.String user = java.lang.System.getenv ( "USER" ) ; if ( user != null ) { exec.addEnvVar ( "USER" , user ) ; } }
Source:
public boolean visitImportDeclaration ( lombok.ast.ImportDeclaration node ) { java.lang.String fqn = node.asFullyQualifiedName ( ) ; if ( fqn.equals ( "android.R" ) ) { com.android.tools.lint.detector.api.Location location = mContext.getLocation ( node ) ; mContext.report ( com.android.tools.lint.checks.WrongImportDetector.ISSUE , node , location , ( "Don't include `android.R` here; use a fully qualified name for " + "each usage instead" ) ) ; } return false ; }

Target:
public void visitImportStatement ( com.intellij.psi.PsiImportStatement statement ) { java.lang.String qualifiedName = statement.getQualifiedName ( ) ; if ( "android.R" . equals ( qualifiedName ) ) { com.android.tools.lint.detector.api.Location location = mContext.getLocation ( statement ) ; mContext.report ( com.android.tools.lint.checks.WrongImportDetector.ISSUE , statement , location , ( "Don't include `android.R` here; use a fully qualified name for " + "each usage instead" ) ) ; } }
Source:
private void updateRoamingState ( boolean newRoaming ) { if ( ( mCT.getState ( ) ) == ( PhoneConstants.State.IDLE ) ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "updateRoamingState now: " + newRoaming ) ) ; mRoaming = newRoaming ; com.android.ims.ImsManager.setWfcMode ( mContext , com.android.ims.ImsManager.getWfcMode ( mContext , newRoaming ) , newRoaming ) ; } else { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "updateRoamingState postponed: " + newRoaming ) ) ; mCT.registerForVoiceCallEnded ( this , com.android.internal.telephony.imsphone.ImsPhone.EVENT_VOICE_CALL_ENDED , null ) ; } }

Target:
private void logi ( java.lang.String s ) { android.telephony.Rlog.i ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( ( ( "[" + ( mPhoneId ) ) + "] " ) + s ) ) ; }
Source:
private void handleRepeat ( ) { if ( ( mRingtone ) == null ) { return ; } if ( mRingtone.isPlaying ( ) ) { com.android.server.telecom.Log.d ( this , "Ringtone already playing." ) ; } else { mRingtone.play ( ) ; com.android.server.telecom.Log.i ( this , "Repeat ringtone." ) ; } synchronized ( this ) { if ( ! ( mHandler.hasMessages ( com.android.server.telecom.AsyncRingtonePlayer.EVENT_REPEAT ) ) ) { mHandler.sendEmptyMessageDelayed ( com.android.server.telecom.AsyncRingtonePlayer.EVENT_REPEAT , com.android.server.telecom.AsyncRingtonePlayer.RESTART_RINGER_MILLIS ) ; } } }

Target:
private void handleRepeat ( ) { if ( ( mRingtone ) == null ) { return ; } if ( mRingtone.isPlaying ( ) ) { android.telecom.Log.d ( this , "Ringtone already playing." ) ; } else { mRingtone.play ( ) ; android.telecom.Log.i ( this , "Repeat ringtone." ) ; } synchronized ( this ) { if ( ! ( mHandler.hasMessages ( com.android.server.telecom.AsyncRingtonePlayer.EVENT_REPEAT ) ) ) { mHandler.sendEmptyMessageDelayed ( com.android.server.telecom.AsyncRingtonePlayer.EVENT_REPEAT , com.android.server.telecom.AsyncRingtonePlayer.RESTART_RINGER_MILLIS ) ; } } }
Source:
private com.android.jack.ir.ast.JDefinedClassOrInterface create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws com.android.jack.jayce.JayceFormatException , com.android.jack.jayce.JayceVersionException , java.io.IOException { com.android.jack.jayce.DeclaredTypeNode type = getNNode ( NodeLevel.TYPES ) ; java.lang.String packageQualifiedName = com.android.jack.util.NamingTools.getPackageNameFromBinaryName ( com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( type.getSignature ( ) ) ) ; com.android.jack.ir.ast.JPackage pack = session.getLookup ( ) . getOrCreatePackage ( packageQualifiedName ) ; com.android.jack.ir.ast.JDefinedClassOrInterface jType = type.create ( pack , this ) ; return jType ; }

Target:
private com.android.jack.ir.ast.JDefinedClassOrInterface create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws com.android.jack.jayce.JayceFormatException , com.android.jack.jayce.JayceVersionException , java.io.IOException { com.android.jack.jayce.DeclaredTypeNode type = getNNode ( NodeLevel.TYPES , session.getUserLogger ( ) ) ; java.lang.String packageQualifiedName = com.android.jack.util.NamingTools.getPackageNameFromBinaryName ( com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( type.getSignature ( ) ) ) ; com.android.jack.ir.ast.JPackage pack = session.getLookup ( ) . getOrCreatePackage ( packageQualifiedName ) ; com.android.jack.ir.ast.JDefinedClassOrInterface jType = type.create ( pack , this ) ; return jType ; }
Source:
private org.objectweb.asm.tree.FieldNode findField ( org.objectweb.asm.tree.ClassNode classNode , java.lang.String owner , java.lang.String name ) { while ( classNode != null ) { if ( owner.equals ( classNode.name ) ) { @ java.lang.SuppressWarnings ( value = "rawtypes" ) java.util.List fieldList = classNode.fields ; for ( java.lang.Object f : fieldList ) { org.objectweb.asm.tree.FieldNode field = ( ( org.objectweb.asm.tree.FieldNode ) ( f ) ) ; if ( field.name.equals ( name ) ) { return field ; } } return null ; } classNode = getOuterClassNode ( classNode ) ; } return null ; }

Target:
private org.objectweb.asm.tree.FieldNode findField ( @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode , @ com.android.annotations.NonNull java.lang.String owner , @ com.android.annotations.NonNull java.lang.String name ) { org.objectweb.asm.tree.ClassNode current = classNode ; while ( current != null ) { if ( owner.equals ( current.name ) ) { @ java.lang.SuppressWarnings ( value = "rawtypes" ) java.util.List fieldList = current.fields ; for ( java.lang.Object f : fieldList ) { org.objectweb.asm.tree.FieldNode field = ( ( org.objectweb.asm.tree.FieldNode ) ( f ) ) ; if ( field.name.equals ( name ) ) { return field ; } } return null ; } current = getOuterClassNode ( current ) ; } return null ; }
Source:
public void testNoLintWarningOnFlagsInLocalVariable ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( ( "src/test/pkg/GetSignaturesLocalVariableTest.java.txt" + "=>src/test/pkg/GetSignaturesLocalVariableTest.java" ) ) ) ; }

Target:
public void testNoLintWarningOnFlagsInLocalVariable ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/GetSignaturesLocalVariableTest.java:9: Information: Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details. [PackageManagerGetSignatures]\n" + " getPackageManager().getPackageInfo(\"some.pkg\", flags);\n" ) + " ~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( java ( "src/test/pkg/GetSignaturesLocalVariableTest.java" , ( "" + ( ( ( ( ( ( ( ( ( ( "package test.pkg;\n" + "\n" ) + "import android.app.Activity;\n" ) + "import android.content.pm.PackageManager;\n" ) + "\n" ) + "public class GetSignaturesLocalVariableTest extends Activity {\n" ) + " public void passLintCheck() throws Exception {\n" ) + " int flags = PackageManager.GET_SIGNATURES;\n" ) + " getPackageManager().getPackageInfo(\"some.pkg\", flags);\n" ) + " }\n" ) + "}" ) ) ) ) ) ; }
Source:
private boolean contactsDeleted ( long lastModified ) { try ( android.database.Cursor cursor = appContext.getContentResolver ( ) . query ( DeletedContacts.CONTENT_URI , new java.lang.String [ ] { android.provider.ContactsContract.DeletedContacts.CONTACT_DELETED_TIMESTAMP } , ( ( android.provider.ContactsContract.DeletedContacts.CONTACT_DELETED_TIMESTAMP ) + " > ?" ) , new java.lang.String [ ] { java.lang.Long.toString ( lastModified ) } , null ) ) { if ( cursor == null ) { com.android.dialer.common.LogUtil.w ( "Cp2PhoneLookup.contactsDeleted" , "null cursor" ) ; return false ; } return ( cursor.getCount ( ) ) > 0 ; } }

Target:
private boolean anyContactsDeletedSince ( long lastModified ) { try ( android.database.Cursor cursor = appContext.getContentResolver ( ) . query ( DeletedContacts.CONTENT_URI , new java.lang.String [ ] { android.provider.ContactsContract.DeletedContacts.CONTACT_DELETED_TIMESTAMP } , ( ( android.provider.ContactsContract.DeletedContacts.CONTACT_DELETED_TIMESTAMP ) + " > ?" ) , new java.lang.String [ ] { java.lang.Long.toString ( lastModified ) } , ( ( android.provider.ContactsContract.DeletedContacts.CONTACT_DELETED_TIMESTAMP ) + " limit 1" ) ) ) { if ( cursor == null ) { com.android.dialer.common.LogUtil.w ( "Cp2PhoneLookup.anyContactsDeletedSince" , "null cursor" ) ; return false ; } return ( cursor.getCount ( ) ) > 0 ; } }
Source:
public void run ( ) { synchronized ( this ) { tree = model.getTree ( ) ; selectedNode = model.getSelection ( ) ; if ( ( tree ) == null ) { viewport = null ; } else { viewport = new com.android.hierarchyviewerlib.ui.util.DrawableViewNode.Rectangle ( ( ( ( tree.bounds.width ) - ( getBounds ( ) . width ) ) / 2 ) , ( ( ( tree.bounds.height ) - ( getBounds ( ) . height ) ) / 2 ) , getBounds ( ) . width , getBounds ( ) . height ) ; } } }

Target:
public void run ( ) { synchronized ( this ) { tree = model.getTree ( ) ; selectedNode = model.getSelection ( ) ; if ( ( tree ) == null ) { viewport = null ; } else { viewport = new com.android.hierarchyviewerlib.ui.util.DrawableViewNode.Rectangle ( 0 , ( ( ( tree.top ) + ( ( com.android.hierarchyviewerlib.ui.util.DrawableViewNode.NODE_HEIGHT ) / 2 ) ) - ( ( getBounds ( ) . height ) / 2 ) ) , getBounds ( ) . width , getBounds ( ) . height ) ; } } }
Source:
private static void setWifiCountryCodeFromMcc ( android.content.Context context , int mcc ) { java.lang.String country = com.android.internal.telephony.MccTable.countryCodeForMcc ( mcc ) ; android.util.Slog.d ( com.android.internal.telephony.MccTable.LOG_TAG , ( "WIFI_COUNTRY_CODE set to " + country ) ) ; android.net.wifi.WifiManager wM = ( ( android.net.wifi.WifiManager ) ( context.getSystemService ( Context.WIFI_SERVICE ) ) ) ; wM.setCountryCode ( country , false ) ; }

Target:
public static java.lang.String countryCodeForMcc ( java.lang.String mcc ) { try { return com.android.internal.telephony.MccTable.countryCodeForMcc ( java.lang.Integer.parseInt ( mcc ) ) ; } catch ( java.lang.NumberFormatException ex ) { return "" ; } }
Source:
public void startDtmf ( char c ) { if ( ! ( android.telephony.PhoneNumberUtils.is12Key ( c ) ) ) { android.util.Log.e ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , ( ( "startDtmf called with invalid character '" + c ) + "'" ) ) ; } else { mCM.startDtmf ( c , null ) ; } }

Target:
public void startDtmf ( char c ) { if ( ! ( android.telephony.PhoneNumberUtils.is12Key ( c ) ) ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , ( ( "startDtmf called with invalid character '" + c ) + "'" ) ) ; } else { mCM.startDtmf ( c , null ) ; } }
Source:
public void testGetMaxVideoPlaybackResolutionNotFound ( ) throws java.lang.Exception { java.lang.String mockDumpsysOutput = "incorrect output" ; org.easymock.EasyMock.expect ( mMockDevice.executeShellCommand ( "dumpsys display | grep mBaseDisplayInfo" ) ) . andReturn ( mockDumpsysOutput ) . once ( ) ; org.easymock.EasyMock.replay ( mMockDevice ) ; java.awt.Dimension result = mMediaPreparer.getMaxVideoPlaybackResolution ( mMockDevice ) ; assertEquals ( result , MediaPreparer.resolutions [ MediaPreparer.RES_1920_1080 ] ) ; }

Target:
public void testMediaFilesExistOnDeviceFalse ( ) throws java.lang.Exception { mMediaPreparer.mMaxRes = MediaPreparer.DEFAULT_MAX_RESOLUTION ; mMediaPreparer.mBaseDeviceShortDir = "/sdcard/test/bbb_short/" ; java.lang.String firstFileChecked = "/sdcard/test/bbb_short/176x144" ; org.easymock.EasyMock.expect ( mMockDevice.doesFileExist ( firstFileChecked ) ) . andReturn ( false ) . once ( ) ; org.easymock.EasyMock.replay ( mMockDevice ) ; assertFalse ( mMediaPreparer.mediaFilesExistOnDevice ( mMockDevice ) ) ; }
Source:
public void deleteSmsOnSim ( int index , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DELETE_SMS_ON_SIM , response ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( index ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGV ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + index ) ) ; send ( rr ) ; }

Target:
public void sendSMSExpectMore ( java.lang.String smscPDU , java.lang.String pdu , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEND_SMS_EXPECT_MORE , result , mRILDefaultWorkSource ) ; constructGsmSendSmsRilRequest ( rr , smscPDU , pdu ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilSendSms ( mInstanceId , rr.mSerial , SmsSession.Event.Tech.SMS_GSM , SmsSession.Event.Format.SMS_FORMAT_3GPP ) ; send ( rr ) ; }
Source:
protected boolean stop ( ) { try { unregisterReceiver ( mHeadsetReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "Unable to unregister headset receiver" , e ) ; } if ( ( mStateMachine ) != null ) { mStateMachine.doQuit ( ) ; } return true ; }

Target:
protected synchronized boolean stop ( ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetService.TAG , "stop()" ) ; if ( ! ( mStarted ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "stop() called before start()" ) ; return true ; } mStarted = false ; unregisterReceiver ( mHeadsetReceiver ) ; com.android.bluetooth.hfp.HeadsetStateMachine.destroy ( mStateMachine ) ; mStateMachine = null ; mStateMachinesThread.quitSafely ( ) ; mStateMachinesThread = null ; com.android.bluetooth.hfp.HeadsetService.setHeadsetService ( null ) ; return true ; }
Source:
private void confirmParentForPrimitive ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { confirmParent ( expr , com.android.jack.ir.ast.JMethodCall.class , com.android.jack.ir.ast.JPolymorphicMethodCall.class , com.android.jack.ir.ast.JUnaryOperation.class , com.android.jack.ir.ast.JBinaryOperation.class , com.android.jack.ir.ast.cfg.JCaseBlockElement.class , com.android.jack.ir.ast.cfg.JSwitchBlockElement.class , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.cfg.JReturnBlockElement.class , com.android.jack.ir.ast.cfg.JLockBlockElement.class , com.android.jack.ir.ast.cfg.JUnlockBlockElement.class , com.android.jack.ir.ast.cfg.JPhiBlockElement.class , com.android.jack.ir.ast.JFieldRef.class , com.android.jack.ir.ast.JArrayRef.class , com.android.jack.ir.ast.JArrayLength.class , com.android.jack.ir.ast.JNewArray.class , com.android.jack.ir.ast.JDynamicCastOperation.class , com.android.jack.ir.ast.JReinterpretCastOperation.class , com.android.jack.ir.ast.cfg.JThrowBlockElement.class , com.android.jack.ir.ast.JInstanceOf.class ) ; }

Target:
private void confirmParentForTrivia ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert ! ( expr.canThrow ( ) ) ; confirmParent ( expr , com.android.jack.ir.ast.JMethodCall.class , com.android.jack.ir.ast.JPolymorphicMethodCall.class , com.android.jack.ir.ast.JUnaryOperation.class , com.android.jack.ir.ast.JBinaryOperation.class , com.android.jack.ir.ast.cfg.JCaseBlockElement.class , com.android.jack.ir.ast.cfg.JSwitchBlockElement.class , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.cfg.JReturnBlockElement.class , com.android.jack.ir.ast.cfg.JLockBlockElement.class , com.android.jack.ir.ast.cfg.JUnlockBlockElement.class , com.android.jack.ir.ast.cfg.JPhiBlockElement.class , com.android.jack.ir.ast.JFieldRef.class , com.android.jack.ir.ast.JArrayRef.class , com.android.jack.ir.ast.JArrayLength.class , com.android.jack.ir.ast.JNewArray.class , com.android.jack.ir.ast.JDynamicCastOperation.class , com.android.jack.ir.ast.JReinterpretCastOperation.class , com.android.jack.ir.ast.cfg.JThrowBlockElement.class , com.android.jack.ir.ast.JInstanceOf.class ) ; }
Source:
private void startContactInfoSearch ( ) { com.android.incallui.call.DialerCall dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getIncomingCall ( ) ; if ( dialerCall == null ) { dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getOutgoingCall ( ) ; } if ( dialerCall == null ) { dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getActiveOrBackgroundCall ( ) ; } if ( dialerCall != null ) { contactInfoCache.findInfo ( dialerCall , false , new com.android.incallui.NewReturnToCallController.ReturnToCallContactInfoCacheCallback ( this ) ) ; } }

Target:
private com.android.incallui.call.DialerCall getCall ( ) { com.android.incallui.call.DialerCall dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getOutgoingCall ( ) ; if ( dialerCall == null ) { dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getActiveOrBackgroundCall ( ) ; } return dialerCall ; }
Source:
public void testBuildWithAltPressed ( ) { android.support.test.espresso.action.EspressoKey key = new android.support.test.espresso.action.EspressoKey.Builder ( ) . withKeyCode ( android.support.test.espresso.action.EspressoKeyBuilderTest.KEY_CODE ) . withAltPressed ( true ) . build ( ) ; assertEquals ( android.support.test.espresso.action.EspressoKeyBuilderTest.KEY_CODE , key.getKeyCode ( ) ) ; assertEquals ( KeyEvent.META_ALT_ON , key.getMetaState ( ) ) ; }

Target:
public void buildWithAltPressed ( ) { android.support.test.espresso.action.EspressoKey key = new android.support.test.espresso.action.EspressoKey.Builder ( ) . withKeyCode ( android.support.test.espresso.action.EspressoKeyBuilderTest.KEY_CODE ) . withAltPressed ( true ) . build ( ) ; org.junit.Assert.assertEquals ( android.support.test.espresso.action.EspressoKeyBuilderTest.KEY_CODE , key.getKeyCode ( ) ) ; org.junit.Assert.assertEquals ( KeyEvent.META_ALT_ON , key.getMetaState ( ) ) ; }
Source:
public void addressRemoved ( android.net.LinkAddress address , java.lang.String iface , int flags , int scope ) { if ( mWifiStateMachine.mInterfaceName.equals ( iface ) ) { if ( android.net.wifi.WifiStateMachine.DBG ) { log ( ( ( ( ( ( ( ( "addressRemoved: " + address ) + " on " ) + iface ) + " flags " ) + flags ) + " scope " ) + scope ) ) ; } mWifiStateMachine.sendMessage ( android.net.wifi.WifiStateMachine.CMD_IP_ADDRESS_REMOVED , address ) ; } }

Target:
public void addressRemoved ( java.lang.String iface , android.net.LinkAddress address ) { if ( mWifiStateMachine.mInterfaceName.equals ( iface ) ) { maybeLog ( "addressRemoved" , iface , address ) ; mWifiStateMachine.sendMessage ( android.net.wifi.WifiStateMachine.CMD_IP_ADDRESS_REMOVED , address ) ; } }
Source:
public void onDestroy ( ) { unbindNetworkQueryService ( ) ; super . onDestroy ( ) ; if ( ( ( getActivity ( ) ) != null ) && ( ! ( getActivity ( ) . isDestroyed ( ) ) ) ) { getActivity ( ) . unregisterReceiver ( mPhoneChangeReceiver ) ; } }

Target:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; if ( ( mUm.hasUserRestriction ( UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS ) ) || ( ! ( mUm.isSystemUser ( ) ) ) ) { mUnavailable = true ; getActivity ( ) . setContentView ( R.layout.telephony_disallowed_preference_screen ) ; } else { initializeSubscriptions ( ) ; } }
Source:
private void switchToRadioState ( com.android.internal.telephony.RadioState newState ) { setRadioState ( newState ) ; }

Target:
void processResponseDone ( com.android.internal.telephony.RILRequest rr , android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.Object ret ) { mMetrics.writeOnRilSolicitedResponse ( mInstanceId , rr.mSerial , responseInfo.error , rr.mRequest , ret ) ; if ( rr != null ) { if ( ( responseInfo.type ) == ( android.hardware.radio.V1_0.RadioResponseType.SOLICITED ) ) { decrementWakeLock ( rr ) ; } rr.release ( ) ; } }