auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_wrap_ByteBuffer_ByteBuffer_04 ( ) throws java.lang.Exception { java.lang.String host = "new host" ; int port = 8080 ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 10 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 10 ) ; javax.net.ssl.SSLEngine sse = getEngine ( host , port ) ; try { javax.net.ssl.SSLEngineResult result = sse.wrap ( bbs , bbd ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void test_wrap_ByteBuffer_ByteBuffer_04 ( ) throws java.lang.Exception { java.lang.String host = "new host" ; int port = 8080 ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 10 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 10 ) ; javax.net.ssl.SSLEngine sse = getEngine ( host , port ) ; try { javax.net.ssl.SSLEngineResult result = sse.wrap ( bbs , bbd ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }
Source:
public void test_getProvider ( ) { for ( int i = 0 ; i < ( keyfactAlgs.length ) ; i ++ ) { try { java.security.KeyFactory fact = java.security.KeyFactory.getInstance ( keyfactAlgs [ i ] ) ; java.security.Provider p = fact.getProvider ( ) ; assertNotNull ( ( "provider is null for algorithm " + ( keyfactAlgs [ i ] ) ) , p ) ; } catch ( java.security.NoSuchAlgorithmException e ) { fail ( ( "getInstance did not find algorithm " + ( keyfactAlgs [ i ] ) ) ) ; } } }

Target:
public void test_getProvider ( ) throws java.lang.Exception { for ( int i = 0 ; i < ( keyfactAlgs.length ) ; i ++ ) { java.security.KeyFactory fact = java.security.KeyFactory.getInstance ( keyfactAlgs [ i ] ) ; java.security.Provider p = fact.getProvider ( ) ; assertNotNull ( ( "provider is null for algorithm " + ( keyfactAlgs [ i ] ) ) , p ) ; } }
Source:
private static void generateTestManifest ( java.lang.String testPackageName , java.lang.String minSdkVersion , int targetSdkVersion , java.lang.String testedPackageName , java.lang.String instrumentationRunner , java.lang.Boolean handleProfiling , java.lang.Boolean functionalTest , java.lang.String outManifestLocation ) { com.android.builder.internal.TestManifestGenerator generator = new com.android.builder.internal.TestManifestGenerator ( outManifestLocation , testPackageName , minSdkVersion , targetSdkVersion , testedPackageName , instrumentationRunner , handleProfiling , functionalTest ) ; try { generator.generate ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
private static void generateTestManifest ( @ com.android.annotations.NonNull java.lang.String testPackageName , @ com.android.annotations.Nullable java.lang.String minSdkVersion , int targetSdkVersion , @ com.android.annotations.NonNull java.lang.String testedPackageName , @ com.android.annotations.NonNull java.lang.String instrumentationRunner , @ com.android.annotations.NonNull java.lang.Boolean handleProfiling , @ com.android.annotations.NonNull java.lang.Boolean functionalTest , @ com.android.annotations.NonNull java.io.File outManifestLocation ) { com.android.builder.internal.TestManifestGenerator generator = new com.android.builder.internal.TestManifestGenerator ( outManifestLocation , testPackageName , minSdkVersion , targetSdkVersion , testedPackageName , instrumentationRunner , handleProfiling , functionalTest ) ; try { generator.generate ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void testBasicCycle ( ) { com.android.tools.perflib.heap.analysis.Snapshot snapshot = new com.android.tools.perflib.heap.analysis.SnapshotBuilder ( 3 ) . addReferences ( 1 , 2 ) . addReferences ( 2 , 3 ) . addReferences ( 3 , 1 ) . addRoot ( 1 ) . getSnapshot ( ) ; assertEquals ( 6 , snapshot.findInstance ( 1 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findInstance ( 2 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findInstance ( 3 ) . getCompositeSize ( ) ) ; }

Target:
public void testBasicCycle ( ) { com.android.tools.perflib.heap.analysis.Snapshot snapshot = new com.android.tools.perflib.heap.analysis.SnapshotBuilder ( 3 ) . addReferences ( 1 , 2 ) . addReferences ( 2 , 3 ) . addReferences ( 3 , 1 ) . addRoot ( 1 ) . build ( ) ; assertEquals ( 6 , snapshot.findInstance ( 1 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findInstance ( 2 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findInstance ( 3 ) . getCompositeSize ( ) ) ; }
Source:
public static junit.framework.TestSuite suite ( ) { junit.framework.TestSuite suite = new junit.framework.TestSuite ( ) ; suite.addTest ( com.android.ide.eclipse.tests.FuncTests.suite ( ) ) ; suite.addTest ( com.android.ide.eclipse.tests.UnitTests.suite ( ) ) ; suite.addTest ( com.android.ide.eclipse.tests.GroovyTestsSuite.suite ( ) ) ; return suite ; }

Target:
public static junit.framework.TestSuite suite ( ) { junit.framework.TestSuite suite = new junit.framework.TestSuite ( ) ; suite.addTest ( com.android.ide.eclipse.tests.FuncTests.suite ( ) ) ; suite.addTest ( com.android.ide.eclipse.tests.UnitTests.suite ( ) ) ; return suite ; }
Source:
public void testRendering800x480LocallyWith3Windows ( ) throws java.lang.Throwable { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "testRendering800x480LocallyWith3Windows" ) ; android.util.Pair < java.lang.Integer , java.lang.Integer > maxRes = checkMaxConcurrentEncodingDecodingResolution ( ) ; if ( ( ( maxRes.first ) >= 800 ) && ( ( maxRes.second ) >= 480 ) ) { runTestRenderingInSeparateThread ( 800 , 480 , false , true ) ; } else { android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "This H/W does not support 800x480" ) ; } }

Target:
public void testRendering800x480LocallyWith3Windows ( ) throws java.lang.Throwable { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "testRendering800x480LocallyWith3Windows" ) ; android.util.Pair < java.lang.Integer , java.lang.Integer > maxRes = checkMaxConcurrentEncodingDecodingResolution ( ) ; if ( maxRes == null ) return ; if ( ( ( maxRes.first ) >= 800 ) && ( ( maxRes.second ) >= 480 ) ) { runTestRenderingInSeparateThread ( 800 , 480 , false , true ) ; } else { android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "This H/W does not support 800x480" ) ; } }
Source:
static void setString ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , java.lang.String value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void setString ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , java.lang.String value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
static com.android.build.gradle.tasks.annotations.Extractor.FieldItem create ( java.lang.String classFqn , @ com.android.annotations.NonNull com.android.build.gradle.tasks.annotations.Extractor.ClassKind classKind , org.eclipse.jdt.internal.compiler.lookup.FieldBinding field ) { java.lang.String name = new java.lang.String ( field.name ) ; java.lang.String type = com.android.build.gradle.tasks.annotations.Extractor.FieldItem.getFieldType ( field ) ; return classFqn != null ? new com.android.build.gradle.tasks.annotations.Extractor.FieldItem ( classFqn , classKind , name , type ) : null ; }

Target:
static com.android.build.gradle.tasks.annotations.Extractor.FieldItem create ( java.lang.String classFqn , org.eclipse.jdt.internal.compiler.lookup.FieldBinding field ) { java.lang.String name = new java.lang.String ( field.name ) ; return classFqn != null ? new com.android.build.gradle.tasks.annotations.Extractor.FieldItem ( classFqn , name ) : null ; }
Source:
public boolean isConnected ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , "isConnected()" ) ; } com.android.bluetooth.map.BluetoothMapService service = getService ( ) ; if ( service == null ) { return false ; } return ( ( service.getState ( ) ) == ( android.bluetooth.BluetoothMap.STATE_CONNECTED ) ) && ( service.getRemoteDevice ( ) . equals ( device ) ) ; }

Target:
public boolean isConnected ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , "isConnected()" ) ; } com.android.bluetooth.map.BluetoothMapService service = getService ( ) ; return ( ( service != null ) && ( ( service.getState ( ) ) == ( android.bluetooth.BluetoothMap.STATE_CONNECTED ) ) ) && ( com.android.bluetooth.map.BluetoothMapService.getRemoteDevice ( ) . equals ( device ) ) ; }
Source:
public void hyperlinkUpdate ( javax.swing.event.HyperlinkEvent e ) { if ( ( e.getEventType ( ) ) == ( javax.swing.event.HyperlinkEvent.EventType.ACTIVATED ) ) { com.intellij.ide.BrowserUtil.browse ( e.getURL ( ) . toString ( ) ) ; } }

Target:
public void hyperlinkUpdate ( javax.swing.event.HyperlinkEvent e ) { if ( ( e.getEventType ( ) ) == ( javax.swing.event.HyperlinkEvent.EventType.ACTIVATED ) ) { assert ( e.getURL ( ) ) != null ; com.intellij.ide.BrowserUtil.browse ( e.getURL ( ) . toString ( ) ) ; } }
Source:
public java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > executeAndReturnMultiModel ( boolean emulateStudio_1_0 , java.lang.String ... tasks ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { executeBuild ( java.util.Collections.< java.lang.String > emptyList ( ) , connection , tasks ) ; return com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection , new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , emulateStudio_1_0 ) ; } finally { connection.close ( ) ; } }

Target:
public java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > executeAndReturnMultiModel ( boolean emulateStudio_1_0 , java.lang.String ... tasks ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { executeBuild ( java.util.Collections.< java.lang.String > emptyList ( ) , connection , tasks ) ; return buildModel ( connection , new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , emulateStudio_1_0 ) ; } finally { connection.close ( ) ; } }
Source:
private void processStartPackageCommand ( com.android.cts.CommandParser cp ) { try { java.lang.String pathName = cp.getValue ( CTSCommand.OPTION_PACKAGE ) ; mHost.startZippedPackage ( pathName , getProfile ( cp ) ) ; } catch ( com.android.cts.DeviceDisconnectedException e ) { com.android.cts.Log.e ( ( ( "Device " + ( e.getMessage ( ) ) ) + " disconnected" ) , e ) ; } catch ( java.lang.Exception e ) { com.android.cts.Log.e ( "Met exception during running zipped package." , e ) ; } }

Target:
private void processStartPackageCommand ( com.android.cts.CommandParser cp ) { try { java.lang.String pathName = cp.getValue ( CTSCommand.OPTION_PACKAGE ) ; mHost.startZippedPackage ( pathName ) ; } catch ( com.android.cts.DeviceDisconnectedException e ) { com.android.cts.Log.e ( ( ( "Device " + ( e.getMessage ( ) ) ) + " disconnected" ) , e ) ; } catch ( java.lang.Exception e ) { com.android.cts.Log.e ( "Met exception during running zipped package." , e ) ; } }
Source:
public < A extends java.nio.file.attribute.BasicFileAttributes > A readAttributes ( java.nio.file.Path file , java.lang.Class < A > type , java.nio.file.LinkOption ... options ) throws java.io.IOException { if ( type == ( java.nio.file.attribute.DosFileAttributes.class ) ) { java.nio.file.attribute.DosFileAttributeView view = getFileAttributeView ( file , java.nio.file.attribute.DosFileAttributeView.class , options ) ; return ( ( A ) ( view.readAttributes ( ) ) ) ; } else { return super . readAttributes ( file , type , options ) ; } }

Target:
public < A extends java.nio.file.attribute.BasicFileAttributes > A readAttributes ( java.nio.file.Path file , java.lang.Class < A > type , java.nio.file.LinkOption ... options ) throws java.io.IOException { return super . readAttributes ( file , type , options ) ; }
Source:
private static void registerDefaultProviders ( ) { java.security.Security.secprops.put ( "security.provider.1" , "org.apache.harmony.xnet.provider.jsse.OpenSSLProvider" ) ; java.security.Security.secprops.put ( "security.provider.2" , "org.apache.harmony.security.provider.cert.DRLCertFactory" ) ; java.security.Security.secprops.put ( "security.provider.3" , "org.bouncycastle.jce.provider.BouncyCastleProvider" ) ; java.security.Security.secprops.put ( "security.provider.4" , "org.apache.harmony.security.provider.crypto.CryptoProvider" ) ; java.security.Security.secprops.put ( "security.provider.5" , "org.apache.harmony.xnet.provider.jsse.JSSEProvider" ) ; }

Target:
private static void registerDefaultProviders ( ) { java.security.Security.secprops.put ( "security.provider.1" , "org.apache.harmony.security.provider.cert.DRLCertFactory" ) ; java.security.Security.secprops.put ( "security.provider.2" , "org.apache.harmony.xnet.provider.jsse.OpenSSLProvider" ) ; java.security.Security.secprops.put ( "security.provider.3" , "org.bouncycastle.jce.provider.BouncyCastleProvider" ) ; java.security.Security.secprops.put ( "security.provider.4" , "org.apache.harmony.security.provider.crypto.CryptoProvider" ) ; java.security.Security.secprops.put ( "security.provider.5" , "org.apache.harmony.xnet.provider.jsse.JSSEProvider" ) ; }
Source:
private void expandBuffer ( ) { int oldPosition = buffer.position ( ) ; int oldCapacity = buffer.capacity ( ) ; int oldLimit = buffer.limit ( ) ; int newCapacity = oldCapacity * ( java.util.Scanner.DIPLOID ) ; char [ ] newBuffer = new char [ newCapacity ] ; java.lang.System.arraycopy ( buffer.array ( ) , 0 , newBuffer , 0 , oldLimit ) ; buffer = java.nio.CharBuffer.wrap ( newBuffer , 0 , newCapacity ) ; buffer.position ( oldPosition ) ; buffer.limit ( oldLimit ) ; }

Target:
private void expandBuffer ( ) { int oldPosition = buffer.position ( ) ; int oldCapacity = buffer.capacity ( ) ; int oldLimit = buffer.limit ( ) ; int newCapacity = oldCapacity * 2 ; char [ ] newBuffer = new char [ newCapacity ] ; java.lang.System.arraycopy ( buffer.array ( ) , 0 , newBuffer , 0 , oldLimit ) ; buffer = java.nio.CharBuffer.wrap ( newBuffer , 0 , newCapacity ) ; buffer.position ( oldPosition ) ; buffer.limit ( oldLimit ) ; }
Source:
private android.net.Network connectKeepaliveNetwork ( android.net.LinkProperties lp ) { if ( ( mWiFiNetworkAgent ) != null ) { assertNull ( mCm.getNetworkCapabilities ( mWiFiNetworkAgent.getNetwork ( ) ) ) ; } mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; android.os.ConditionVariable cv = waitForConnectivityBroadcasts ( 1 ) ; mWiFiNetworkAgent.connect ( true ) ; com.android.server.ConnectivityServiceTest.waitFor ( cv ) ; verifyActiveNetwork ( com.android.server.TRANSPORT_WIFI ) ; mWiFiNetworkAgent.sendLinkProperties ( lp ) ; mService.waitForIdle ( ) ; return mWiFiNetworkAgent.getNetwork ( ) ; }

Target:
private android.net.Network connectKeepaliveNetwork ( android.net.LinkProperties lp ) { if ( ( mWiFiNetworkAgent ) != null ) { assertNull ( mCm.getNetworkCapabilities ( mWiFiNetworkAgent.getNetwork ( ) ) ) ; } mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; android.os.ConditionVariable cv = waitForConnectivityBroadcasts ( 1 ) ; mWiFiNetworkAgent.connect ( true ) ; com.android.server.ConnectivityServiceTest.waitFor ( cv ) ; verifyActiveNetwork ( com.android.server.TRANSPORT_WIFI ) ; mWiFiNetworkAgent.sendLinkProperties ( lp ) ; waitForIdle ( ) ; return mWiFiNetworkAgent.getNetwork ( ) ; }
Source:
public void testSaveProperties ( ) throws java.lang.Exception { java.util.Properties expected = createExpectedProps ( ) ; java.lang.Package p = new com.android.sdklib.internal.repository.packages.PackageTest.MockPackage ( null , expected , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH ) ; java.util.Properties actual = new java.util.Properties ( ) ; p.saveProperties ( actual ) ; assertEquals ( expected , actual ) ; }

Target:
public void testSaveProperties ( ) throws java.lang.Exception { java.util.Properties expected = createExpectedProps ( ) ; java.lang.Package p = new com.android.sdklib.internal.repository.packages.PackageTest.MockPackage ( null , expected , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH ) ; java.util.Properties actual = new java.util.Properties ( ) ; p.saveProperties ( actual ) ; assertEquals ( expected , actual ) ; }
Source:
public void onSensorChanged ( android.hardware.SensorEvent event ) { clearText ( ) ; float [ ] values = event.values ; com.android.cts.verifier.sensors.SensorTestLogger logger = getTestLogger ( ) ; logger.logInstructions ( R.string.snsr_mag_calibration_description ) ; logger.logMessage ( R.string.snsr_mag_measurement , values [ 0 ] , values [ 1 ] , values [ 2 ] , android.hardware.cts.helpers.SensorCtsHelper.getMagnitude ( values ) ) ; logger.logInstructions ( R.string.snsr_mag_calibration_complete ) ; }

Target:
public void onSensorChanged ( android.hardware.SensorEvent event ) { clearText ( ) ; float [ ] values = event.values ; logger.logMessage ( R.string.snsr_mag_measurement , values [ 0 ] , values [ 1 ] , values [ 2 ] , android.hardware.cts.helpers.SensorCtsHelper.getMagnitude ( values ) ) ; }
Source:
private static java.util.List < com.android.build.OutputFile > computeBestOutput ( @ com.android.annotations.NonNull java.util.List < ? extends com.android.build.VariantOutput > outputs , @ com.android.annotations.NonNull java.util.Set < java.lang.String > variantAbis , int density , @ com.android.annotations.NonNull java.lang.String ... abis ) { return com.android.ide.common.build.SplitOutputMatcher.computeBestOutput ( outputs , variantAbis , density , java.util.Arrays.asList ( abis ) ) ; }

Target:
private static java.util.List < com.android.build.OutputFile > computeBestOutput ( @ com.android.annotations.NonNull java.util.List < ? extends com.android.build.VariantOutput > outputs , @ com.android.annotations.NonNull java.util.Set < java.lang.String > variantAbis , int density , @ com.android.annotations.NonNull java.lang.String ... abis ) { return com.android.ide.common.build.SplitOutputMatcher.computeBestOutput ( outputs , variantAbis , density , null , null , java.util.Arrays.asList ( abis ) ) ; }
Source:
public java.util.logging.Level convert ( java.lang.String input ) throws com.google.devtools.common.options.OptionsParsingException { try { int level = java.lang.Integer.parseInt ( input ) ; return com.google.devtools.common.options.Converters.LogLevelConverter.LEVELS [ level ] ; } catch ( java.lang.NumberFormatException e ) { throw new com.google.devtools.common.options.OptionsParsingException ( ( "Not a log level: " + input ) ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new com.google.devtools.common.options.OptionsParsingException ( ( "Not a log level: " + input ) ) ; } }

Target:
public java.util.logging.Level convert ( java.lang.String input ) throws com.google.devtools.common.options.OptionsParsingException { try { int level = java.lang.Integer.parseInt ( input ) ; return com.google.devtools.common.options.Converters.LogLevelConverter.LEVELS [ level ] ; } catch ( java.lang.NumberFormatException | java.lang.ArrayIndexOutOfBoundsException e ) { throw new com.google.devtools.common.options.OptionsParsingException ( ( "Not a log level: " + input ) ) ; } }
Source:
private void decodeVideo ( android.media.cts.VideoFormat videoFormat , android.media.cts.VideoViewFactory videoViewFactory ) { final android.media.cts.SimplePlayer player = new android.media.cts.SimplePlayer ( getHelper ( ) . getContext ( ) ) ; final android.media.cts.SimplePlayer.PlayerResult playerResult = player.decodeVideoFrames ( videoViewFactory.getSurface ( ) , videoFormat , 10 ) ; junit.framework.TestCase.assertTrue ( playerResult.getFailureMessage ( ) , playerResult.isSuccess ( ) ) ; }

Target:
private void decodeVideo ( android.media.cts.VideoFormat videoFormat , android.media.cts.VideoViewFactory videoViewFactory ) { this . player = new android.media.cts.SimplePlayer ( getHelper ( ) . getContext ( ) ) ; final android.media.cts.SimplePlayer.PlayerResult playerResult = player.decodeVideoFrames ( videoViewFactory.getSurface ( ) , videoFormat , 10 ) ; junit.framework.TestCase.assertTrue ( playerResult.getFailureMessage ( ) , playerResult.isSuccess ( ) ) ; }
Source:
public void error ( @ com.android.annotations.NonNull com.android.manifmerger.Severity severity , @ com.android.annotations.NonNull com.android.manifmerger.FileAndLine location , @ com.android.annotations.NonNull java.lang.String message , java.lang.Object ... msgParams ) { switch ( severity ) { case INFO : sdkLog.printf ( "[%1$s] %2$s" , location , java.lang.String.format ( message , msgParams ) ) ; break ; case WARNING : sdkLog.warning ( "[%1$s] %2$s" , location , java.lang.String.format ( message , msgParams ) ) ; break ; case ERROR : sdkLog.error ( null , "[%1$s] %2$s" , location , java.lang.String.format ( message , msgParams ) ) ; break ; } }

Target:
public void error ( @ com.android.annotations.NonNull com.android.manifmerger.Severity severity , @ com.android.annotations.NonNull com.android.manifmerger.FileAndLine location , @ com.android.annotations.NonNull java.lang.String message , java.lang.Object ... msgParams ) { switch ( severity ) { case INFO : sdkLog.info ( "[%1$s] %2$s" , location , java.lang.String.format ( message , msgParams ) ) ; break ; case WARNING : sdkLog.warning ( "[%1$s] %2$s" , location , java.lang.String.format ( message , msgParams ) ) ; break ; case ERROR : sdkLog.error ( null , "[%1$s] %2$s" , location , java.lang.String.format ( message , msgParams ) ) ; break ; } }
Source:
public boolean startPktFateMonitoring ( ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.startPktFateMonitoring ( ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return ( com.android.server.wifi.WifiNative.startPktFateMonitoringNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ) == ( com.android.server.wifi.WifiNative.WIFI_SUCCESS ) ; } else { return false ; } } }

Target:
public boolean startPktFateMonitoring ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return ( com.android.server.wifi.WifiNative.startPktFateMonitoringNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ) == ( com.android.server.wifi.WifiNative.WIFI_SUCCESS ) ; } else { return false ; } } }
Source:
protected void doSave ( @ org.jetbrains.annotations.Nullable java.util.List < com.intellij.openapi.components.StateStorage.SaveSession > saveSessions , @ org.jetbrains.annotations.NotNull java.util.List < com.intellij.openapi.components.impl.stores.Pair < com.intellij.openapi.components.StateStorage.SaveSession , com.intellij.openapi.vfs.VirtualFile > > readonlyFiles ) { if ( saveSessions != null ) { java.util.List < java.lang.Throwable > errors = null ; for ( com.intellij.openapi.components.StateStorage.SaveSession session : saveSessions ) { errors = com.intellij.openapi.components.impl.stores.ComponentStoreImpl.executeSave ( session , readonlyFiles , errors ) ; } if ( errors != null ) { throw new com.intellij.util.lang.CompoundRuntimeException ( errors ) ; } } }

Target:
protected java.util.List < java.lang.Throwable > doSave ( @ org.jetbrains.annotations.Nullable java.util.List < com.intellij.openapi.components.StateStorage.SaveSession > saveSessions , @ org.jetbrains.annotations.NotNull java.util.List < com.intellij.openapi.components.impl.stores.Pair < com.intellij.openapi.components.StateStorage.SaveSession , com.intellij.openapi.vfs.VirtualFile > > readonlyFiles , @ org.jetbrains.annotations.Nullable java.util.List < java.lang.Throwable > errors ) { if ( saveSessions != null ) { for ( com.intellij.openapi.components.StateStorage.SaveSession session : saveSessions ) { errors = com.intellij.openapi.components.impl.stores.ComponentStoreImpl.executeSave ( session , readonlyFiles , errors ) ; } } return errors ; }
Source:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String itemName , boolean isFrameworkAttr ) { com.android.ide.common.rendering.api.ResourceValue item = style.findValue ( itemName , isFrameworkAttr ) ; if ( item == null ) { com.android.ide.common.rendering.api.StyleResourceValue parentStyle = mStyleInheritanceMap.get ( style ) ; if ( parentStyle != null ) { return findItemInStyle ( parentStyle , itemName , isFrameworkAttr ) ; } } return item ; }

Target:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String itemName , boolean isFrameworkAttr ) { return findItemInStyle ( style , itemName , isFrameworkAttr , 0 ) ; }
Source:
public void dispose ( ) { if ( mDbg ) log ( ( "Disposing card type " + ( is3gpp ? "3gpp" : "3gpp2" ) ) ) ; mPhone.mCM.unregisterForIccStatusChanged ( mHandler ) ; mPhone.mCM.unregisterForOffOrNotAvailable ( mHandler ) ; mPhone.mCM.unregisterForOn ( mHandler ) ; mCatService.dispose ( ) ; mCdmaSSM.dispose ( mHandler ) ; mIccRecords.dispose ( ) ; mIccFileHandler.dispose ( ) ; }

Target:
public void dispose ( ) { if ( mDbg ) log ( ( "Disposing card type " + ( is3gpp ? "3gpp" : "3gpp2" ) ) ) ; mPhone.mCM.unregisterForOffOrNotAvailable ( mHandler ) ; mPhone.mCM.unregisterForOn ( mHandler ) ; mCatService.dispose ( ) ; mCdmaSSM.dispose ( mHandler ) ; mIccRecords.dispose ( ) ; mIccFileHandler.dispose ( ) ; }
Source:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringCharsetValue = getStaticFieldValue ( debuggeeClassId , "STRING_CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( stringCharsetValue ) ; }

Target:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringCharsetValue = getStaticFieldValue ( debuggeeClassId , "STRING_CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; constructorArguments.add ( stringCharsetValue ) ; }
Source:
static com.android.bluetooth.a2dp.A2dpStateMachine make ( android.bluetooth.BluetoothDevice device , com.android.bluetooth.a2dp.A2dpService a2dpService , com.android.bluetooth.a2dp.A2dpNativeInterface a2dpNativeInterface , android.os.Looper looper ) { if ( com.android.bluetooth.a2dp.A2dpStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( "make for device " + device ) ) ; } com.android.bluetooth.a2dp.A2dpStateMachine a2dpSm = new com.android.bluetooth.a2dp.A2dpStateMachine ( device , a2dpService , a2dpNativeInterface , looper ) ; a2dpSm.start ( ) ; return a2dpSm ; }

Target:
static com.android.bluetooth.a2dp.A2dpStateMachine make ( android.bluetooth.BluetoothDevice device , com.android.bluetooth.a2dp.A2dpService a2dpService , com.android.bluetooth.a2dp.A2dpNativeInterface a2dpNativeInterface , android.os.Looper looper ) { android.util.Log.i ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( "make for device " + device ) ) ; com.android.bluetooth.a2dp.A2dpStateMachine a2dpSm = new com.android.bluetooth.a2dp.A2dpStateMachine ( device , a2dpService , a2dpNativeInterface , looper ) ; a2dpSm.start ( ) ; return a2dpSm ; }
Source:
public void testSendImsGmsTestWithOutDesAddr ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_GSM ) ; mImsSmsDispatcher.sendText ( null , "222" , com.android.internal.telephony.TAG , null , null , null , null , false ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier , org.mockito.Mockito.times ( 0 ) ) . sendImsGsmSms ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }

Target:
public void testSendImsGmsTestWithOutDesAddr ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_GSM ) ; mImsSmsDispatcher.sendText ( null , "222" , com.android.internal.telephony.TAG , null , null , null , null , false , ( - 1 ) , false , ( - 1 ) ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier , org.mockito.Mockito.times ( 0 ) ) . sendImsGsmSms ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }
Source:
private static java.awt.image.BufferedImage readImage ( @ com.android.annotations.NonNull java.lang.String name ) { java.io.InputStream stream = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.class . getResourceAsStream ( ( "/icons/" + name ) ) ; if ( stream != null ) { try { return javax.imageio.ImageIO.read ( stream ) ; } catch ( java.io.IOException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Could not read %1$s" , name ) ; } finally { try { stream.close ( ) ; } catch ( java.io.IOException e ) { } } } return null ; }

Target:
public static java.awt.image.BufferedImage readImage ( @ com.android.annotations.NonNull java.lang.String name ) { java.io.InputStream stream = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ImageUtils.class . getResourceAsStream ( ( "/icons/" + name ) ) ; if ( stream != null ) { try { return javax.imageio.ImageIO.read ( stream ) ; } catch ( java.io.IOException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Could not read %1$s" , name ) ; } finally { try { stream.close ( ) ; } catch ( java.io.IOException e ) { } } } return null ; }
Source:
public static org.bouncycastle.crypto.params.ECPublicKeyParameters deserializeECPublicKey ( short [ ] ecPointFormats , org.bouncycastle.crypto.params.ECDomainParameters curve_params , byte [ ] encoding ) throws java.io.IOException { try { org.bouncycastle.math.ec.ECPoint Y = org.bouncycastle.crypto.tls.TlsECCUtils.deserializeECPoint ( ecPointFormats , curve_params.getCurve ( ) , encoding ) ; return new org.bouncycastle.crypto.params.ECPublicKeyParameters ( Y , curve_params ) ; } catch ( java.lang.RuntimeException e ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.illegal_parameter ) ; } }

Target:
public static org.bouncycastle.crypto.params.ECPublicKeyParameters deserializeECPublicKey ( short [ ] ecPointFormats , org.bouncycastle.crypto.params.ECDomainParameters curve_params , byte [ ] encoding ) throws java.io.IOException { try { org.bouncycastle.math.ec.ECPoint Y = org.bouncycastle.crypto.tls.TlsECCUtils.deserializeECPoint ( ecPointFormats , curve_params.getCurve ( ) , encoding ) ; return new org.bouncycastle.crypto.params.ECPublicKeyParameters ( Y , curve_params ) ; } catch ( java.lang.RuntimeException e ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.illegal_parameter , e ) ; } }
Source:
public android.telephony.NetworkRegistrationState getNetworkRegistrationStates ( int transportType , int domain ) { for ( android.telephony.NetworkRegistrationState networkRegistrationState : mNetworkRegistrationStates ) { if ( ( ( networkRegistrationState.getTransportType ( ) ) == transportType ) && ( ( networkRegistrationState.getDomain ( ) ) == domain ) ) { return networkRegistrationState ; } } return null ; }

Target:
public android.telephony.NetworkRegistrationState getNetworkRegistrationStates ( int transportType , int domain ) { synchronized ( mNetworkRegistrationStates ) { for ( android.telephony.NetworkRegistrationState networkRegistrationState : mNetworkRegistrationStates ) { if ( ( ( networkRegistrationState.getTransportType ( ) ) == transportType ) && ( ( networkRegistrationState.getDomain ( ) ) == domain ) ) { return networkRegistrationState ; } } } return null ; }
Source:
public void startScan ( int scannerId , android.bluetooth.le.ScanSettings settings , java.util.List < android.bluetooth.le.ScanFilter > filters , android.os.WorkSource workSource , java.util.List storages , java.lang.String callingPackage ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startScan ( scannerId , settings , filters , workSource , storages , callingPackage ) ; }

Target:
public void startScan ( int scannerId , android.bluetooth.le.ScanSettings settings , java.util.List < android.bluetooth.le.ScanFilter > filters , java.util.List storages , java.lang.String callingPackage ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startScan ( scannerId , settings , filters , storages , callingPackage ) ; }
Source:
public final void testGetDeviceStatus ( ) { assertEquals ( DeviceStatus.EXISTS , dm.getDeviceStatus ( "7in WSVGA (Tablet)" , "Generic" , ( - 1338842870 ) ) ) ; assertEquals ( DeviceStatus.CHANGED , dm.getDeviceStatus ( "7in WSVGA (Tablet)" , "Generic" , 1 ) ) ; assertEquals ( DeviceStatus.EXISTS , dm.getDeviceStatus ( "Nexus One" , "Google" , ( - 1812631727 ) ) ) ; assertEquals ( DeviceStatus.CHANGED , dm.getDeviceStatus ( "Nexus One" , "Google" , 2 ) ) ; assertEquals ( DeviceStatus.MISSING , dm.getDeviceStatus ( "My Device" , "Custom OEM" , 3 ) ) ; }

Target:
public final void testGetDeviceStatus ( ) { assertEquals ( DeviceStatus.EXISTS , dm.getDeviceStatus ( "7in WSVGA (Tablet)" , "Generic" ) ) ; assertEquals ( DeviceStatus.EXISTS , dm.getDeviceStatus ( "Nexus One" , "Google" ) ) ; assertEquals ( DeviceStatus.MISSING , dm.getDeviceStatus ( "My Device" , "Custom OEM" ) ) ; }
Source:
static boolean native_postTranslate ( int native_object , float dx , float dy ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return false ; } d.postTransform ( android.graphics.Matrix_Delegate.getTranslate ( dx , dy ) ) ; return true ; }

Target:
static boolean native_postTranslate ( long native_object , float dx , float dy ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return false ; } d.postTransform ( android.graphics.Matrix_Delegate.getTranslate ( dx , dy ) ) ; return true ; }
Source:
public java.nio.ByteBuffer asReadOnlyBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } return new java.nio.DirectByteBuffer ( memoryRef , this . markValue ( ) , this . position ( ) , this . limit ( ) , this . capacity ( ) , offset , true ) ; }

Target:
public final java.nio.ByteBuffer asReadOnlyBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } return new java.nio.DirectByteBuffer ( memoryRef , this . markValue ( ) , this . position ( ) , this . limit ( ) , this . capacity ( ) , offset , true ) ; }
Source:
protected void onCreate ( android.os.Bundle bundle ) { super . onCreate ( bundle ) ; android.content.Intent intent = getIntent ( ) ; verifyCallAction ( intent ) ; final android.os.UserManager userManager = ( ( android.os.UserManager ) ( getSystemService ( Context.USER_SERVICE ) ) ) ; final android.os.UserHandle userHandle = new android.os.UserHandle ( userManager.getUserHandle ( ) ) ; new com.android.server.telecom.components.UserCallIntentProcessor ( this , userHandle ) . processIntent ( getIntent ( ) , getCallingPackage ( ) , true ) ; finish ( ) ; }

Target:
protected void onCreate ( android.os.Bundle bundle ) { super . onCreate ( bundle ) ; android.content.Intent intent = getIntent ( ) ; verifyCallAction ( intent ) ; final android.os.UserManager userManager = ( ( android.os.UserManager ) ( getSystemService ( Context.USER_SERVICE ) ) ) ; final android.os.UserHandle userHandle = new android.os.UserHandle ( userManager.getUserHandle ( ) ) ; new com.android.server.telecom.components.UserCallIntentProcessor ( this , userHandle ) . processIntent ( new android.content.Intent ( intent ) , getCallingPackage ( ) , true ) ; finish ( ) ; }
Source:
private long getBlockSuppressSecondsFromCarrierConfig ( ) { android.telephony.CarrierConfigManager carrierConfigManager = getContext ( ) . getSystemService ( android.telephony.CarrierConfigManager.class ) ; int carrierConfigValue = carrierConfigManager.getConfig ( ) . getInt ( CarrierConfigManager.KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT ) ; boolean isValidValue = ( carrierConfigValue >= 0 ) && ( carrierConfigValue <= ( com.android.providers.blockednumber.BlockedNumberProvider.MAX_BLOCKING_DISABLED_DURATION_SECONDS ) ) ; return isValidValue ? carrierConfigValue : android.telephony.CarrierConfigManager.getDefaultConfig ( ) . getInt ( CarrierConfigManager.KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT ) ; }

Target:
private long getBlockSuppressSecondsFromCarrierConfig ( ) { android.telephony.CarrierConfigManager carrierConfigManager = getContext ( ) . getSystemService ( android.telephony.CarrierConfigManager.class ) ; int carrierConfigValue = carrierConfigManager.getConfig ( ) . getInt ( CarrierConfigManager.KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT ) ; boolean isValidValue = carrierConfigValue <= ( com.android.providers.blockednumber.BlockedNumberProvider.MAX_BLOCKING_DISABLED_DURATION_SECONDS ) ; return isValidValue ? carrierConfigValue : android.telephony.CarrierConfigManager.getDefaultConfig ( ) . getInt ( CarrierConfigManager.KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT ) ; }
Source:
public com.android.jack.dx.dex.file.ProtoIdItem intern ( com.android.jack.dx.rop.type.Prototype prototype ) { if ( prototype == null ) { throw new java.lang.NullPointerException ( "prototype == null" ) ; } throwIfPrepared ( ) ; com.android.jack.dx.dex.file.ProtoIdItem result = protoIds.get ( prototype ) ; if ( result == null ) { result = new com.android.jack.dx.dex.file.ProtoIdItem ( prototype ) ; protoIds.put ( prototype , result ) ; } return result ; }

Target:
public com.android.jack.dx.dex.file.ProtoIdItem intern ( com.android.jack.dx.rop.type.Prototype prototype ) { assert prototype != null ; throwIfPrepared ( ) ; com.android.jack.dx.dex.file.ProtoIdItem result = protoIds.get ( prototype ) ; if ( result == null ) { result = new com.android.jack.dx.dex.file.ProtoIdItem ( prototype ) ; protoIds.put ( prototype , result ) ; } return result ; }
Source:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attribute.getId ( ) , null , attributeOperationType ) ; attributeRecords.add ( attributeRecord ) ; }

Target:
synchronized void recordAttributeAction ( com.android.manifmerger.XmlAttribute attribute , com.android.manifmerger.Actions.AttributeRecord attributeRecord ) { java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; attributeRecords.add ( attributeRecord ) ; }
Source:
static void $opt$noinline$constantIndexing2 ( int [ ] array ) { array [ 1 ] = 1 ; array [ 2 ] = 1 ; array [ 3 ] = 1 ; array [ 4 ] = 1 ; array [ ( - 1 ) ] = 1 ; if ( ( array [ 1 ] ) == 1 ) { throw new java.lang.Error ( "" ) ; } }

Target:
static void $opt$noinline$constantIndexing2 ( int [ ] array ) { array [ 1 ] = 1 ; array [ 2 ] = 1 ; array [ 3 ] = 1 ; array [ 4 ] = 1 ; if ( ( array [ 1 ] ) != 1 ) { throw new java.lang.Error ( "" ) ; } }
Source:
public final synchronized V get ( K key ) { if ( key == null ) { throw new java.lang.NullPointerException ( "key == null" ) ; } V result = map.get ( key ) ; if ( result != null ) { return result ; } result = create ( key ) ; if ( result != null ) { map.put ( key , result ) ; trimToSize ( maxSize ) ; } return result ; }

Target:
public final V get ( K key ) { if ( key == null ) { throw new java.lang.NullPointerException ( "key == null" ) ; } V result ; synchronized ( this ) { result = map.get ( key ) ; if ( result != null ) { return result ; } } result = create ( key ) ; synchronized ( this ) { if ( result != null ) { map.put ( key , result ) ; trimToSize ( maxSize ) ; } } return result ; }
Source:
private synchronized java.lang.String getBrowseServiceName ( java.lang.String packageName ) { java.lang.String browseServiceName = "" ; int browseInfoID = getBrowseId ( packageName ) ; if ( browseInfoID != ( - 1 ) ) { browseServiceName = mBrowsePlayerInfoList.get ( browseInfoID ) . serviceClass ; } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "getBrowseServiceName for packageName: " + packageName ) + ", browseServiceName = " ) + browseServiceName ) ) ; return browseServiceName ; }

Target:
private java.lang.String getBrowseServiceName ( java.lang.String packageName ) { java.lang.String browseServiceName = "" ; synchronized ( mBrowsePlayerInfoList ) { int browseInfoID = getBrowseId ( packageName ) ; if ( browseInfoID != ( - 1 ) ) { browseServiceName = mBrowsePlayerInfoList.get ( browseInfoID ) . serviceClass ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "getBrowseServiceName for packageName: " + packageName ) + ", browseServiceName = " ) + browseServiceName ) ) ; return browseServiceName ; }
Source:
static void parse ( java.lang.String pattern , com.ibm.icu.impl.number.Properties properties , boolean ignoreRounding ) { if ( ( pattern == null ) || ( ( pattern.length ( ) ) == 0 ) ) { properties.clear ( ) ; return ; } com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.ParserState state = new com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.ParserState ( pattern ) ; com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.PatternParseResult result = new com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.PatternParseResult ( ) ; com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.consumePattern ( state , result ) ; result.saveToProperties ( properties , ignoreRounding ) ; }

Target:
static void parse ( java.lang.String pattern , com.ibm.icu.impl.number.Properties properties , int ignoreRounding ) { if ( ( pattern == null ) || ( ( pattern.length ( ) ) == 0 ) ) { properties.clear ( ) ; return ; } com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.ParserState state = new com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.ParserState ( pattern ) ; com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.PatternParseResult result = new com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.PatternParseResult ( ) ; com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.consumePattern ( state , result ) ; result.saveToProperties ( properties , ignoreRounding ) ; }
Source:
public android.os.ParcelFileDescriptor connectSocket ( android.bluetooth.BluetoothDevice device , int type , android.os.ParcelUuid uuid , int port , int flag ) { if ( ! ( com.android.bluetooth.Utils.checkCallerAllowManagedProfiles ( mService ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "connectSocket() - Not allowed for non-active user" ) ; return null ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return null ; return service.connectSocket ( device , type , uuid , port , flag ) ; }

Target:
public android.os.ParcelFileDescriptor connectSocket ( android.bluetooth.BluetoothDevice device , int type , android.os.ParcelUuid uuid , int port , int flag ) { if ( ! ( com.android.bluetooth.Utils.checkCallerAllowManagedProfiles ( mService ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "connectSocket() - Not allowed for non-active user" ) ; return null ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return null ; } return service.connectSocket ( device , type , uuid , port , flag ) ; }
Source:
public void unregisterListener ( android.os.storage.IMountServiceListener listener ) { synchronized ( mListeners ) { for ( com.android.server.MountService.MountServiceBinderListener bl : mListeners ) { if ( ( bl.mListener ) == listener ) { mListeners.remove ( mListeners.indexOf ( bl ) ) ; listener.asBinder ( ) . unlinkToDeath ( bl , 0 ) ; return ; } } } }

Target:
public void unregisterListener ( android.os.storage.IMountServiceListener listener ) { synchronized ( mListeners ) { for ( com.android.server.MountService.MountServiceBinderListener bl : mListeners ) { if ( ( bl.mListener.asBinder ( ) ) == ( listener.asBinder ( ) ) ) { mListeners.remove ( mListeners.indexOf ( bl ) ) ; listener.asBinder ( ) . unlinkToDeath ( bl , 0 ) ; return ; } } } }
Source:
public android.net.Uri getPlaybackUri ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { return mService.getPlaybackUri ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.DeadObjectException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_SERVICE_LOST ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , ( "Caught remote exception calling getPlaybackUri: " + e ) ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_UNKNOWN_REMOTE_EXCEPTION ) ; } }

Target:
public android.net.Uri getPlaybackUri ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { return mService.getPlaybackUri ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_SERVICE_LOST ) ; } }